Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /events:
- trigger:
- if {Queue::*} does not contain player:
- add player to {Queue::*}
- broadcast "&e&l%player% &7has joined the horse race event. Do /events to ready up"
- send "&7Please wait 10 seconds before the race begins."
- wait 7 seconds
- send title "&a3" to player for 1 second
- play sound "block.anvil.place"
- wait 1 second
- send title "&62" to player for 1 second
- play sound "block.anvil.place"
- wait 1 second
- send title "&c1" to player for 1 second
- play sound "block.anvil.place"
- wait 1 second
- teleport {Queue::*} to location(1385.53, 11.00, -2496.54, world "superflat", -180.89, -1.30)
- wait 1 second
- summon horse at location(1383.51, 11.00, -2501.61, world "superflat", -180.36, 90.00)
- send subtitle "&eRACE!"
- equip last spawned horse with saddle
- tame last spawned entity to player
- else:
- send "&cYou have already joined this event." to {Queue::*}
- on vehicle exit:
- send "&c&lSorry, &7but you were kicked for leaving the horse."
- teleport player to location(1385.53, 11.00, -2496.54, world "superflat", -180.89, -1.30)
- remove player from {queue::*}
- on stepping on white concrete:
- if block's location is (1385.47, 10.00, -2494.57, world "superflat", 540.34, 87.23)
- add 1 to {Finished::*}
- wait 1 second
- teleport {Finished::*} to location(1385.53, 11.00, -2496.54, world "superflat", -180.89, -1.30)
- command /leaveevents:
- trigger:
- send "&cYou have left this event."
- remove player from {Queue::*}
Advertisement
Add Comment
Please, Sign In to add comment