Corman_12

Battle Arcade

Nov 11th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. command /setgame <text>:
  2. trigger:
  3. if player is op:
  4. set {forcegame} to true
  5. set {game} to argument
  6. set {wait} to 0
  7. set {delay} to 0
  8. message "&cChanging Game"
  9. on command:
  10. if command is "spawn":
  11. if executor isn't console:
  12. cancel event
  13. on join:
  14. if {game} is "none":
  15. set player's level to 0
  16. execute console command "spawn %player%"
  17. execute console command "pvpkit Empty %player%"
  18. else:
  19. if {game} is "T1Kits":
  20. execute console command "gmsp %player%"
  21. execute console command "/minecraft:tp %player% 845 171 -127"
  22. if {game} is "Equal":
  23. execute console command "gmsp %player%"
  24. execute console command "/minecraft:tp %player% -274 132 1109"
  25. on script load:
  26. kill all zombies
  27. loop all players:
  28. execute console command "spawn %loop-player%"
  29. execute console command "pvpkit Empty %loop-player%"
  30. set {game} to "none"
  31. set {wait} to 0
  32. set {skip} to false
  33. while 1 is 1:
  34. wait 5 ticks
  35. if {wait} is 0:
  36. set {_online} to number of all players
  37. loop all players:
  38. set action bar of loop-player to "&6There are &c%{_online}%&8/&a10 &6players in queue for Mixed PvP!"
  39. if {_online} is greater than 1:
  40. set {wait} to 30
  41. while {wait} is greater than 0:
  42. loop all players:
  43. set action bar of loop-player to "&6Starting in &c%{wait}% &6seconds."
  44. if {_online} is less than 2:
  45. set {wait} to 0
  46. wait 1 second
  47. remove 1 from {wait}
  48. set {_random} to random integer between 1 and 2
  49. if {forgegame} isn't true:
  50. if {_random} is 1:
  51. set {game} to "T1Kits"
  52. loop all players:
  53. execute console command "/minecraft:tp %loop-player% 845 172 -128"
  54. set the spawn point of "world" to the loop-player's location
  55. else:
  56. set {game} to "Equal"
  57. loop all players:
  58. execute console command "/minecraft:tp %loop-player% -275 143 1107"
  59. set the spawn point of "world" to the loop-player's location
  60. if {_skip} is true:
  61. wait 1 second
  62. else:
  63. set {delay} to 450
  64. while {delay} is greater than 0:
  65. loop all players:
  66. set loop-player's level to {delay}
  67. remove 1 from {delay}
  68. wait 1 second
  69. set {_online} to number of all players
  70. if {_online} is less than 2:
  71. set {delay} to 0
  72. loop all players:
  73. execute console command "spawn %loop-player%"
  74. execute console command "pvpkit Empty %loop-player%"
  75. set loop-player's level to 0
  76. if {forcegame} isn't true:
  77. set {game} to "none"
  78. else:
  79. set {forcegame} to false
  80. kill all zombies
  81. on respawn:
  82. if {game} is "T1Kits":
  83. teleport player to spawn
  84. if {game} is "Equal":
  85. teleport player to spawn
Advertisement
Add Comment
Please, Sign In to add comment