Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- attacker is a player
- set {_healthbar} to new bossbar
- set {_maxhalth} to victim's max health
- set {_health} to victim's health
- set {_gage} to {_health}/{_maxhealth}
- set title of bossbar {_healthbar} to "&c%victim%'s health %{_health}%/%{_maxhealth}%"
- set color of bossbar {_healthbar} to RED
- set style of bossbar {_healthbar} to SEGMENTED_20
- set progress of bossbar {_healthbar} to {_gage}
- add attacker to bossbar {_healthbar}
- wait 3 second
- remove attacker from bossbar {_healthbar}
- command /test:
- trigger:
- set {_test} to new bossbar
- set title of bossbar {_test} to "&cTEST"
- set color of bossbar {_test} to RED
- add player to bossbar {_test}
- wait 10 second
- remove player from bossbar {_test}
Advertisement
Add Comment
Please, Sign In to add comment