execute if score countdown Stats matches 250 run clone 16 0 46 -8 0 22 -8 31 22
execute if score countdown Stats matches 200 run clone 16 1 46 -8 1 22 -8 31 22
execute if score countdown Stats matches 180 run clone 16 2 46 -8 2 22 -8 31 22
execute if score countdown Stats matches 160 run clone 16 3 46 -8 3 22 -8 31 22
execute if score countdown Stats matches 140 run clone 16 4 46 -8 4 22 -8 31 22
execute if score countdown Stats matches 120 run clone 16 5 46 -8 5 22 -8 31 22
execute if score countdown Stats matches 100 run clone 16 6 46 -8 6 22 -8 31 22
execute if score countdown Stats matches 80 run clone 16 7 46 -8 7 22 -8 31 22
execute if score countdown Stats matches 60 run clone 16 8 46 -8 8 22 -8 31 22
execute if score countdown Stats matches 40 run clone 16 9 46 -8 9 22 -8 31 22
execute if score countdown Stats matches 20 run clone 16 10 46 -8 10 22 -8 31 22
execute if score countdown Stats matches 15 run clone 16 11 46 -8 11 22 -8 31 22
execute if score countdown Stats matches 10 run clone 16 10 46 -8 10 22 -8 31 22
execute if score countdown Stats matches 5 run clone 16 11 46 -8 11 22 -8 31 22
execute if score countdown Stats matches 0 run clone 16 0 46 -8 0 22 -8 31 22
execute if score countdown Stats matches 0 run function mctsts:lobby/start


execute if score countdown Stats matches 250 as @a at @s run playsound minecraft:entity.arrow.hit_player master @s ~ ~ ~ 1 1
execute if score countdown Stats matches 200 as @a at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 2.00
execute if score countdown Stats matches 180 as @a at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.95
execute if score countdown Stats matches 160 as @a at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.90
execute if score countdown Stats matches 140 as @a at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.85
execute if score countdown Stats matches 120 as @a at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.80
execute if score countdown Stats matches 100 as @a at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.75
execute if score countdown Stats matches 80 as @a at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.70
execute if score countdown Stats matches 60 as @a at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.65
execute if score countdown Stats matches 40 as @a at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.60
execute if score countdown Stats matches 20 as @a at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.55
execute if score countdown Stats matches 0 as @a at @s run playsound minecraft:entity.arrow.hit_player master @s ~ ~ ~ 1 1

execute if score countdown Stats matches 250 run title @a title [{"text":"15","color":"gold","bold":true}]
execute if score countdown Stats matches 200 run title @a title [{"text":"10","color":"gold","bold":true}]
execute if score countdown Stats matches 180 run title @a title [{"text":"9","color":"gold","bold":true}]
execute if score countdown Stats matches 160 run title @a title [{"text":"8","color":"gold","bold":true}]
execute if score countdown Stats matches 140 run title @a title [{"text":"7","color":"gold","bold":true}]
execute if score countdown Stats matches 120 run title @a title [{"text":"6","color":"gold","bold":true}]
execute if score countdown Stats matches 100 run title @a title [{"text":"5","color":"gold","bold":true}]
execute if score countdown Stats matches 80 run title @a title [{"text":"4","color":"gold","bold":true}]
execute if score countdown Stats matches 60 run title @a title [{"text":"3","color":"gold","bold":true}]
execute if score countdown Stats matches 40 run title @a title [{"text":"2","color":"gold","bold":true}]
execute if score countdown Stats matches 20 run title @a title [{"text":"1","color":"gold","bold":true}]
execute if score countdown Stats matches 2 run title @a title [{"translate":"lobby.starting","color":"gold","bold":true}]
execute if score countdown Stats matches 5.. run title @a subtitle [{"translate":"lobby.starts_in","color":"dark_aqua","bold":true}]
execute if score countdown Stats matches 1.. run title @a times 0 100 20
execute if score countdown Stats matches 0 run title @a times 0 5 20
execute if score countdown Stats matches 0 run title @a subtitle [""]

scoreboard players remove countdown Stats 1