fz-survival-datapack/data/fz/functions/module/health/load.mcfunction

5 lines
550 B
Mcfunction

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