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

13 lines
679 B
Mcfunction
Raw Normal View History

2022-06-23 21:10:09 +08:00
# 调用者:#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"}}]
2022-06-23 21:10:09 +08:00
2022-06-24 09:11:37 +08:00
execute if score @s fz.module.config.trigger matches 1000..1999 run function #fz:module/scoreboard/config/on_click
2022-06-23 21:10:09 +08:00
2022-06-24 08:11:36 +08:00
## 重置玩家的触发器分数
2022-06-24 09:11:37 +08:00
function #fz:module/config/reset_trigger
2022-06-23 21:10:09 +08:00
## 重新显示一次按钮
2022-06-24 08:11:36 +08:00
function #fz:module/config/display