Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every second in "world":
- loop all players:
- loop all monsters in radius 10 around loop-player-1:
- if "%loop-entity-2%" is "zombie":
- waze delete bossbar with id "%loop-player-1%.zombie" for loop-player-1
- while loop-entity-2 is alive:
- set {_maxhp} to maximum health of loop-entity-2
- set {_hp} to health of loop-entity-2/100 rounded to 3 decimal places
- 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
- wait 5 ticks
- command /z:
- trigger:
- spawn zombie at player
- apply health boost 100 to last spawned entity for 999 minutes
- heal the last spawned entity
- #[waze] 1.8 (create|send) [boss]bar %string% (with|at) %integer% percent[s] (to|for) %players%
- #[waze] 1.8 (create|send) [boss]bar %string% (with|at) %integer% percent[s] (for|and) %integer% second[s] (to|for) %players%
- #[waze] 1.8 (remove|delete|clear) [boss]bar (of|for) %players%
- #Download BossBarAPI for 1.8 BossBar support here: https://www.spigotmc.org/resources/api-bossbarapi-1-7-1-8-1-9-1-10.7504/
- #https://forums.skunity.com/resources/skwaze.344/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement