#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    This function has been created by Skilendarz Group.
#             https://skilendarz.com
#
#      GIVE MAP MAKERS THE CREDIT THEY DESERVE!
#             COPYING IS PROHIBITED!
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

#Countdown
scoreboard players remove timer time 1

execute if score timer time matches 1100..1200 run function f:game/timer/11
execute if score timer time matches 1000..1099 run function f:game/timer/10
execute if score timer time matches 900..999 run function f:game/timer/9
execute if score timer time matches 800..899 run function f:game/timer/8
execute if score timer time matches 700..799 run function f:game/timer/7
execute if score timer time matches 600..699 run function f:game/timer/6
execute if score timer time matches 500..599 run function f:game/timer/5
execute if score timer time matches 400..499 run function f:game/timer/4
execute if score timer time matches 300..399 run function f:game/timer/3
execute if score timer time matches 200..299 run function f:game/timer/2
execute if score timer time matches 100..199 run function f:game/timer/1
execute if score timer time matches 0..99 run function f:game/timer/0
execute if score timer time matches -11..0 run function f:game/end/timer

scoreboard players remove timer tick 1000