fz-survival-datapack/data/fz/functions/event/on_play_one_hour.mcfunction

7 lines
351 B
Mcfunction
Raw Normal View History

2022-07-03 19:01:51 +08:00
scoreboard players operation fz.var.score fz.variable.integer = @s fz.event.play_seconds
2022-07-04 00:38:23 +08:00
scoreboard players operation fz.var.score fz.variable.integer /= 3600 fz.variable.integer
2022-07-03 19:01:51 +08:00
2022-07-03 06:40:19 +08:00
function #fz:event/on_play_one_hour
2022-07-03 19:01:51 +08:00
scoreboard players operation @s fz.event.play_seconds %= 3600 fz.variable.integer
advancement revoke @s only fz:event/on_play_one_hour