scoreboard players add @e[tag=area_main,score_starttimer_min=1] starttimer 1
scoreboard players set @e[tag=area_main,score_starttimer_min=105] starttimer 0


execute @e[score_starttimer_min=2,score_starttimer=2] ~ ~ ~ title @a times 0 20 5
execute @e[score_starttimer_min=2,score_starttimer=2] ~ ~ ~ title @a title [{"text":"e ","color":"yellow"}]
execute @e[score_starttimer_min=4,score_starttimer=4] ~ ~ ~ title @a title [{"text":"g","color":"yellow"},{"text":"e","color":"gold"},{"text":" M","color":"yellow"}]
execute @e[score_starttimer_min=6,score_starttimer=6] ~ ~ ~ title @a title [{"text":"a","color":"yellow"},{"text":"ge M","color":"gold"},{"text":"a","color":"yellow"}]
execute @e[score_starttimer_min=8,score_starttimer=8] ~ ~ ~ title @a title [{"text":"r","color":"yellow"},{"text":"age Ma","color":"gold"},{"text":"p","color":"yellow"}]
execute @e[score_starttimer_min=10,score_starttimer=10] ~ ~ ~ title @a title [{"text":" i","color":"yellow"},{"text":"rage Map","color":"gold"},{"text":"s","color":"yellow"}]
execute @e[score_starttimer_min=12,score_starttimer=12] ~ ~ ~ title @a title [{"text":"M","color":"yellow"},{"text":"irage Maps","color":"gold"},{"text":":","color":"yellow"}]
execute @e[score_starttimer_min=12,score_starttimer=12] ~ ~ ~ title @a title [{"text":"","color":"yellow"},{"text":"Mirage Maps:","color":"gold"},{"text":"","color":"yellow"}]
execute @e[score_starttimer_min=25,score_starttimer=25] ~ ~ ~ title @a title [{"text":"Mirage Maps:","color":"gold"},{"text":" Escape","color":"yellow"}]
execute @e[score_starttimer_min=25,score_starttimer=25] ~ ~ ~ execute @a ~ ~ ~ playsound minecraft:entity.zombie_villager.cure master @s ~ ~ ~ 2.0 1.0
execute @e[score_starttimer_min=25,score_starttimer=25] ~ ~ ~ execute @a ~ ~ ~ playsound minecraft:entity.zombie_villager.cure master @s ~ ~ ~ 2.0 1.2
execute @e[score_starttimer_min=25,score_starttimer=25] ~ ~ ~ execute @a ~ ~ ~ playsound minecraft:entity.zombie_villager.converted master @s ~ ~ ~ 2.0 0.4
execute @e[score_starttimer_min=45,score_starttimer=45] ~ ~ ~ title @a title [{"text":"3","color":"yellow"},{"text":"          ","color":"yellow"}]
execute @e[score_starttimer_min=45,score_starttimer=45] ~ ~ ~ execute @a ~ ~ ~ playsound minecraft:block.note.xylophone master @s ~ ~ ~ 2.0 1.0
execute @e[score_starttimer_min=45,score_starttimer=45] ~ ~ ~ execute @a ~ ~ ~ playsound minecraft:block.note.chime master @s ~ ~ ~ 2.0 1.0
execute @e[score_starttimer_min=45,score_starttimer=45] ~ ~ ~ title @a subtitle [{"text":"Starting in:","color":"red"}]
execute @e[score_starttimer_min=47,score_starttimer=47] ~ ~ ~ title @a title [{"text":" ","color":"gold"},{"text":"3         ","color":"yellow"}]
execute @e[score_starttimer_min=49,score_starttimer=49] ~ ~ ~ title @a title [{"text":"  ","color":"gold"},{"text":"3        ","color":"yellow"}]
execute @e[score_starttimer_min=51,score_starttimer=51] ~ ~ ~ title @a title [{"text":"   ","color":"gold"},{"text":"3       ","color":"yellow"}]
execute @e[score_starttimer_min=53,score_starttimer=53] ~ ~ ~ title @a title [{"text":"    ","color":"gold"},{"text":"3      ","color":"yellow"}]
execute @e[score_starttimer_min=55,score_starttimer=55] ~ ~ ~ title @a title [{"text":"     ","color":"gold"},{"text":"3     ","color":"yellow"}]
execute @e[score_starttimer_min=57,score_starttimer=57] ~ ~ ~ title @a title [{"text":"      ","color":"gold"},{"text":"3    ","color":"yellow"}]
execute @e[score_starttimer_min=59,score_starttimer=59] ~ ~ ~ title @a title [{"text":"       ","color":"gold"},{"text":"3   ","color":"yellow"}]
execute @e[score_starttimer_min=61,score_starttimer=61] ~ ~ ~ title @a title [{"text":"2       ","color":"gold"},{"text":"3  ","color":"yellow"}]
execute @e[score_starttimer_min=61,score_starttimer=61] ~ ~ ~ title @a subtitle [{"text":"Starting in:","color":"gold"}]
execute @e[score_starttimer_min=61,score_starttimer=61] ~ ~ ~ execute @a ~ ~ ~ playsound minecraft:block.note.xylophone master @s ~ ~ ~ 2.0 1.0
execute @e[score_starttimer_min=61,score_starttimer=61] ~ ~ ~ execute @a ~ ~ ~ playsound minecraft:block.note.chime master @s ~ ~ ~ 2.0 1.0
execute @e[score_starttimer_min=63,score_starttimer=63] ~ ~ ~ title @a title [{"text":" 2       ","color":"gold"},{"text":"3 ","color":"yellow"}]
execute @e[score_starttimer_min=65,score_starttimer=65] ~ ~ ~ title @a title [{"text":"  2       ","color":"gold"},{"text":"3","color":"yellow"}]
execute @e[score_starttimer_min=67,score_starttimer=67] ~ ~ ~ title @a title [{"text":"   ","color":"red"},{"text":"2        ","color":"gold"}]
execute @e[score_starttimer_min=69,score_starttimer=69] ~ ~ ~ title @a title [{"text":"    ","color":"red"},{"text":"2       ","color":"gold"}]
execute @e[score_starttimer_min=71,score_starttimer=71] ~ ~ ~ title @a title [{"text":"     ","color":"red"},{"text":"2      ","color":"gold"}]
execute @e[score_starttimer_min=73,score_starttimer=73] ~ ~ ~ title @a title [{"text":"      ","color":"red"},{"text":"2     ","color":"gold"}]
execute @e[score_starttimer_min=75,score_starttimer=75] ~ ~ ~ title @a title [{"text":"       ","color":"red"},{"text":"2    ","color":"gold"}]
execute @e[score_starttimer_min=77,score_starttimer=77] ~ ~ ~ title @a title [{"text":"        ","color":"red"},{"text":"2   ","color":"gold"}]
execute @e[score_starttimer_min=79,score_starttimer=79] ~ ~ ~ title @a title [{"text":"1        ","color":"red"},{"text":"2  ","color":"gold"}]
execute @e[score_starttimer_min=79,score_starttimer=79] ~ ~ ~ title @a subtitle [{"text":"Starting in:","color":"yellow"}]
execute @e[score_starttimer_min=79,score_starttimer=79] ~ ~ ~ execute @a ~ ~ ~ playsound minecraft:block.note.xylophone master @s ~ ~ ~ 2.0 1.0
execute @e[score_starttimer_min=79,score_starttimer=79] ~ ~ ~ execute @a ~ ~ ~ playsound minecraft:block.note.chime master @s ~ ~ ~ 2.0 1.0
execute @e[score_starttimer_min=81,score_starttimer=81] ~ ~ ~ title @a title [{"text":" 1        ","color":"red"},{"text":"2 ","color":"gold"}]
execute @e[score_starttimer_min=83,score_starttimer=83] ~ ~ ~ title @a title [{"text":"  1        ","color":"red"},{"text":"2","color":"gold"}]
execute @e[score_starttimer_min=85,score_starttimer=85] ~ ~ ~ title @a title [{"text":"   1        ","color":"red"},{"text":"","color":"red"}]
execute @e[score_starttimer_min=87,score_starttimer=87] ~ ~ ~ title @a title [{"text":"    1        ","color":"red"},{"text":"","color":"red"}]
execute @e[score_starttimer_min=89,score_starttimer=89] ~ ~ ~ title @a title [{"text":"     1       ","color":"red"},{"text":"","color":"red"}]
execute @e[score_starttimer_min=91,score_starttimer=91] ~ ~ ~ title @a title [{"text":"      1      ","color":"red"},{"text":"","color":"red"}]
execute @e[score_starttimer_min=93,score_starttimer=93] ~ ~ ~ title @a title [{"text":"       1     ","color":"red"},{"text":"","color":"red"}]
execute @e[score_starttimer_min=95,score_starttimer=95] ~ ~ ~ title @a title [{"text":"        1    ","color":"red"},{"text":"","color":"red"}]
execute @e[score_starttimer_min=97,score_starttimer=97] ~ ~ ~ title @a title [{"text":"         1   ","color":"red"},{"text":"","color":"red"}]
execute @e[score_starttimer_min=99,score_starttimer=99] ~ ~ ~ title @a title [{"text":"Escape!","color":"red","bold":true}]
execute @e[score_starttimer_min=98,score_starttimer=98] ~ ~ ~ execute @a ~ ~ ~ playsound minecraft:entity.enderdragon.growl master @s ~ ~ ~ 2.0 2.0
execute @e[score_starttimer_min=98,score_starttimer=98] ~ ~ ~ execute @a ~ ~ ~ playsound minecraft:entity.enderdragon.growl master @s ~ ~ ~ 2.0 0.4
execute @e[score_starttimer_min=99,score_starttimer=99] ~ ~ ~ title @a title [{"text":"","color":"red","bold":true}]
execute @e[score_starttimer_min=99,score_starttimer=99] ~ ~ ~ setblock -31 3 -20 minecraft:redstone_wire 0 destroy
execute @e[score_starttimer_min=99,score_starttimer=99,score_map_min=1,score_map=1] ~ ~ ~ function mctsts:start_1
execute @e[score_starttimer_min=99,score_starttimer=99,score_map_min=2,score_map=2] ~ ~ ~ function mctsts:start_2
execute @e[score_starttimer_min=99,score_starttimer=99,score_map_min=3,score_map=3] ~ ~ ~ function mctsts:start_3
execute @e[score_starttimer_min=97,score_starttimer=97] ~ ~ ~ effect @a invisibility 1 5 true
execute @e[score_starttimer_min=97,score_starttimer=97] ~ ~ ~ scoreboard teams join gray @a