Minecraft Wiki
Register
Advertisement
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information
Lua logo
This template uses Module:Iconbar, a script written in Lua.
Please see wp:Lua and mw:Extension:Scribunto to learn more.

This template creates a health bar.

Parameter Function Default value
1 Integer health value between 0 and 32. Empty heart = 0, half heart = 1, full heart = 2, see examples below. 0
2 Width of each icon. 18px
total Total amount of hearts to be shown 0
poisoned Shows yellow-green poison hearts. 0
withered Shows black withered hearts. 0
hardcore Shows the hardcore version of the normal/poisoned/withered/absorption hearts. 0
mob Shows rideable mob hearts. 0
absorption Shows the hearts added by absorption. 0
Code Result
{{healthbar}} Empty Heart
{{healthbar|0|9px}} Empty Heart
{{healthbar|1}} Half Heart
{{healthbar|2}} Heart
{{healthbar|5}} HeartHeartHalf Heart
{{healthbar|5|poisoned=1}} Poisoned HeartPoisoned HeartPoisoned Half Heart
{{healthbar|5|withered=1}} Withered HeartWithered HeartWithered Half Heart
{{healthbar|5|absorption=1}} Absorption HeartAbsorption HeartAbsorption Half Heart
{{healthbar|5|hardcore=1}} Hardcore HeartHardcore HeartHardcore Half Heart
{{healthbar|5|poisoned=1|hardcore=1}} Poisoned Hardcore HeartPoisoned Hardcore HeartPoisoned Hardcore Half Heart
{{healthbar|5|withered=1|hardcore=1}} Withered Hardcore HeartWithered Hardcore HeartWithered Hardcore Half Heart
{{healthbar|5|absorption=1|hardcore=1}} Absorption Hardcore HeartAbsorption Hardcore HeartAbsorption Hardcore Half Heart
{{healthbar|5|mob=1}} Mob Half HeartMob HeartMob Heart
{{healthbar|5|total=10}} HeartHeartHalf HeartEmpty HeartEmpty Heart
{{healthbar|5|total=10|poisoned=1}} Poisoned HeartPoisoned HeartPoisoned Half HeartEmpty HeartEmpty Heart
{{healthbar|5|total=10|withered=1}} Withered HeartWithered HeartWithered Half HeartEmpty HeartEmpty Heart
{{healthbar|5|total=10|absorption=1}} Absorption HeartAbsorption HeartAbsorption Half HeartEmpty HeartEmpty Heart
{{healthbar|5|total=10|hardcore=1}} Hardcore HeartHardcore HeartHardcore Half HeartEmpty HeartEmpty Heart
{{healthbar|5|total=10|poisoned=1|hardcore=1}} Poisoned Hardcore HeartPoisoned Hardcore HeartPoisoned Hardcore Half HeartEmpty HeartEmpty Heart
{{healthbar|5|total=10|withered=1|hardcore=1}} Withered Hardcore HeartWithered Hardcore HeartWithered Hardcore Half HeartEmpty HeartEmpty Heart
{{healthbar|5|total=10|absorption=1|hardcore=1}} Absorption Hardcore HeartAbsorption Hardcore HeartAbsorption Hardcore Half HeartEmpty HeartEmpty Heart
{{healthbar|5|total=10|mob=1}} Empty HeartEmpty HeartMob Half HeartMob HeartMob Heart
{{healthbar|20}} HeartHeartHeartHeartHeartHeartHeartHeartHeartHeart
{{healthbar|20|poisoned=1}} Poisoned HeartPoisoned HeartPoisoned HeartPoisoned HeartPoisoned HeartPoisoned HeartPoisoned HeartPoisoned HeartPoisoned HeartPoisoned Heart
{{healthbar|11|9px}} HeartHeartHeartHeartHeartHalf Heart
{{healthbar|11|9px|poisoned=1}} Poisoned HeartPoisoned HeartPoisoned HeartPoisoned HeartPoisoned HeartPoisoned Half Heart
{{healthbar|11|9px|withered=1}} Withered HeartWithered HeartWithered HeartWithered HeartWithered HeartWithered Half Heart
{{healthbar|11|9px|absorption=1}} Absorption HeartAbsorption HeartAbsorption HeartAbsorption HeartAbsorption HeartAbsorption Half Heart
{{healthbar|11|9px|hardcore=1}} Hardcore HeartHardcore HeartHardcore HeartHardcore HeartHardcore HeartHardcore Half Heart
{{healthbar|11|9px|poisoned=1|hardcore=1}} Poisoned Hardcore HeartPoisoned Hardcore HeartPoisoned Hardcore HeartPoisoned Hardcore HeartPoisoned Hardcore HeartPoisoned Hardcore Half Heart
{{healthbar|11|9px|withered=1|hardcore=1}} Withered Hardcore HeartWithered Hardcore HeartWithered Hardcore HeartWithered Hardcore HeartWithered Hardcore HeartWithered Hardcore Half Heart
{{healthbar|11|9px|absorption=1|hardcore=1}} Absorption Hardcore HeartAbsorption Hardcore HeartAbsorption Hardcore HeartAbsorption Hardcore HeartAbsorption Hardcore HeartAbsorption Hardcore Half Heart
{{healthbar|11|9px|mob=1}} Mob Half HeartMob HeartMob HeartMob HeartMob HeartMob Heart
{{healthbar|7|45px}} HeartHeartHeartHalf Heart
{{healthbar|7|45px|poisoned=1}} Poisoned HeartPoisoned HeartPoisoned HeartPoisoned Half Heart
{{healthbar|7|45px|withered=1}} Withered HeartWithered HeartWithered HeartWithered Half Heart
{{healthbar|7|45px|absorption=1}} Absorption HeartAbsorption HeartAbsorption HeartAbsorption Half Heart
{{healthbar|7|45px|hardcore=1}} Hardcore HeartHardcore HeartHardcore HeartHardcore Half Heart
{{healthbar|7|45px|poisoned=1|hardcore=1}} Poisoned Hardcore HeartPoisoned Hardcore HeartPoisoned Hardcore HeartPoisoned Hardcore Half Heart
{{healthbar|7|45px|withered=1|hardcore=1}} Withered Hardcore HeartWithered Hardcore HeartWithered Hardcore HeartWithered Hardcore Half Heart
{{healthbar|7|45px|absorption=1|hardcore=1}} Absorption Hardcore HeartAbsorption Hardcore HeartAbsorption Hardcore HeartAbsorption Hardcore Half Heart
{{healthbar|7|45px|mob=1}} Mob Half HeartMob HeartMob HeartMob Heart

See also

Advertisement