Feed The Beast Wiki

Follow the Feed The Beast Wiki on Discord or Mastodon!

(sitenotice-read-more)

Feed The Beast Wiki
Advertisement
(printableversion-deprecated-warning)

0 ()

Template-info Documentation

Displays Minecraft HP hearts for the provided amount of health and the provided type. This works inline so it can be used in prose and in infoboxes. {{hp}} is identical to this template.

Parameters

  • 1: The amount of health to fill in. This displays halves, just like in Vanilla Minecraft. For example, 1 is Half Heart and 2 is Heart. If it is greater than 20, it will truncate for the sake of readability, reliability, and performance. For example, 25 is Heart × 12.5. Defaults to 0.
  • plain: Set to not display the numerical armor value and parentheses wrapping. When set, will display empty health bars until it reaches the max.
  • size: The size of the bars to use. Defaults to 9px. Only provide the number; it uses pixels as its unit.
  • max: The total number of bars to show. This is useful when displaying how much health is provided by something in comparison to the total number the player has (20). Defaults to 20. This value must be greater than or equal to the provided value for the first argument. Does not work unless plain is also set.
  • type: The type of health to use. Omit to use normal hearts. Can be any of the following:
    • mob: For use with mobs, like horses when ridden. Displays the hearts backwards like in the game. Example: Mob Half HeartMob Heart
    • poisoned: Displays green poisoned hearts. Example: Poisoned HeartPoisoned Half Heart
    • withered: Displays black withered hearts. Example: Withered HeartWithered Half Heart
    • absorption: Displays yellow absorption hearts. Example: Absorption HeartAbsorption Half Heart
    • hardcore: Displays hardcore hearts. Example: Hardcore HeartHardcore Half Heart

Examples

You type You get
{{Health|1|max=1|size=81|plain=true}} Half Heart
{{Health|15|type=hardcore}} 15 (Hardcore HeartHardcore HeartHardcore HeartHardcore HeartHardcore HeartHardcore HeartHardcore HeartHardcore Half Heart)
{{Health|15|plain=true}} HeartHeartHeartHeartHeartHeartHeartHalf HeartEmpty HeartEmpty HeartEmpty Heart
{{Health|25|type=poisoned}} 25 (Poisoned Heart × 12.5)
{{Health|25|type=poisoned|plain=true}} Poisoned Heart × 12.5
Advertisement