Jump to content

ghostjusr

Member
  • Posts

    4
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ghostjusr

  1. DNAbuckle86 this is the lifesteal+afk skript on first join: set {hearts::%player%} to 10 set {afk::%player%} to false set {maxhealth} to 100 every 5 ticks: loop all players: if {hearts::%loop-player%} is 0: broadcast "&4&l%loop-player% &r&4was banned because they ran out of hearts!" make console execute command "/ban %loop-player% &cYou ran out of hearts! You will be unbanned in three weeks." wait 30420 minutes make console execute command "/pardon %loop-player%" set loop-player's max health to {hearts::%loop-player%} every 20 minutes: loop all players: if {afk::*} contains loop-player: give loop-player phantom membrane named "&cHeart" on rightclick: if player's tool is phantom membrane named "&cHeart": if {hearts::%player%} is less than {maxhealth}: remove 1 phantom membrane named "&cHeart" from the player add 1 to {hearts::%player%} on death: victim is a player remove 1 from {hearts::%victim%} attacker is a player if {hearts::%attacker%} is less than {maxhealth}: add 1 to {hearts::%attacker%} if {hearts::%attacker%} is {maxhealth}: send "&cYou are at full hearts! The heart item will be put into your inventory." to player if {hearts::%attacker%} is more than {maxhealth}: set {hearts::%attacker%} to 100 send "&cYou are at full hearts! The heart item will be put into your inventory." to player if player can hold phantom membrane named "&cHeart": send "&cYou are at full hearts! The heart item will be put into your inventory." to player give player phantom membrane named "&cHeart" else: send "&cYou are at full hearts, and your inventory is full. The item will be dropped on the ground." to player drop phantom membrane named "&cHeart" at attacker command /withdraw [<integer>]: usage: /withdraw [<amount>] executable by: players trigger: if arg-1 is set: if arg-1 is more than {hearts::%player%}: if player can hold arg-1 of phantom membrane named "&cHeart": send "&cYou are at full hearts!" to player give player phantom membrane named "&cHeart" else: send "&cYou are at full hearts, and your inventory is full. The heart has been dropped on the ground." drop phantom membrane named "&cHeart" at player command /afk: executable by: players trigger: teleport player to AFK AREA COORDS send "&aYou are now AFK. Use /spawn to go back to spawn." to player set {afk::%player%} to true command /spawn: executable by: players trigger: teleport player to SPAWN COORDS send "&aTeleported to spawn." to player set {afk::%player%} to false set SPAWN COORDS and AFK AREA COORDS to the coordinates of the spawn and AFK area. The code is untested but it doesn't have any errors
  2. try this: on block break of grass block or cyan concrete: cancel event send "&rYou can't break that block!" to player Change the send thing to whatever you want.
  3. Do you mean like the blocks that make items come out? Or something else?
  4. If anyone needs help making scripts or needs one to be created but doesn't know how you can just reply here and I can help. :)
×
×
  • Create New...