完善系统核心功能、添加here模块
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
scoreboard objectives add fz.module.health health
|
||||
scoreboard objectives modify fz.module.health rendertype hearts
|
||||
|
||||
## 标记为已安装
|
||||
data modify storage fz:installed fz.module.health set value 1b
|
||||
@@ -0,0 +1,5 @@
|
||||
function #fz:module/health/set_health_name
|
||||
execute unless data storage fz:config fz.module.health.display{below_name: 0b} run scoreboard objectives setdisplay belowName fz.module.health
|
||||
execute if data storage fz:config fz.module.health.display{below_name: 0b} run scoreboard objectives setdisplay belowName
|
||||
execute unless data storage fz:config fz.module.health.display{list: 0b} run scoreboard objectives setdisplay list fz.module.health
|
||||
execute if data storage fz:config fz.module.health.display{list: 0b} run scoreboard objectives setdisplay list
|
||||
@@ -0,0 +1 @@
|
||||
scoreboard objectives modify fz.module.health displayname {"text": "血量", "color": "red"}
|
||||
@@ -0,0 +1 @@
|
||||
scoreboard objectives modify fz.module.health displayname {"text": "HP"}
|
||||
@@ -0,0 +1 @@
|
||||
scoreboard objectives modify fz.module.health displayname {"text": "厘米", "color": "gold"}
|
||||
@@ -0,0 +1 @@
|
||||
scoreboard objectives modify fz.module.health displayname {"text": "cm", "color": "gold"}
|
||||
@@ -0,0 +1 @@
|
||||
scoreboard objectives modify fz.module.health displayname {"text": "节操值", "color": "green"}
|
||||
@@ -0,0 +1 @@
|
||||
scoreboard objectives modify fz.module.health displayname {"text": "沙雕值", "color": "yellow"}
|
||||
@@ -0,0 +1,5 @@
|
||||
scoreboard objectives remove fz.module.health
|
||||
data remove storage fz:config fz.module.health
|
||||
|
||||
## 标记为已卸载
|
||||
data modify storage fz:installed fz.module.health set value 0b
|
||||
Reference in New Issue
Block a user