# 调用者:advancements/fz:~ ## 调试 execute if score fz.logger.level fz.variable.integer matches ..400 run tellraw @a [{"nbt": "fz.level.debug", "interpret": true, "storage": "fz:logger"}, {"text": "事件已触发:玩家"}, {"selector": "@s"}, {"text": "游玩了1h"}] ## 将事件数据缓存,并重置事件计分板 # scoreboard players operation fz.var.score fz.variable.integer = @s fz.event.play_seconds # scoreboard players operation fz.var.score fz.variable.integer /= 3600 fz.variable.integer scoreboard players operation @s fz.event.play_seconds %= 3600 fz.variable.integer ## 运行事件 function #fz:event/player/on_play_one_hour ## 重置事件进度 advancement revoke @s only fz:event/on_play_one_hour