- 将命名空间改为“fzsd”

- 完善交互器
- 添加管理员命令(/function admin.fzsd:<...>)
- 添加启动函数,用于自动升级等功能
- 添加重装、深度安装、深度卸载、深度重装函数
This commit is contained in:
延皓
2022-07-30 16:29:18 +08:00
parent dfe06e506c
commit 08d3d01b18
994 changed files with 3644 additions and 3522 deletions
@@ -0,0 +1,8 @@
scoreboard objectives add fzsd.module.health health
scoreboard objectives modify fzsd.module.health rendertype hearts
##
data modify storage fzsd:installed fzsd.module.health set value 1b
##
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,4 @@
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
@@ -0,0 +1 @@
scoreboard objectives modify fzsd.module.health displayname {"text": "血量", "color": "red"}
@@ -0,0 +1 @@
scoreboard objectives modify fzsd.module.health displayname {"text": "HP"}
@@ -0,0 +1 @@
scoreboard objectives modify fzsd.module.health displayname {"text": "厘米", "color": "gold"}
@@ -0,0 +1 @@
scoreboard objectives modify fzsd.module.health displayname {"text": "cm", "color": "gold"}
@@ -0,0 +1 @@
scoreboard objectives modify fzsd.module.health displayname {"text": "节操值", "color": "green"}
@@ -0,0 +1 @@
scoreboard objectives modify fzsd.module.health displayname {"text": "沙雕值", "color": "yellow"}
@@ -0,0 +1,9 @@
scoreboard objectives remove fzsd.module.health
data remove storage fzsd:config fzsd.module.health
##
data modify storage fzsd:installed fzsd.module.health set value 0b
##
execute if score fzsd.logger.level fzsd.variable.integer matches ..500 run tellraw @a [{"nbt": "fzsd.level.info", "interpret": true, "storage": "fzsd:logger"}, {"text": "已卸载组件:血量显示"}]