2022-06-24 08:11:36 +08:00
|
|
|
|
# 调用者:#fz:module/config/trigger
|
2022-06-23 21:10:09 +08:00
|
|
|
|
##### 玩家抬头到最高角度并蹲起后,触发此函数
|
|
|
|
|
|
2022-06-25 02:22:23 +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
|