Minecraft: Story Mode has now been discontinued. If you already own a copy, make sure you download it before June 25 before the servers go offline, or else you may not be able to in the future. See here for more details.

Template:Hp/doc

From Minecraft Wiki
Jump to: navigation, search
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information

This template displays health points and visualizes these with the help of a health bar.

For a more compact display, all health point values above 10 (5 hearts) are replaced by Heart.svg × [hp / 2].

Parameter Function Default value
1 Amount of hearts to show. 0
2 Size of hearts. 9px
poisoned Show yellow-green heart icons. 0
withered Show black withered heart icons. 0
absorption Show absorption heart icons. 0
hardcore Show hardcore heart icon variation. 0
mob Show mob heart icons, aligned to the right. 0
notag Remove number and parenthesis. 0
total Total amount of hearts to show, any more than the set amount in {{{1}}} are shown as empty. 20
Code Result
{{hp}} 0 (Empty Heart.svg)
{{hp|0}} 0 (Empty Heart.svg)
{{hp|4}} 4 (Heart.svgHeart.svg)
{{hp|4|total=20}} 4 (Heart.svgHeart.svgEmpty Heart.svgEmpty Heart.svgEmpty Heart.svgEmpty Heart.svgEmpty Heart.svgEmpty Heart.svgEmpty Heart.svgEmpty Heart.svg)
{{hp|7|poisoned=1}} 7 (Poisoned Heart.svgPoisoned Heart.svgPoisoned Heart.svgPoisoned Half Heart.svg)
{{hp|7|withered=1}} 7 (Withered Heart.svgWithered Heart.svgWithered Heart.svgWithered Half Heart.svg)
{{hp|7|absorption=1}} 7 (Absorption Heart.svgAbsorption Heart.svgAbsorption Heart.svgAbsorption Half Heart.svg)
{{hp|7|hardcore=1}} 7 (Hardcore Heart.svgHardcore Heart.svgHardcore Heart.svgHardcore Half Heart.svg)
{{hp|7|hardcore=1|poisoned=1}} 7 (Poisoned Hardcore Heart.svgPoisoned Hardcore Heart.svgPoisoned Hardcore Heart.svgPoisoned Hardcore Half Heart.svg)
{{hp|7|hardcore=1|withered=1}} 7 (Withered Hardcore Heart.svgWithered Hardcore Heart.svgWithered Hardcore Heart.svgWithered Hardcore Half Heart.svg)
{{hp|7|hardcore=1|absorption=1}} 7 (Absorption Hardcore Heart.svgAbsorption Hardcore Heart.svgAbsorption Hardcore Heart.svgAbsorption Hardcore Half Heart.svg)
{{hp|7|mob=1}} 7 (Mob Half Heart.svgMob Heart.svgMob Heart.svgMob Heart.svg)
{{hp|4|18px}} 4 (Heart.svgHeart.svg)
{{hp|20|notag=1}} Heart.svg × 10
{{hp|26|notag=1}} Heart.svg × 13
{{hp|10}} 10 (Heart.svgHeart.svgHeart.svgHeart.svgHeart.svg)
{{hp|12}} 12 (Heart.svg × 6)
{[hp|41}} 41 (Heart.svg × 20.5)