Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. every second in "world":
  2. loop all players:
  3. loop all monsters in radius 10 around loop-player-1:
  4. if "%loop-entity-2%" is "zombie":
  5. waze delete bossbar with id "%loop-player-1%.zombie" for loop-player-1
  6. while loop-entity-2 is alive:
  7. set {_maxhp} to maximum health of loop-entity-2
  8. set {_hp} to health of loop-entity-2/100 rounded to 3 decimal places
  9. waze create bossbar "Boss-Zombie: &7<HP:&c&l%{_hp}*100%/%{_maxhp}%&7>" with {_hp}/{_maxhp}*100 percents and color "RED" with id "%loop-player%.zombie" to loop-player
  10. wait 5 ticks
  11.  
  12. command /z:
  13. trigger:
  14. spawn zombie at player
  15. apply health boost 100 to last spawned entity for 999 minutes
  16. heal the last spawned entity
  17. #[waze] 1.8 (create|send) [boss]bar %string% (with|at) %integer% percent[s] (to|for) %players%
  18. #[waze] 1.8 (create|send) [boss]bar %string% (with|at) %integer% percent[s] (for|and) %integer% second[s] (to|for) %players%
  19. #[waze] 1.8 (remove|delete|clear) [boss]bar (of|for) %players%
  20. #Download BossBarAPI for 1.8 BossBar support here: https://www.spigotmc.org/resources/api-bossbarapi-1-7-1-8-1-9-1-10.7504/
  21. #https://forums.skunity.com/resources/skwaze.344/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement