# executing as game marker after countdown is completed
# this just calls main2 with a storage so it can be map specific

execute if score .coin_rain settings matches 1 run scoreboard players add #coin_rain temp 1
execute if score #coin_rain temp matches 50.. run function pctf:logic/game/coin_rain/start_loop

execute if score .lucky_blocks settings matches 1 run scoreboard players add #lucky_block temp 1
execute if score #lucky_block temp matches 350.. run function pctf:logic/game/lucky_blocks/start

execute if score .apocalypse settings matches 1 run scoreboard players add #apocalypse temp 1
execute if score #apocalypse temp matches 400.. run function pctf:logic/game/apocalypse/start

execute store result storage pctf:map input.map_id int 1 run scoreboard players get @s map_id
execute at @s run function pctf:logic/game/main2 with storage pctf:map input