tsutitire2

Untitled

May 16th, 2020
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. Variables:
  2. {%player%.nether} = 0
  3. {%player%.cooldown} = 0
  4. On swap item:
  5. if player has 1 nether quartz:
  6. if {%player%.cooldown} is not less than 1:
  7. message "please wait %{%player%.cooldown}% seconds "
  8. if {%player%.cooldown} is less than 1:
  9. if player's tool's name is "HEAL":
  10. execute console command "effect %player% instant_health 1 3"
  11. set {%player%.cooldown} to 120
  12. if player's tool's name is "PLUSHEART":
  13. execute console command "effect %player% health_boost 60 6"
  14. set {%player%.cooldown} to 120
  15. if player's tool's name is "SPEED":
  16. execute console command "effect %player% speed 60 3"
  17. set {%player%.cooldown} to 120
  18. if player's tool's name is "JUMP":
  19. execute console command "effect %player% jump_boost 60 10"
  20. set {%player%.cooldown} to 120
  21. if player's tool's name is "INVISIBLE":
  22. execute console command "effect %player% invisible 10 3"
  23. set {%player%.cooldown} to 120
  24. if player's tool's name is "PLUSDAMAGE":
  25. execute console command "effect %player% strength 30 5"
  26. set {%player%.cooldown} to 120
  27. if player's tool's name is "RESIST":
  28. execute console command "effect %player% resistance 30 3"
  29. set {%player%.cooldown} to 120
  30. if player's tool's name is "DAMAGE":
  31. execute console command "execute %player% ~ ~ ~ effect @a[r=20,name=!%player%} instant_damage 1 4"
  32. set {%player%.cooldown} to 120
  33. if player's tool's name is "BLINDNESS":
  34. execute console command "execute %player% ~ ~ ~ effect @a[r=20,name=!%player%} blindness 6 1"
  35. set {%player%.cooldown} to 120
  36. if player's tool's name is "SLOW":
  37. execute console command "execute %player% ~ ~ ~ effect @a[r=20,name=!%player%} slowness 10 40"
  38. set {%player%.cooldown} to 120
  39. if player's tool's name is "GLOWING":
  40. execute console command "execute %player% ~ ~ ~ effect @a[r=40,name=!%player%} glowing 10 1"
  41. set {%player%.cooldown} to 120
  42.  
  43. cancel event
  44.  
  45. every seconds:
  46. loop all players:
  47. if {%loop-player%.cooldown} is more than 0:
  48. set {%loop-player%.cooldown} to {%loop-player%.cooldown} -1
  49. On death:
  50. set {%victim%.cooldown} to 0
Add Comment
Please, Sign In to add comment