fz-survival-datapack/data/fz/functions/module/config/on_config.mcfunction
2022-07-03 06:27:45 +08:00

14 lines
635 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.

# 调用者:#fz:module/config/on_config
##### 玩家抬头到最高角度并蹲起后,触发此函数
## 调试
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": "触发了配置功能"}]
## 监听计分板分数的循环schedule是为了避免1tick内执行两次但可有可无
schedule function fz:module/config/loop 0t replace
## 显示按钮
function #fz:module/config/display
## 设置或重制超时时间
schedule function #fz:module/config/timeout 300s replace