管理员界面

This commit is contained in:
延皓 committed 2022-08-30 03:25:27 +08:00
1 parent 3b902c7880
commit 90155651ab
30 files changed
+101 -43

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
execute store success storage fzsd:version fzsd.need_update int 1 run data merge storage fzsd:version {fzsd: {version: '3.0.0-beta.8'}}
execute store success storage fzsd:version fzsd.need_update int 1 run data merge storage fzsd:version {fzsd: {version: '3.0.0-beta.9'}}
execute if data storage fzsd:version fzsd{need_update: 1} run function fzsd:system/update
function fzsd:system/carpet/try_load_fzsd_score
function #fzsd:load
@@ -1,4 +1,7 @@
execute unless data storage fzsd:config fzsd.module.health.display{below_name: 0b} run scoreboard objectives setdisplay belowName fzsd.module.health
execute if data storage fzsd:config fzsd.module.health.display{below_name: 0b} run scoreboard objectives setdisplay belowName
execute unless data storage fzsd:config fzsd.module.health.display{list: 0b} run scoreboard objectives setdisplay list fzsd.module.health
execute if data storage fzsd:config fzsd.module.health.display{list: 0b} run scoreboard objectives setdisplay list
execute if data storage fzsd:config fzsd.module.health.display{list: 0b} run scoreboard objectives setdisplay list
## 日志
execute if score fzsd.logger.level fzsd.variable.integer matches ..500 run tellraw @a [{"nbt": "fzsd.level.info", "interpret": true, "storage": "fzsd:logger"}, {"text": "已加载组件:玩家血量显示"}]
@@ -0,0 +1,2 @@
## 判断是否安装,如果安装则加载
execute if data storage fzsd:install fzsd.module{health:1b} run function #fzsd:module/health/load
@@ -0,0 +1,2 @@
## 判断是否安装,如果安装则加载
execute if data storage fzsd:install fzsd.module{interactor:1b} run function #fzsd:module/interactor/load
@@ -2,6 +2,7 @@
## 删除计分板
### 总榜
scoreboard objectives remove fzsd.module.scoreboard.assign.general
scoreboard objectives remove fzsd.module.scoreboard.display.general
### 活跃度
scoreboard objectives remove fzsd.module.scoreboard.display.activation
@@ -0,0 +1,2 @@
## 判断是否安装,如果安装则加载
execute if data storage fzsd:install fzsd.module{scoreboard:1b} run function #fzsd:module/scoreboard/load
@@ -1,6 +0,0 @@
# 调用者:#fzsd:module/try_load
## 判断是否安装,如果安装则加载
execute if data storage fzsd:install fzsd.module{health:1b} run function #fzsd:module/health/load
execute if data storage fzsd:install fzsd.module{interactor:1b} run function #fzsd:module/interactor/load
execute if data storage fzsd:install fzsd.module{scoreboard:1b} run function #fzsd:module/scoreboard/load
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"fzsd:module/health/try_load"
]
}
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"fzsd:module/interactor/try_load"
]
}
@@ -3,7 +3,7 @@
"replace": false,
"values": [
"fzsd:module/scoreboard/display/reset_id",
"fzsd:module/scoreboard/display/register_id",
"#fzsd:module/scoreboard/display/register_id",
"#fzsd:module/scoreboard/display/set_text",
"fzsd:module/scoreboard/display/carousel/loop",
"fzsd:module/scoreboard/load"
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"fzsd:module/scoreboard/try_load"
]
}
@@ -2,6 +2,8 @@
"__comment": "调用者:fzsd:load",
"replace": false,
"values": [
"fzsd:module/try_load"
"#fzsd:module/health/try_load",
"#fzsd:module/interactor/try_load",
"#fzsd:module/scoreboard/try_load"
]
}