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

#World border
execute store result score timer main run worldborder get
scoreboard players operation timer main %= $1000 main
worldborder set 5999000
worldborder set 6000000 1

#Countdown
scoreboard players operation timer tick += timer main
execute if score timer tick matches 1000.. run function f:game/timer/countdown