function does not repeat itself when using schedule

Im trying to create a datapack that keeps track of players playtime and I have a problem with a function that doesnt repeat itself even though it should. This is the code for both of my functions. the main one calling the timer and the second one scheduling itself every second to add 1 each second: ### time:main execute as @a[tag=!time] at @s run function time:calculations/timer ### time:calculations/timer tag @s[tag=!time] add time #seconds scoreboard players add @s time.seconds 1 #seconds to minutes execute if score @s time.seconds matches 60.. run scoreboard players add @s time.minutes 1 execute if score @s time.seconds matches 60.. run scoreboard players remove @s time.seconds 60 #minutes to hours execute if score @s time.minutes matches 60.. run scoreboard players add @s time.hours 1 execute if score @s time.minutes matches 60.. run scoreboard players remove @s time.minutes 60 #hours to days execute if score @s time.hours matches 24.. run scoreboard players add @s time.days 1 execute if score @s time.hours matches 24.. run scoreboard players remove @s time.hours 24 #schedule execute as @s at @s run schedule function time:calculations/timer 1s
Continue to help post