Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every 0 seconds:
- loop all players:
- if distance between loop-player and {horselocation} is less than 2:
- set {spawnhorse} to true
- if {spawnhorse} is true:
- wait 45 seconds
- set {spawnhorse} to false
- every 15 seconds:
- if {spawnhorse} is true:
- chance of 50%:
- set {_horsespawnamount} to a random integer between 1 and 3
- spawn {_horsespawnamount} of horses at {@xx} {@yy} {@zz}
- command /horsespawn <text> <tex> <tex>:
- permission: horsespawn.set
- trigger:
- execute console command "/tellraw %player% {""text"":""Set Horse Spawn Location At %arg-1% %arg-2% %arg-3%"",""color"":""green""}"
- options:
- xx: %arg-1%
- yy: %arg-2%
- zz: %arg-3%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement