SzaryGuy

HealthBoost v1.1

Feb 19th, 2014
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. variables:
  2. {heal.%player%} = 0
  3. {healdelay.%player%} = 0
  4.  
  5. on rightclick with a any sword:
  6. if name of player's tool is "&4Miecz zycia":
  7. if {heal.%player%} is 0:
  8. damage tool by 30
  9. add 1 to {heal.%player%}
  10. add 5 to the player's health
  11. add 10 to player's hunger
  12. create a fake explosion at location of player
  13. play 100 of effect "heart" with data 1 at player
  14. apply regeneration 2 to the player for 5 seconds
  15. apply absorption 10 to the player for 5 seconds
  16. send "<red>Uzyles Health Boost'a"
  17. add 20 to {healdelay.%player%}
  18. loop 20 times:
  19. wait 1 second
  20. remove 1 from {healdelay.%player%}
  21. remove 1 from {heal.%player%}
  22. else:
  23. send "Musisz poczekać <aqua>%{healdelay.%player%}% sekund"
Advertisement
Add Comment
Please, Sign In to add comment