Minecraft Wiki

The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki's logo. Please read this announcement for more information.

READ MORE

Minecraft Wiki
Advertisement
Minecraft Wiki
[view | edit | history | purge]Documentation
Lua logo.png
This template uses Module:Iconbar, a script written in Lua.

This template creates a food point bar.

Parameter Function Default value
|1= Integer hunger 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 food points to be shown. 0
|poisoned= Shows the poisoned hunger bar. 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

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