7 days to mine minecraft mod Wiki
Advertisement
[view | edit | history | purge]Documentation
Lua logo.svg
This template uses Module:Iconbar, a script written in Lua.

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, etc. 0
2 Width of each icon in pixels. 18
link Page linked when clicking on an icon. None
total Total amount of hearts to be shown. 0
poisoned Shows yellow-green poison hearts. None
withered Shows black withered hearts. None
freezing Shows blue freezing hearts. None
hardcore Shows the hardcore version of the normal/poisoned/withered/absorption hearts. None
mob Shows rideable mob hearts. None
absorption Shows the hearts added by absorption. None
Code Result
{{healthbar}} ♥
{{healthbar|<0>|<9px>}} ♥
{{healthbar|<1>}} ♥
{{healthbar|<2>}} ♥
{{healthbar|<5>}} ♥♥♥
{{healthbar|<5>|<poisoned=1>}} File:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Half Poisoned Heart (icon).png
{{healthbar|<5>|<withered=1>}} File:Withered Heart (icon).pngFile:Withered Heart (icon).pngFile:Half Withered Heart (icon).png
{{healthbar|<5>|<absorption=1>}} File:Absorption Heart (icon).pngFile:Absorption Heart (icon).pngFile:Half Absorption Heart (icon).png
{{healthbar|<5>|<freezing=1>}} File:Freezing Heart (icon).pngFile:Freezing Heart (icon).pngFile:Half Freezing Heart (icon).png
{{healthbar|<5>|<hardcore=1>}} File:Hardcore Heart (icon).pngFile:Hardcore Heart (icon).pngFile:Half Hardcore Heart (icon).png
{{healthbar|<5>|<poisoned=1>|<hardcore=1>}} File:Poisoned Hardcore Heart (icon).pngFile:Poisoned Hardcore Heart (icon).pngFile:Half Poisoned Hardcore Heart (icon).png
{{healthbar|<5>|<withered=1>|<hardcore=1>}} File:Withered Hardcore Heart (icon).pngFile:Withered Hardcore Heart (icon).pngFile:Half Withered Hardcore Heart (icon).png
{{healthbar|<5>|<absorption=1>|<hardcore=1>}} File:Absorption Hardcore Heart (icon).pngFile:Absorption Hardcore Heart (icon).pngFile:Half Absorption Hardcore Heart (icon).png
{{healthbar|<5>|<mob=1>}} File:Half Mob Heart (icon).pngFile:Mob Heart (icon).pngFile:Mob Heart (icon).png
{{healthbar|<5>|<total=10>}} ♥♥♥♥♥
{{healthbar|<5>|<total=10>|<poisoned=1>}} File:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Half Poisoned Heart (icon).png♥♥
{{healthbar|<5>|<total=10>|<withered=1>}} File:Withered Heart (icon).pngFile:Withered Heart (icon).pngFile:Half Withered Heart (icon).png♥♥
{{healthbar|<5>|<total=10>|<absorption=1>}} File:Absorption Heart (icon).pngFile:Absorption Heart (icon).pngFile:Half Absorption Heart (icon).png♥♥
{{healthbar|<5>|<total=10>|<freezing=1>}} File:Freezing Heart (icon).pngFile:Freezing Heart (icon).pngFile:Half Freezing Heart (icon).png♥♥
{{healthbar|<5>|<total=10>|<hardcore=1>}} File:Hardcore Heart (icon).pngFile:Hardcore Heart (icon).pngFile:Half Hardcore Heart (icon).png♥♥
{{healthbar|<5>|<total=10>|<poisoned=1>|<hardcore=1>}} File:Poisoned Hardcore Heart (icon).pngFile:Poisoned Hardcore Heart (icon).pngFile:Half Poisoned Hardcore Heart (icon).png♥♥
{{healthbar|<5>|<total=10>|<withered=1>|<hardcore=1>}} File:Withered Hardcore Heart (icon).pngFile:Withered Hardcore Heart (icon).pngFile:Half Withered Hardcore Heart (icon).png♥♥
{{healthbar|<5>|<total=10>|<absorption=1>|<hardcore=1>}} File:Absorption Hardcore Heart (icon).pngFile:Absorption Hardcore Heart (icon).pngFile:Half Absorption Hardcore Heart (icon).png♥♥
{{healthbar|<5>|<total=10>|<mob=1>}} ♥♥File:Half Mob Heart (icon).pngFile:Mob Heart (icon).pngFile:Mob Heart (icon).png
{{healthbar|<20>}} ♥♥♥♥♥♥♥♥♥♥
{{healthbar|<20>|<poisoned=1>}} File:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).png
{{healthbar|<11>|<9px>}} ♥♥♥♥♥♥
{{healthbar|<11>|<9px>|<poisoned=1>}} File:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Half Poisoned Heart (icon).png
{{healthbar|<11>|<9px>|<withered=1>}} File:Withered Heart (icon).pngFile:Withered Heart (icon).pngFile:Withered Heart (icon).pngFile:Withered Heart (icon).pngFile:Withered Heart (icon).pngFile:Half Withered Heart (icon).png
{{healthbar|<11>|<9px>|<absorption=1>}} File:Absorption Heart (icon).pngFile:Absorption Heart (icon).pngFile:Absorption Heart (icon).pngFile:Absorption Heart (icon).pngFile:Absorption Heart (icon).pngFile:Half Absorption Heart (icon).png
{{healthbar|<11>|<9px>|<freezing=1>}} File:Freezing Heart (icon).pngFile:Freezing Heart (icon).pngFile:Freezing Heart (icon).pngFile:Freezing Heart (icon).pngFile:Freezing Heart (icon).pngFile:Half Freezing Heart (icon).png
{{healthbar|<11>|<9px>|<hardcore=1>}} File:Hardcore Heart (icon).pngFile:Hardcore Heart (icon).pngFile:Hardcore Heart (icon).pngFile:Hardcore Heart (icon).pngFile:Hardcore Heart (icon).pngFile:Half Hardcore Heart (icon).png
{{healthbar|<11>|<9px>|<poisoned=1>|<hardcore=1>}} File:Poisoned Hardcore Heart (icon).pngFile:Poisoned Hardcore Heart (icon).pngFile:Poisoned Hardcore Heart (icon).pngFile:Poisoned Hardcore Heart (icon).pngFile:Poisoned Hardcore Heart (icon).pngFile:Half Poisoned Hardcore Heart (icon).png
{{healthbar|<11>|<9px>|<withered=1>|<hardcore=1>}} File:Withered Hardcore Heart (icon).pngFile:Withered Hardcore Heart (icon).pngFile:Withered Hardcore Heart (icon).pngFile:Withered Hardcore Heart (icon).pngFile:Withered Hardcore Heart (icon).pngFile:Half Withered Hardcore Heart (icon).png
{{healthbar|<11>|<9px>|<absorption=1>|<hardcore=1>}} File:Absorption Hardcore Heart (icon).pngFile:Absorption Hardcore Heart (icon).pngFile:Absorption Hardcore Heart (icon).pngFile:Absorption Hardcore Heart (icon).pngFile:Absorption Hardcore Heart (icon).pngFile:Half Absorption Hardcore Heart (icon).png
{{healthbar|<11>|<9px>|<mob=1>}} File:Half Mob Heart (icon).pngFile:Mob Heart (icon).pngFile:Mob Heart (icon).pngFile:Mob Heart (icon).pngFile:Mob Heart (icon).pngFile:Mob Heart (icon).png
{{healthbar|<7>|<45px>}} ♥♥♥♥
{{healthbar|<7>|<45px>|<poisoned=1>}} File:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Poisoned Heart (icon).pngFile:Half Poisoned Heart (icon).png
{{healthbar|<7>|<45px>|<withered=1>}} File:Withered Heart (icon).pngFile:Withered Heart (icon).pngFile:Withered Heart (icon).pngFile:Half Withered Heart (icon).png
{{healthbar|<7>|<45px>|<absorption=1>}} File:Absorption Heart (icon).pngFile:Absorption Heart (icon).pngFile:Absorption Heart (icon).pngFile:Half Absorption Heart (icon).png
{{healthbar|<7>|<45px>|<freezing=1>}} File:Freezing Heart (icon).pngFile:Freezing Heart (icon).pngFile:Freezing Heart (icon).pngFile:Half Freezing Heart (icon).png
{{healthbar|<7>|<45px>|<hardcore=1>}} File:Hardcore Heart (icon).pngFile:Hardcore Heart (icon).pngFile:Hardcore Heart (icon).pngFile:Half Hardcore Heart (icon).png
{{healthbar|<7>|<45px>|<poisoned=1>|<hardcore=1>}} File:Poisoned Hardcore Heart (icon).pngFile:Poisoned Hardcore Heart (icon).pngFile:Poisoned Hardcore Heart (icon).pngFile:Half Poisoned Hardcore Heart (icon).png
{{healthbar|<7>|<45px>|<withered=1>|<hardcore=1>}} File:Withered Hardcore Heart (icon).pngFile:Withered Hardcore Heart (icon).pngFile:Withered Hardcore Heart (icon).pngFile:Half Withered Hardcore Heart (icon).png
{{healthbar|<7>|<45px>|<absorption=1>|<hardcore=1>}} File:Absorption Hardcore Heart (icon).pngFile:Absorption Hardcore Heart (icon).pngFile:Absorption Hardcore Heart (icon).pngFile:Half Absorption Hardcore Heart (icon).png
{{healthbar|<7>|<45px>|<mob=1>}} File:Half Mob Heart (icon).pngFile:Mob Heart (icon).pngFile:Mob Heart (icon).pngFile:Mob Heart (icon).png

See also

Template:Iconbar see also

de:Vorlage:Lebensleiste fr:Modèle:Cœurs ko:틀:Healthbar pt:Predefinição:Barra de vida ru:Шаблон:Healthbar zh:Template:Healthbar

[view | edit | history | purge]The above documentation is transcluded from Template:Healthbar/doc.


Advertisement