DJ_CITROX

Untitled

Aug 26th, 2014
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. Options:
  2. tag: &f[&c&lNinja-Craft&f]
  3. tag2: &cMroczny&9&lZombiak!
  4.  
  5.  
  6. command /zombie:
  7. trigger:
  8. if player has not permission "sk.zombie":
  9. if {oczek.zombie.%player%} is 0:
  10. spawn 1 zombie in front of player
  11. set name of last spawned entity to "{@tag} Boss!"
  12. set helmet of last spawned entity to diamond helmet of protection 6
  13. set chestplate of last spawned entity to diamond chestplate of protection 6
  14. set leggings of last spawned entity to diamond leggings of protection 6
  15. set boots of last spawned entity to diamond boots of protection 6
  16. set tool of the spawned zombie to a diamond sword of sharpness 2
  17. apply speed 5 to the last spawned entity for 1000 seconds
  18. apply invisibility 1 to the last spawned entity for 100 seconds
  19. set {oczek.zombie.%player%} to 10
  20. else:
  21. send "&7Musisz poczekac &2%{oczek.zombie.%player%}% &7minut!"
  22. else:
  23. spawn 1 zombie in front of player
  24. set name of last spawned entity to "{@tag} Boss!"
  25. set helmet of last spawned entity to diamond helmet of protection 6
  26. set chestplate of last spawned entity to diamond chestplate of protection 6
  27. set leggings of last spawned entity to diamond leggings of protection 6
  28. set boots of last spawned entity to diamond boots of protection 6
  29. set tool of the spawned zombie to a diamond sword of sharpness 2
  30. apply speed 5 to the last spawned entity for 1000 seconds
  31. apply invisibility 1 to the last spawned entity for 100 seconds
  32.  
  33. every 1 minute:
  34. loop all players:
  35. if {oczek.zombie.%loop-player%} is greater than 0:
  36. remove 1 from {oczek.zombie.%loop-player%}
  37. #to nie jest potrzebne, tylko zabezpiecznie gdyby byl lag serwera
  38. if {oczek.zombie.%loop-player%} is -1:
  39. set {oczek.zombie.%loop-player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment