This commit is contained in:
延皓
2022-06-24 08:11:36 +08:00
parent a2a9d874f7
commit c5b36c5f50
19 changed files with 64 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
{
"criteria": {
"login": {
"trigger": "tick",
"conditions": {
"player": {
""
}
}
}
}
}
@@ -0,0 +1 @@
scoreboard objectives add fz.event.leave_game minecraft.custom:leave_game
@@ -0,0 +1,4 @@
function #fz:event/on_login
scoreboard players reset @s fz.event.leave_game
advancement revoke @s only fz:login
@@ -0,0 +1 @@
scoreboard objectives remove fz.event.leave_game
@@ -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 # 调用者:#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是为了避免1tick内执行两次
schedule function fz:module/config/loop 0t replace 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 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": "计分板:"}
@@ -1,6 +1,6 @@
{ {
"replace": false, "replace": false,
"values": [ "values": [
"fz:module/config/buttons" "fz:module/config/reset_trigger"
] ]
} }
@@ -0,0 +1,7 @@
{
"replace": false,
"values": [
"#fz:module/scoreboard/config/display/head",
"#fz:module/scoreboard/config/display/buttons"
]
}
@@ -2,6 +2,6 @@
"__comment": "调用者:#fz:module/install", "__comment": "调用者:#fz:module/install",
"replace": false, "replace": false,
"values": [ "values": [
"fz:config/install" "fz:module/config/install"
] ]
} }
@@ -2,6 +2,6 @@
"__comment": "调用者:fz:module/try_load", "__comment": "调用者:fz:module/try_load",
"replace": false, "replace": false,
"values": [ "values": [
"fz:config/load" "fz:module/config/load"
] ]
} }
@@ -2,6 +2,6 @@
"__comment": "调用者:#fz:module/uninstall", "__comment": "调用者:#fz:module/uninstall",
"replace": false, "replace": false,
"values": [ "values": [
"fz:config/uninstall" "fz:module/config/uninstall"
] ]
} }
@@ -0,0 +1,7 @@
{
"__comment": "调用者:#fz:module/config/display",
"replace": false,
"values": [
"fz:module/scoreboard/config/display/buttons"
]
}
@@ -0,0 +1,7 @@
{
"__comment": "调用者:#fz:module/config/display",
"replace": false,
"values": [
"fz:module/scoreboard/config/display/head"
]
}
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"fz:module/scoreboard/config/on_click"
]
}