ikeyIX

Untitled

Apr 9th, 2021
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. command /events:
  2. trigger:
  3. if {Queue::*} does not contain player:
  4. add player to {Queue::*}
  5. broadcast "&e&l%player% &7has joined the horse race event. Do /events to ready up"
  6. send "&7Please wait 10 seconds before the race begins."
  7. wait 7 seconds
  8. send title "&a3" to player for 1 second
  9. play sound "block.anvil.place"
  10. wait 1 second
  11. send title "&62" to player for 1 second
  12. play sound "block.anvil.place"
  13. wait 1 second
  14. send title "&c1" to player for 1 second
  15. play sound "block.anvil.place"
  16. wait 1 second
  17. teleport {Queue::*} to location(1385.53, 11.00, -2496.54, world "superflat", -180.89, -1.30)
  18. wait 1 second
  19. summon horse at location(1383.51, 11.00, -2501.61, world "superflat", -180.36, 90.00)
  20. send subtitle "&eRACE!"
  21. equip last spawned horse with saddle
  22. tame last spawned entity to player
  23. else:
  24. send "&cYou have already joined this event." to {Queue::*}
  25. on vehicle exit:
  26. send "&c&lSorry, &7but you were kicked for leaving the horse."
  27. teleport player to location(1385.53, 11.00, -2496.54, world "superflat", -180.89, -1.30)
  28. remove player from {queue::*}
  29. on stepping on white concrete:
  30. if block's location is (1385.47, 10.00, -2494.57, world "superflat", 540.34, 87.23)
  31. add 1 to {Finished::*}
  32. wait 1 second
  33. teleport {Finished::*} to location(1385.53, 11.00, -2496.54, world "superflat", -180.89, -1.30)
  34.  
  35. command /leaveevents:
  36. trigger:
  37. send "&cYou have left this event."
  38. remove player from {Queue::*}
Advertisement
Add Comment
Please, Sign In to add comment