fz-survival-datapack/data/fz/functions/event/player/on_aviate_one_meter.mcfunction

15 lines
742 B
Mcfunction
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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