Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage of player:
- if {attacked::%victim%} is not set:
- set {attackedcountdown::%victim%} to 10
- create bound holo object " " with id "%victim%.hearts" to victim offset by 0, 2.7, 0
- if health of victim is between 1 and 1.99:
- send "&c❤1" to attacker
- edit holo object "%victim%.hearts" to "&4&l❤"
- else if health of victim is between 2 and 2.99:
- send "&c❤2" to attacker
- edit holo object "%victim%.hearts" to "&4&l❤❤"
- else if health of victim is between 3 and 3.99:
- send "&c❤3" to attacker
- edit holo object "%victim%.hearts" to "&4&l❤❤❤"
- else if health of victim is between 4 and 4.99 :
- send "&c❤4" to attacker
- edit holo object "%victim%.hearts" to "&4&l❤❤❤❤"
- else if health of victim is between 5 and 5.99:
- send "&c❤5" to attacker
- edit holo object "%victim%.hearts" to "&4&l❤❤❤❤❤"
- else if health of victim is between 6 and 6.99:
- send "&c❤6" to attacker
- edit holo object "%victim%.hearts" to "&4&l❤❤❤❤❤❤"
- else if health of victim is between 7 and 7.99:
- send "&c❤7" to attacker
- edit holo object "%victim%.hearts" to "&4&l❤❤❤❤❤❤❤"
- else if health of victim is between 8 and 8.99:
- send "&c❤8" to attacker
- edit holo object "%victim%.hearts" to "&4&l❤❤❤❤❤❤❤❤"
- else if health of victim is 9 and 9.99:
- send "&c❤9" to attacker
- edit holo object "%victim%.hearts" to "&4&l❤❤❤❤❤❤❤❤❤"
- else if health of victim is 10:
- send "&c❤10" to attacker
- edit holo object "%victim%.hearts" to "&4&l❤❤❤❤❤❤❤❤❤❤"
- if {attacked::%victim%} is not set:
- set {attacked::%victim%} to true
- while {attackedcountdown::%victim%} is greater than 0:
- wait 1 second
- remove 1 from {attackedcountdown::%victim%}
- delete {attacked::%victim%}
- delete {attackedcountdown::%victim%}
- delete holo object "%victim%.hearts"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement