Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /play [<text>]:
- executable by: players
- trigger:
- if arg-1 is set:
- if arg-1 is "solo_normal" or "solo_insane":
- if {arena.amounts} is not 0:
- send "&aLooking for a game!"
- wait 1 second
- if arg-1 is "solo_normal":
- loop {sw.arena::*}:
- if {sw.arena.%loop-value%.mode} is "SOLO_NORMAL":
- if {sw.arena.run.%loop-value%} is false:
- if {sw.arena.%loop-value%.playing} >= 0:
- if {sw.arena.%loop-value%.playing} <= 12:
- if {sw.playing.%uuid of player%} is false:
- set {_value} to "%loop-value%"
- if arg-1 is "solo_normal":
- if {sw.arena.%{_value}%.mode} is "SOLO_NORMAL":
- if {sw.arena.run.%{_value}%} is false:
- if {sw.arena.%{_value}%.playing} >= 0:
- if {sw.arena.%{_value}%.playing} <= 12:
- if {sw.playing.%uuid of player%} is false:
- if {_value} is set:
- send "&aFound a server running &bSOLO&6:&bNORMAL&a!&a Sending you to %{_value}%!"
- clear player's scoreboard
- set {sw.playing.arena.%uuid of player%} to "%{_value}%"
- set {sw.playing.%uuid of player%} to true
- set {sw.playing.active.%uuid of player%} to false
- add 1 to {sw.arena.%{_value}%.playing}
- add player to {sw.arena.%{_value}%.players.alive::*}
- teleport player to {sw.arena.%{_value}%.spawn.num.%{sw.arena.%{_value}%.playing}%}
- wait 1 tick
- set block at block under the player to glass
- set block at block under north of the player to glass
- set block at block under east of the player to glass
- set block at block under south of the player to glass
- set block at block under west of the player to glass
- # WALLS
- set block at block north of the player to glass
- set block at block east of the player to glass
- set block at block south of the player to glass
- set block at block west of the player to glass
- set block at block 1 above north of the player to glass
- set block at block 1 above east of the player to glass
- set block at block 1 above south of the player to glass
- set block at block 1 above west of the player to glass
- set block at block 2 above north of the player to glass
- set block at block 2 above east of the player to glass
- set block at block 2 above south of the player to glass
- set block at block 2 above west of the player to glass
- # ABOVE
- set block at block 3 above the player to glass
- set block at block 3 above north of the player to glass
- set block at block 3 above east of the player to glass
- set block at block 3 above south of the player to glass
- set block at block 3 above west of the player to glass
- invoke "sw.clearplayer" from player
- set {sw.gamekills.%{sw.player.%uuid of player%}%.%{_value}%} to 0
- set player's slot 8 to {@leaveitem} named "{@leaveitemname}"
- send "&7%player% &ehas joined (&b%{sw.arena.%{_value}%.playing}%&e/&b12&e)" to {sw.arena.%{_value}%.players.alive::*}
- if {sw.arena.run.%{_value}%} is false:
- if {sw.arena.%{_value}%.playing} >= 2:
- set {sw.arena.%{_value}%.status} to "{@Starting}"
- set {sw.arena.run.%{_value}%} to true
- set {sw.arena.%{_value}%.seconds} to {@cagetimesolo}
- send "&eThe game starts in &a%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
- loop {sw.arena.%{_value}%.seconds} times:
- if {sw.arena.%{_value}%.seconds} is not 0:
- if {sw.arena.%{_value}%.playing} is not 0:
- remove 1 from {sw.arena.%{_value}%.seconds}
- wait 1 second
- if {sw.arena.%{_value}%.seconds} is 10:
- send {sw.arena.%{_value}%.players.alive::*} title "{@title10}" with subtitle "{@sub10}" for 0.5 seconds
- send "&eThe game starts in &6%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
- if {sw.arena.%{_value}%.seconds} is 5:
- send {sw.arena.%{_value}%.players.alive::*} title "{@title5}" with subtitle "{@sub}" for 0.5 seconds
- send "&eThe game starts in &c%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
- if {sw.arena.%{_value}%.seconds} is 4:
- send {sw.arena.%{_value}%.players.alive::*} title "{@title4}" with subtitle "{@sub}" for 0.5 seconds
- send "&eThe game starts in &c%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
- if {sw.arena.%{_value}%.seconds} is 3:
- send {sw.arena.%{_value}%.players.alive::*} title "{@title3}" with subtitle "{@sub}" for 0.5 seconds
- send "&eThe game starts in &c%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
- if {sw.arena.%{_value}%.seconds} is 2:
- send {sw.arena.%{_value}%.players.alive::*} title "{@title2}" with subtitle "{@sub}" for 0.5 seconds
- send "&eThe game starts in &c%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
- if {sw.arena.%{_value}%.seconds} is 1:
- send {sw.arena.%{_value}%.players.alive::*} title "{@title1}" with subtitle "{@sub}" for 0.5 seconds
- send "&eThe game starts in &c%{sw.arena.%{_value}%.seconds}%&e seconds!" to {sw.arena.%{_value}%.players.alive::*}
- if {sw.arena.%{_value}%.seconds} is 0:
- set {sw.arena.%{_value}%.run} to true
- loop {sw.arena.%{_value}%.players.alive::*}:
- set {_p} to "%loop-value-1%"
- set {_puuid} to "%uuid of loop-value-1%"
- clear {_p}'s scoreboard
- set {sw.playing.active.%{_puuid}%} to true
- set {sw.playing.%{_puuid}%} to true
- wait 1 tick
Advertisement
Add Comment
Please, Sign In to add comment