继续完善config

This commit is contained in:
延皓
2022-06-24 09:11:37 +08:00
parent c5b36c5f50
commit 6f6ccb05be
18 changed files with 63 additions and 18 deletions
+5 -1
View File
@@ -1,4 +1,8 @@
function #fz:event/on_login
scoreboard players reset @s fz.event.leave_game
##
advancement revoke @s until fz:unsneak
##
scoreboard players set @s fz.event.leave_game 0
advancement revoke @s only fz:login
@@ -2,8 +2,7 @@
#####
function #fz:event/on_unsneak
execute if entity @s[y_rotation = 90] run function #fz:module/config/trigger
execute if entity @s[y_rotation = 90] run function #fz:event/config/on_trigger
##
advancement revoke @s only fz:sneak
advancement revoke @s only fz:unsneak
advancement revoke @s until fz:unsneak
+1
View File
@@ -1,5 +1,6 @@
# 调用者:#fz:install
function #fz:event/install
function #fz:logger/install
##
@@ -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"}}]
+2
View File
@@ -5,6 +5,8 @@ function #fz:module/uninstall
##
scoreboard objectives remove fz.variable.integer
function #fz:event/uninstall
## 使1tick卸载
schedule function #fz:logger/uninstall 1t replace