# teams
team add parSpec
team modify parSpec color gray
team modify parSpec collisionRule never
team add aCdaSpec
team modify aCdaSpec color gray
team modify aCdaSpec collisionRule never
team add aThrSpec
team modify aThrSpec color gray
team modify aThrSpec collisionRule never
team add aRemSpec
team modify aRemSpec color gray
team modify aRemSpec collisionRule never
team add parPlayer
team modify parPlayer color light_purple
team modify parPlayer collisionRule never
team modify aThrSpec prefix ["",{"color":"green","text":"["},{"color":"yellow","text":"★"},{"color":"green","text":"] "}]
team modify aRemSpec prefix ["",{"color":"gold","text":"["},{"color":"yellow","text":"★"},{"color":"gold","text":"] "}]
team modify aCdaSpec prefix ["",{"color":"blue","text":"["},{"color":"yellow","text":"★"},{"color":"blue","text":"] "}]

# gamerules
gamerule fall_damage false
gamerule keep_inventory true
gamerule advance_time false
gamerule fire_spread_radius_around_player 0
gamerule respawn_radius 0
gamerule random_tick_speed 0
gamerule spawn_wandering_traders false
gamerule command_block_output false

difficulty peaceful

# bossbars
bossbar add timeout {"text":"Time Remaining"}
bossbar set minecraft:timeout max 1200

# default teams
team join parSpec @a[team=]

execute as 0568e73d-0057-48d9-a62a-a6600066dd96 if entity @s[team=parSpec] run team join aCdaSpec
execute as 3cb7bfb8-32e5-4ac0-b52a-a0aec8082cf9 if entity @s[team=parSpec] run team join aCdaSpec

execute as 12207679-d6c0-4f43-975b-e363fb1787be if entity @s[team=parSpec] run team join aRemSpec
execute as 97c8bd91-4c50-4619-baa7-ac96b61460e5 if entity @s[team=parSpec] run team join aRemSpec
execute as 194c167e-f65e-490c-b351-06ed5ced8244 if entity @s[team=parSpec] run team join aRemSpec

execute as 93a64317-fa9b-40aa-9a72-1fd07382d61e if entity @s[team=parSpec] run team join aThrSpec

# effects
effect give @a[y=3] minecraft:resistance infinite 255 true
effect give @a[y=3] minecraft:saturation infinite 255 true

# misc.
kill @e[type=item]
gamemode adventure @a[gamemode=survival]
weather clear
tag @a remove timeCheck1