fz-survival-datapack/data/fz/functions/health/install.mcfunction

10 lines
403 B
Mcfunction
Raw Normal View History

2021-07-03 18:55:08 +08:00
#安装血量显示
#初始化
2021-07-04 08:22:53 +08:00
scoreboard objectives add Health health {"text": "HP"}
2021-07-03 18:55:08 +08:00
scoreboard objectives modify Health rendertype hearts
scoreboard objectives setdisplay list Health
scoreboard objectives setdisplay belowName Health
#写入已安装的信息
data merge storage fz.installed {health: 1b}
#提示已安装
tellraw @a {"text": "[信息]血量显示已安装","color": "#5fff00"}