Advertisement
lNockl

Untitled

Jun 28th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. command /teste:
  2. trigger:
  3. spawn zombie at player
  4. set {_e} to last spawned entity
  5. set metadata value "Stack" of {_e} to "30"
  6. set {_stack} to metadata "Stack" of {_e}
  7. set name of {_e} to "%{_stack}%x ZOMBIE"
  8.  
  9. on death of zombie:
  10. set {_stack} to metadata "Stack" of {_e}
  11. if {_stack} is set:
  12. set {_stack} to {_stack} parsed as integer
  13. if {_stack} > 0:
  14. remove 1 from {_e}
  15. spawn zombie at event-location
  16. set {_e} to last spawned entity
  17. set metadata value "Stack" of {_e} to "%{_stack}%"
  18. set name of {_e} to "%{_stack}%x ZOMBIE"
  19.  
  20. command /killall:
  21. trigger:
  22. loop all entities in world of player:
  23. set {_stack} to metadata "Stack" of loop-entity
  24. if {_stack} is set:
  25. set metadata value "Stack" of {_e} to "0"
  26. kill loop-entity
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement