scoreboard players operation fz.var.score fz.variable.integer = @s fz.event.play_seconds function #fz:event/on_play_one_hour scoreboard players operation @s fz.event.play_seconds %= 3600 fz.variable.integer advancement revoke @s only fz:event/on_play_one_hour