GrimoN

Untitled

Feb 28th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. command /boss-spawn:
  2. trigger:
  3. spawn 1 zombie at location of player
  4. set helmet of last spawned entity to leather helmet
  5. set chestplate of last spawned entity to leather chestplate
  6. set leggings of last spawned entity to leather leggings
  7. set boots of last spawned entity to leather boots
  8. set tool of last spawned entity to diamond sword
  9. set the last spawned entity's max health to 50
  10. heal last spawned entity
  11. apply speed 2 to the last spawned entity for 999999 seconds
  12. set the name of last spawned entity to "&c&lMroczny &a&lZombie"
  13. send "boss został zrespiony na %location of player%"
  14.  
  15. on damage:
  16. if attacker is player:
  17. if victim is zombie:
  18. if name of victim is "&c&lMroczny &a&lZombie":
  19. display "&c&lMroczny &a&lZombie: &f%victim's health%&4/&f%max health of victim%" on bossbar with 100 percent by 5 seconds for attacker
  20. if attacker is zombie:
  21. if name of attacker is "&c&lMroczny &a&lZombie":
  22. set damage to damage * 2
  23. on death of zombie:
  24. if name of victim is "&c&lMroczny &a&lZombie":
  25. clear drops
Advertisement
Add Comment
Please, Sign In to add comment