Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- if victim is not player:
- set {_color} to "a"
- if victim's display name contains " &7- ":
- set {_name::*} to victim's display name split by " &7- "
- set victim's display name to {_name::1}
- if max health of victim / health of victim is greater than 2:
- set {_color} to "6"
- if max health of victim / health of victim is greater than 4:
- set {_color} to "c"
- set victim's display name to "%victim's display name% &7- §%{_color}%%health of victim% &7/ &a%max health of victim%"
- on heal:
- if entity is not player:
- set {_color} to "a"
- if entity's display name contains " &7- ":
- set {_name::*} to entity's display name split by " &7- "
- set entity's display name to {_name::1}
- if max health of entity / health of entity is greater than 2:
- set {_color} to "6"
- if max health of entity / health of entity is greater than 4:
- set {_color} to "c"
- set entity's display name to "%entity's display name% &7- §%{_color}%%health of entity% &7/ &a%max health of entity%"
- on combust:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement