The Gamepedia and Fandom account systems have now been merged. If your username is incorrect, you have accounts on both platforms that weren't merged, or you have trouble signing in, please submit a support ticket.

Join The Fan Lab, a private Fandom research community for users in the US and UK where you will be asked to share your opinions on all things gaming and entertainment! Click here to see if you qualify

Template:Hungerbar

From Minecraft Wiki
Jump to: navigation, search
[view | edit | history | purge]Documentation
Lua logo.svg
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 food point bar.

Parameter Function Default value
1 Integer health value between 0 and 32. 0 = None, 1 = one food point, 2 = two food points etc. 0
2 Width of each icon in CSS units like "px" or "em". 18px
poisoned Shows the poisoned hunger bar 0
total Minimum number of food points to display. 0
Code Result
{{hungerbar}}
{{hungerbar|0|9px}}
{{hungerbar|1}}
{{hungerbar|1|9px|poisoned=1}}
{{hungerbar|2}}
{{hungerbar|2|9px|poisoned=1}}
{{hungerbar|5}}
{{hungerbar|5|poisoned=1}}
{{hungerbar|10}}
{{hungerbar|10|poisoned=1}}
{{hungerbar|5|9px}}
{{hungerbar|5|9px|poisoned=1}}
{{hungerbar|7|45px}}
{{hungerbar|7|45px|poisoned=1}}
{{hungerbar|7|total=20}}
{{hungerbar|7|total=20|poisoned=1}}

See also[edit]

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