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

10 lines
438 B
Mcfunction
Raw Normal View History

2020-11-27 00:27:49 +08:00
#安装血量显示
#初始化
scoreboard objectives add Health health {"text": "cm","color": "yellow"}
scoreboard objectives modify Health rendertype hearts
scoreboard objectives setdisplay list Health
scoreboard objectives setdisplay belowName Health
#写入已安装的信息
data modify storage fz:survival installed.health set value 1b
2020-12-05 07:27:57 +08:00
#提示已安装
tellraw @a {"text": "[信息]血量显示已安装","color": "#5fff00"}