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

14 lines
577 B
Mcfunction
Raw Normal View History

# 调用者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": "从蹲下状态站起"}]
2022-06-23 21:10:09 +08:00
# 调用者advancement/fz:unskeak
##### 当玩家蹲起后触发此事件
## 运行事件
function #fz:event/player/on_unsneak
2022-07-03 06:27:45 +08:00
execute if entity @s[x_rotation = -90] run function #fz:event/module/config/on_config
2022-06-23 21:10:09 +08:00
## 重置事件进度
2022-07-03 19:01:51 +08:00
advancement revoke @s until fz:event/on_unsneak