14 lines
633 B
Mcfunction
14 lines
633 B
Mcfunction
# 调用者:#fz:module/config/trigger
|
||
##### 玩家抬头到最高角度并蹲起后,触发此函数
|
||
|
||
## 调试
|
||
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 |