.
This commit is contained in:
@@ -1 +1 @@
|
||||
scoreboard objectives add fz.module.config.trigger
|
||||
scoreboard objectives add fz.module.config.trigger dummy
|
||||
@@ -1,7 +1,9 @@
|
||||
# 调用者:#fz:module/config/on_click
|
||||
##### 处理玩家点击事件,并进行下一步操作
|
||||
|
||||
execute if score @s fz.module.config.trigger matches 1000..1099 run function #fz:module/scoreboard/config/on_click
|
||||
|
||||
## 重置玩家的触发器分数
|
||||
|
||||
## 重新显示一次按钮
|
||||
function #fz:module/config/buttons
|
||||
function #fz:module/config/display
|
||||
@@ -1,11 +1,11 @@
|
||||
# 调用者:#fz:module/config/on_trigger
|
||||
# 调用者:#fz:module/config/trigger
|
||||
##### 玩家抬头到最高角度并蹲起后,触发此函数
|
||||
|
||||
## 监听计分板分数的循环,schedule是为了避免1tick内执行两次,但可有可无
|
||||
schedule function fz:module/config/loop 0t replace
|
||||
|
||||
## 显示按钮
|
||||
function #fz:module/config/buttons
|
||||
function #fz:module/config/display
|
||||
|
||||
## 设置或重制超时时间
|
||||
schedule function #fz:module/config/timeout 300s replace
|
||||
@@ -0,0 +1,3 @@
|
||||
schedule clear fz:module/config/loop
|
||||
|
||||
scoreboard objectives remove fz.module.config.trigger
|
||||
@@ -0,0 +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"}}]
|
||||
@@ -0,0 +1,3 @@
|
||||
# 调用者:#fz:module/scoreboard/config/display/head
|
||||
|
||||
tellraw @s {"text": "计分板:"}
|
||||
Reference in New Issue
Block a user