Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /setgame <text>:
- trigger:
- if player is op:
- set {forcegame} to true
- set {game} to argument
- set {wait} to 0
- set {delay} to 0
- message "&cChanging Game"
- on command:
- if command is "spawn":
- if executor isn't console:
- cancel event
- on join:
- if {game} is "none":
- set player's level to 0
- execute console command "spawn %player%"
- execute console command "pvpkit Empty %player%"
- else:
- if {game} is "T1Kits":
- execute console command "gmsp %player%"
- execute console command "/minecraft:tp %player% 845 171 -127"
- if {game} is "Equal":
- execute console command "gmsp %player%"
- execute console command "/minecraft:tp %player% -274 132 1109"
- on script load:
- kill all zombies
- loop all players:
- execute console command "spawn %loop-player%"
- execute console command "pvpkit Empty %loop-player%"
- set {game} to "none"
- set {wait} to 0
- set {skip} to false
- while 1 is 1:
- wait 5 ticks
- if {wait} is 0:
- set {_online} to number of all players
- loop all players:
- set action bar of loop-player to "&6There are &c%{_online}%&8/&a10 &6players in queue for Mixed PvP!"
- if {_online} is greater than 1:
- set {wait} to 30
- while {wait} is greater than 0:
- loop all players:
- set action bar of loop-player to "&6Starting in &c%{wait}% &6seconds."
- if {_online} is less than 2:
- set {wait} to 0
- wait 1 second
- remove 1 from {wait}
- set {_random} to random integer between 1 and 2
- if {forgegame} isn't true:
- if {_random} is 1:
- set {game} to "T1Kits"
- loop all players:
- execute console command "/minecraft:tp %loop-player% 845 172 -128"
- set the spawn point of "world" to the loop-player's location
- else:
- set {game} to "Equal"
- loop all players:
- execute console command "/minecraft:tp %loop-player% -275 143 1107"
- set the spawn point of "world" to the loop-player's location
- if {_skip} is true:
- wait 1 second
- else:
- set {delay} to 450
- while {delay} is greater than 0:
- loop all players:
- set loop-player's level to {delay}
- remove 1 from {delay}
- wait 1 second
- set {_online} to number of all players
- if {_online} is less than 2:
- set {delay} to 0
- loop all players:
- execute console command "spawn %loop-player%"
- execute console command "pvpkit Empty %loop-player%"
- set loop-player's level to 0
- if {forcegame} isn't true:
- set {game} to "none"
- else:
- set {forcegame} to false
- kill all zombies
- on respawn:
- if {game} is "T1Kits":
- teleport player to spawn
- if {game} is "Equal":
- teleport player to spawn
Advertisement
Add Comment
Please, Sign In to add comment