fz-survival-datapack/data/fz/functions/module/config/on_config.mcfunction

14 lines
635 B
Mcfunction
Raw Normal View History

2022-07-03 06:27:45 +08:00
# 调用者:#fz:module/config/on_config
2022-06-23 21:10:09 +08:00
##### 玩家抬头到最高角度并蹲起后,触发此函数
## 调试
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
## 监听计分板分数的循环schedule是为了避免1tick内执行两次但可有可无
schedule function fz:module/config/loop 0t replace
## 显示按钮
2022-06-24 08:11:36 +08:00
function #fz:module/config/display
2022-06-23 21:10:09 +08:00
## 设置或重制超时时间
schedule function #fz:module/config/timeout 300s replace