继续完善config
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
# 调用者:#fz:module/config/on_click
|
||||
##### 处理玩家点击事件,并进行下一步操作
|
||||
|
||||
execute if score @s fz.module.config.trigger matches 1000..1099 run function #fz:module/scoreboard/config/on_click
|
||||
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
|
||||
@@ -0,0 +1,3 @@
|
||||
# 调用者:#fz:module/config/reset_trigger
|
||||
|
||||
scoreboard players reset @s fz.module.config.trigger
|
||||
@@ -1,3 +1,3 @@
|
||||
# 调用者:#fz:module/scoreboard/config/display/buttons
|
||||
|
||||
tellraw @s [{"text": "- "}, {"text": "[关]", "color": "dark_red", "hoverEvent": {"action": "show_text", "contents": {"text": "关", "color": "dark_red"}}, "clickEvent": {"action": "run_command", "value": "/trigger fz.module.config.trigger set 1000"}}, {"text": "[总榜]", "color": "dark_aqua", "hoverEvent": {"action": "show_text", "contents": {"text": "总榜", "color": "dark_aqua"}}, "clickEvent": {"action": "run_command", "value": "/trigger fz.module.config.trigger set 1001"}}]
|
||||
tellraw @s [{"text": "- "}, {"text": "[关]", "color": "dark_red", "hoverEvent": {"action": "show_text", "contents": {"text": "关", "color": "dark_red"}}, "clickEvent": {"action": "run_command", "value": "/trigger fz.module.config.trigger set 1000"}}, {"text": "[总榜]", "color": "dark_aqua", "hoverEvent": {"action": "show_text", "contents": {"text": "总榜", "color": "dark_aqua"}}, "clickEvent": {"action": "run_command", "value": "/trigger fz.module.config.trigger set 1010"}}, {"text": "[活跃度]", "color": "aqua", "hoverEvent": {"action": "show_text", "contents": {"text": "活跃度", "color": "aqua"}}, "clickEvent": {"action": "run_command", "value": "/trigger fz.module.config.trigger set 1020"}}, {"text": "[飞行距离]", "color": "light_purple", "hoverEvent": {"action": "show_text", "contents": {"text": "飞行距离", "color": "light_purple"}}, "clickEvent": {"action": "run_command", "value": "/trigger fz.module.config.trigger set 1030"}}]
|
||||
Reference in New Issue
Block a user