Guest User

Villager

a guest
Aug 19th, 2014
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. every 1 second:
  2. loop all entities:
  3. if loop-entity is villager:
  4. if name of loop-entity is "&6Cos":
  5. if {pos::%loop-entity%} isn't location of loop-entity:
  6. teleport loop-entity to {pos::%loop-entity%}
  7. command /chuj:
  8. trigger:
  9. if player have permission "*":
  10. set {_loc} to location of player
  11. spawn 1 villager at {_loc}
  12. set name of last spawned entity to "&6Cos"
  13. set {pos::%last spawned entity%} to location of last spawned entity
Advertisement
Add Comment
Please, Sign In to add comment