Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. on damage of player:
  2. if {attacked::%victim%} is not set:
  3. set {attackedcountdown::%victim%} to 10
  4. create bound holo object " " with id "%victim%.hearts" to victim offset by 0, 2.7, 0
  5. if health of victim is between 1 and 1.99:
  6. send "&c❤1" to attacker
  7. edit holo object "%victim%.hearts" to "&4&l❤"
  8. else if health of victim is between 2 and 2.99:
  9. send "&c❤2" to attacker
  10. edit holo object "%victim%.hearts" to "&4&l❤❤"
  11. else if health of victim is between 3 and 3.99:
  12. send "&c❤3" to attacker
  13. edit holo object "%victim%.hearts" to "&4&l❤❤❤"
  14. else if health of victim is between 4 and 4.99 :
  15. send "&c❤4" to attacker
  16. edit holo object "%victim%.hearts" to "&4&l❤❤❤❤"
  17. else if health of victim is between 5 and 5.99:
  18. send "&c❤5" to attacker
  19. edit holo object "%victim%.hearts" to "&4&l❤❤❤❤❤"
  20. else if health of victim is between 6 and 6.99:
  21. send "&c❤6" to attacker
  22. edit holo object "%victim%.hearts" to "&4&l❤❤❤❤❤❤"
  23. else if health of victim is between 7 and 7.99:
  24. send "&c❤7" to attacker
  25. edit holo object "%victim%.hearts" to "&4&l❤❤❤❤❤❤❤"
  26. else if health of victim is between 8 and 8.99:
  27. send "&c❤8" to attacker
  28. edit holo object "%victim%.hearts" to "&4&l❤❤❤❤❤❤❤❤"
  29. else if health of victim is 9 and 9.99:
  30. send "&c❤9" to attacker
  31. edit holo object "%victim%.hearts" to "&4&l❤❤❤❤❤❤❤❤❤"
  32. else if health of victim is 10:
  33. send "&c❤10" to attacker
  34. edit holo object "%victim%.hearts" to "&4&l❤❤❤❤❤❤❤❤❤❤"
  35. if {attacked::%victim%} is not set:
  36. set {attacked::%victim%} to true
  37. while {attackedcountdown::%victim%} is greater than 0:
  38. wait 1 second
  39. remove 1 from {attackedcountdown::%victim%}
  40. delete {attacked::%victim%}
  41. delete {attackedcountdown::%victim%}
  42. delete holo object "%victim%.hearts"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement