Advertisement
Guest User

horsespawn

a guest
Jan 24th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. every 0 seconds:
  2. loop all players:
  3. if distance between loop-player and {horselocation} is less than 2:
  4. set {spawnhorse} to true
  5. if {spawnhorse} is true:
  6. wait 45 seconds
  7. set {spawnhorse} to false
  8.  
  9. every 15 seconds:
  10. if {spawnhorse} is true:
  11. chance of 50%:
  12. set {_horsespawnamount} to a random integer between 1 and 3
  13. spawn {_horsespawnamount} of horses at {@xx} {@yy} {@zz}
  14.  
  15. command /horsespawn <text> <tex> <tex>:
  16. permission: horsespawn.set
  17. trigger:
  18. execute console command "/tellraw %player% {""text"":""Set Horse Spawn Location At %arg-1% %arg-2% %arg-3%"",""color"":""green""}"
  19. options:
  20. xx: %arg-1%
  21. yy: %arg-2%
  22. zz: %arg-3%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement