execute unless entity @e[tag=area_main] run summon minecraft:area_effect_cloud 0 12 0 {Radius:0.0f,Duration:2147483647,Tags:["area_main"]}

execute if score game Stats matches 1 run function mctsts:game/main
execute if score game Stats matches 0 run function mctsts:lobby/main

gamemode adventure @a[gamemode=survival]

effect give @a minecraft:saturation 999999 120 true
effect give @a minecraft:regeneration 999999 120 true

execute as @r unless score @s id matches 1.. run tag @s add ran
execute as @a[tag=ran] unless score @s id matches 1.. run scoreboard players add id id 1
execute as @a[tag=ran] unless score @s id matches 1.. run scoreboard players operation @s id = id id
tag @a remove ran

execute as @a[scores={edgeJ=1..}] run function mctsts:game/join
execute as @a[scores={edgeT=10}] run function mctsts:game/join