Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /teste:
- trigger:
- spawn zombie at player
- set {_e} to last spawned entity
- set metadata value "Stack" of {_e} to "30"
- set {_stack} to metadata "Stack" of {_e}
- set name of {_e} to "%{_stack}%x ZOMBIE"
- on death of zombie:
- set {_stack} to metadata "Stack" of {_e}
- if {_stack} is set:
- set {_stack} to {_stack} parsed as integer
- if {_stack} > 0:
- remove 1 from {_e}
- spawn zombie at event-location
- set {_e} to last spawned entity
- set metadata value "Stack" of {_e} to "%{_stack}%"
- set name of {_e} to "%{_stack}%x ZOMBIE"
- command /killall:
- trigger:
- loop all entities in world of player:
- set {_stack} to metadata "Stack" of loop-entity
- if {_stack} is set:
- set metadata value "Stack" of {_e} to "0"
- kill loop-entity
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement