完善所有剩余功能,后续bug修复后即准备发布正式版并向下移植
- 将命名空间改为“fzsd” - 完善交互器 - 添加管理员命令(/function admin.fzsd:<...>) - 添加启动函数,用于自动升级等功能 - 添加重装、深度安装、深度卸载、深度重装函数
This commit is contained in:
@@ -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": "已卸载组件:血量显示"}]
|
||||
Reference in New Issue
Block a user