fz-survival-datapack/data/fzsd/functions/module/health/install.mcfunction
2022-07-31 10:17:11 +08:00

8 lines
420 B
Mcfunction

scoreboard objectives add fzsd.module.health health
scoreboard objectives modify fzsd.module.health rendertype hearts
## 标记为已安装
data modify storage fzsd:install 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": "已安装组件:血量显示"}]