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

13 lines
679 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/reset_trigger
## 重新显示一次按钮
function #fz:module/config/display