This commit is contained in:
延皓
2022-06-23 20:06:15 +08:00
parent ff5d951fd1
commit 5c75fa4127
56 changed files with 200 additions and 37 deletions
@@ -1,3 +1,3 @@
# 调用者:
# 调用者:fz:module/scoreboard/config/on_click
team join fz.module.scoreboard.display.activation @s
@@ -1,3 +1,3 @@
# 调用者:
# 调用者:fz:module/scoreboard/config/on_click
team join fz.module.scoreboard.display.aviating_distance @s
@@ -1,3 +1,3 @@
# 调用者:
# 调用者:fz:module/scoreboard/config/on_click
team join fz.module.scoreboard.display.carousel @s
@@ -1,3 +1,3 @@
# 调用者:
# 调用者:fz:module/scoreboard/config/on_click
team join fz.module.scoreboard.display.damage_taken @s
@@ -1,3 +1,3 @@
# 调用者:
# 调用者:fz:module/scoreboard/config/on_click
team join fz.module.scoreboard.display.death_count @s
@@ -1,3 +1,3 @@
# 调用者:
# 调用者:fz:module/scoreboard/config/on_click
team join fz.module.scoreboard.display.dig_count @s
@@ -1,3 +1,3 @@
# 调用者:
# 调用者:fz:module/scoreboard/config/on_click
team join fz.module.scoreboard.display.fishing_count @s
@@ -1,3 +1,3 @@
# 调用者:
# 调用者:fz:module/scoreboard/config/on_click
team join fz.module.scoreboard.display.general @s
@@ -1,3 +1,3 @@
# 调用者:
# 调用者:fz:module/scoreboard/config/on_click
team join fz.module.scoreboard.display.kill_count @s
@@ -1,3 +1,3 @@
# 调用者:
# 调用者:fz:module/scoreboard/config/on_click
team leave @s
@@ -1,3 +1,3 @@
# 调用者:
# 调用者:fz:module/scoreboard/config/on_click
team join fz.module.scoreboard.display.trade_count @s
@@ -1,4 +1,4 @@
# 调用者:fz:install
# 调用者:#fz:module/scoreboard/install
##
###### dummy便
@@ -46,4 +46,4 @@ team add fz.module.scoreboard.display.trade_count
##### scoreboard objectives add fz.module.scoreboard.placement_count
# 标记为已安装
data modify storage fz:module scoreboard.installed set value 1b
data modify storage fz:install_manager fz.module.scoreboard set value 1b
@@ -1,8 +1,7 @@
# 调用者:#fz:module/scoreboard/load
##
execute if data storage fz:storage module.scoreboard{installed: 1b} run tellraw @a [{"nbt": "exception.load_without_install_exception", "interpret": true, "storage": "fz:logger"}, {"text": "计分板"}]
execute unless data storage fz:storage module.scoreboard.installed run tellraw @a [{"nbt": "exception.load_without_install_exception", "interpret": true, "storage": "fz:logger"}, {"text": "计分板"}]
execute unless data storage fz:install_manager fz.module{scoreboard: 1b} run tellraw @a [{"nbt": "fz.exception.load_without_install_exception", "interpret": true, "storage": "fz:logger"}, {"text": "计分板"}]
##
function #fz:module/scoreboard/display/set_all_colors
@@ -1,4 +1,4 @@
# 调用者:fz:uninstall
# 调用者:#fz:module/scoreboard/uninstall
##
schedule clear #fz:module/scoreboard/display/carousel_controller/loop
@@ -28,8 +28,8 @@ team remove fz.module.scoreboard.display.trade_count
##
tellraw @a [{"nbt": "level.info", "interpret": true, "storage": "fz:logger"}, {"text": "计分板已卸载!"}]
## function
##
tellraw @s [{"nbt": "level.warn", "interpret": true, "storage": "fz:logger"}, {"text": "您要删除计分板数据吗,它将会永久失去!(真的很久!)"}, {"text": "[确定]","clickEvent": {"action": "run_command", "value": "/function #fz:module/scoreboard/clear_data"}, "hoverEvent": {"action": "show_text", "contents": {"text": "删除计分板,它将会永久失去!(真的很久!)", "color": "red"}}}]
# 标记为已卸载
data modify storage fz:module scoreboard.installed set value 0b
data modify storage fz:install_manager fz.module.scoreboard set value 0b
@@ -0,0 +1,6 @@
# 调用者:#fz:module/try_load
##
execute if data storage fz:install_manager fz.module{config:1b} run function #fz:module/config/load
execute if data storage fz:install_manager fz.module{scoreboard:1b} run function #fz:module/scoreboard/load
execute if data storage fz:install_manager fz.module{sweeper:1b} run function #fz:module/sweeper/load