fz-survival-datapack/data/fz/functions/module/config/on_click.mcfunction
2022-06-27 18:18:41 +08:00

11 lines
604 B
Mcfunction

# 调用者:#fz:module/config/on_click
##### 处理玩家点击,并进行下一步操作
## 调试
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": "点击了配置按钮,触发器分数为:"}, {"score": {"name": "@s", "objective": "fz.module.config.trigger"}}]
execute if score @s fz.module.config.trigger matches 1000..1999 run function #fz:module/scoreboard/config/on_click
## 重新显示一次按钮
function #fz:module/config/display