š components.yml
Components are reusable, pre-designed styles for parts of your bar, like the health bar itself or a level display.
Health Bars
Located in components/health_bars/
, these files define what the health bar looks like at different percentages of health.
Example:
# In components/health_bars/simple_hearts.yml
health-icon-steps:
# The key is the health percentage threshold (<=)
# The value is the text to display.
10: '&cā¤&7ā¤ā¤ā¤ā¤'
30: '&cā¤ā¤&7ā¤ā¤ā¤'
60: '&cā¤ā¤ā¤&7ā¤ā¤'
90: '&cā¤ā¤ā¤ā¤&7ā¤'
100: '&cā¤ā¤ā¤ā¤ā¤'
When a mob's health is at 50%, it's less than or equal to 60, so it will display ā¤ā¤ā¤ā¤ā¤
.
Level Displays
Located in components/level_displays/
, these files are simpler and define a format for showing a mob's level.
Example:
# In components/level_displays/simple_level.yml
# The text that will be used when you call %component_level_display%.
# You can use any placeholder inside!
format: '&e%sunshine_mob_level%'
Last updated