#built using mc-build (https://mcbuild.dev/)

function main:setarena
tag @a[tag=ready] add ingame
team join ingame @a[tag=ready]
effect give @a[tag=ready] nausea 5 255 true
playsound minecraft:block.ender_chest.open master @a[tag=ready] ~ ~ ~ 10 1 1
tp @a[tag=ready] -15.5 6.00 8.5 270 2
scoreboard players set $progress ip 1
clear @a[tag=ready]
gamemode adventure @a[tag=ready]
scoreboard players reset @a wins
scoreboard objectives remove wins
scoreboard objectives add wins dummy {"text":"Points!","color":"gold"}
scoreboard objectives setdisplay sidebar wins
scoreboard players set @a[team=ingame] wins 0
scoreboard players set $round round 1
bossbar set minecraft:time value 10
kill @e[type=minecraft:armor_stand,tag=holo]
schedule function main:start/start2 1s