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

12 lines
525 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.

## 调试
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": "由下蹲状态站起"}]
# 调用者advancement/fz:unskeak
##### 当玩家蹲起后触发此事件
## 运行事件
function #fz:event/on_unsneak
execute if entity @s[x_rotation = -90] run function #fz:event/config/on_trigger
## 复位进度触发器
advancement revoke @s until fz:unsneak