akon1248

Untitled

Aug 30th, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. on damage:
  2. attacker is a player
  3. set {_healthbar} to new bossbar
  4. set {_maxhalth} to victim's max health
  5. set {_health} to victim's health
  6. set {_gage} to {_health}/{_maxhealth}
  7. set title of bossbar {_healthbar} to "&c%victim%'s health %{_health}%/%{_maxhealth}%"
  8. set color of bossbar {_healthbar} to RED
  9. set style of bossbar {_healthbar} to SEGMENTED_20
  10. set progress of bossbar {_healthbar} to {_gage}
  11. add attacker to bossbar {_healthbar}
  12. wait 3 second
  13. remove attacker from bossbar {_healthbar}
  14. command /test:
  15. trigger:
  16. set {_test} to new bossbar
  17. set title of bossbar {_test} to "&cTEST"
  18. set color of bossbar {_test} to RED
  19. add player to bossbar {_test}
  20. wait 10 second
  21. remove player from bossbar {_test}
Advertisement
Add Comment
Please, Sign In to add comment