execute unless entity @p[distance=..205] run return 0

execute if entity @a[distance=..200,tag=dev] run tp @s ~ ~ ~ ~5 0
particle minecraft:dust{color:[0.000,1.000,0.000],scale:4} ^ ^ ^100 0 1 0 0 25 force @a[tag=dev]
particle minecraft:dust{color:[1.000,0.000,0.000],scale:4} ^ ^ ^150 0 1 0 0 25 force @a[tag=dev]
particle minecraft:dust{color:[0.000,0.700,0.700],scale:2} ^ ^ ^1 0 2 0 0 5 force @a[tag=dev]
particle minecraft:end_rod ~ ~ ~ 0 0 0 0 3 force @a[tag=dev]

tag @s add temp
execute if entity @s[tag=!not_active] as @a[tag=playing,gamemode=!spectator,distance=150..] if score @s on_map = @n[tag=temp] map_id unless score @s y_level matches ..-1 run function pctf:logic/player/out_of_bounds
tag @s remove temp

# setblock ~ ~-1 ~ minecraft:bedrock

execute if entity @s[tag=wind_storm] rotated 0 0 run function pctf:logic/items/lucky_block/outcomes/global/wind_storm/fx/start

execute if score @s countdown matches 1.. store result storage pctf:map input.center_id int 1 run scoreboard players get @s map_id
execute if score @s countdown matches 1.. run function pctf:logic/game/end/center_loop with storage pctf:map input