Hunger: Difference between revisions
(Undo revision 2141169 by 179.214.7.188 (talk)) Tag: Undo |
(how much food did walking previously consume per meater? talk page estimate is "3 minutes of walking" depleted it, compared to "12 seconds of sprinting") Tags: Reverted 2017 source edit |
||
Line 47: | Line 47: | ||
! Exhaustion<br>level increase |
! Exhaustion<br>level increase |
||
! Units |
! Units |
||
|- |
|||
| <s>Walking<s> |
|||
| style="text-align: right;" | <center>0.00</center> |
|||
| per meter (previously rate unknown) |
|||
|- |
|- |
||
| Swimming |
| Swimming |
||
Line 62: | Line 66: | ||
| Jumping |
| Jumping |
||
| style="text-align: right;" | <center>0.05</center> |
| style="text-align: right;" | <center>0.05</center> |
||
| per jump |
| per jump (previously 0.2) |
||
|- |
|- |
||
| Attacking an [[enemy]] |
| Attacking an [[enemy]] |
||
Line 78: | Line 82: | ||
| Jumping while sprinting |
| Jumping while sprinting |
||
| style="text-align: right;" | <center>0.2</center> |
| style="text-align: right;" | <center>0.2</center> |
||
| per jump |
| per jump (previously 0.8) |
||
|- |
|- |
||
| Regenerating health by having {{hunger|18|notag=1}} or higher and<br>having [[gamerule]] <code>naturalRegeneration</code> set to <code>true</code> |
| Regenerating health by having {{hunger|18|notag=1}} or higher and<br>having [[gamerule]] <code>naturalRegeneration</code> set to <code>true</code> |
Revision as of 22:53, 12 July 2022

Hunger is a player-specific feature of Minecraft that regulates player's certain abilities (health regeneration and the ability to sprint) the value of which is managed by the player's activity.
Description
The player's hunger value is shown on the heads-up display in the form of a hunger bar (or food bar), which is similar to the health bar (located above the hotbar), located opposite to it and represented by ten drumsticks (). One half of a drumstick ( × 10) represents one hunger point or half-unit of hunger, thus the full bar consists of twenty hunger points. It is replenished by eating food, and decreased by player's actions such as sprinting, digging or attacking.
Various levels of player's hunger control health regeneration (or depletion) and the ability to sprint. When hunger is at 18 (Effects of hunger section. The hunger value does not drain on Peaceful difficulty and regenerates if it is not at the maximum value.
), the player's health regenerates. If it falls to 6 ( ), the player loses the ability to sprint. If the hunger bar is at zero, the player's health depletes. The specific effects are described in theAn important aspect of hunger not shown on the hunger bar is called food saturation and controls the decreasing of the hunger value. It depends on what the player has eaten last. There is also a food exhaustion value that controls the decreasing of the food saturation level. How exactly they control the overall hunger value is described in more depth in the Mechanics section.
Certain foods have a chance of inflicting the Hunger effect on the player upon consumption, causing the player's food bar to deplete faster and turn a yellow-green color ( ). These foods are pufferfish, raw chicken (30% chance), and rotten flesh (80% chance). A husk can also give the player hunger upon being attacked by one.
Mechanics
The hunger system utilizes four variables to control players' abilities, the values of which are stored in the player.dat format:
- foodLevel: The player's current hunger level, shown on the hunger bar. Its initial value on world creation or respawn is 20 (full bar).
- foodSaturationLevel: The player's current saturation level, which determines how fast the hunger level depletes and is controlled by the kinds of food the player has eaten. Its maximum value always equals foodLevel's value and decreases with the hunger level. Its initial value on world creation or respawn is 5.
- foodTickTimer: This variable is used when the hunger value either exceeds 17 (tick, and whenever it reaches 80 (4 seconds), it resets to zero and 1HP is added or deducted, depending on whether the player is saturated or starving. If the player has a full 20 (, 1⁄6 of 1 × 10)HP times the player's saturation level is restored, up to a maximum of 1HP, when foodTickTimer reaches 10 (1⁄2 second), and foodTickTimer is reset to zero. ), or is at zero. It increases on every
- foodExhaustionLevel: The player's current exhaustion level, which determines how fast the saturation level depletes. Its value is increased by the player's actions (see Exhaustion level increase for specific values). The initial value is zero. When it reaches the maximum value of 4, it resets to zero and one point is subtracted from foodSaturationLevel.
The above variables can be queried in-game with the following command: /data get entity <player's name> <variable>
[Java Edition only].
As a visible sign that the saturation is used up, the hunger bar starts to shake or jitter periodically. When the saturation level is at zero, once the exhaustion value reaches 4, the total hunger value is decreased by one hunger point. Eating food replenishes both hunger and saturation levels (see Food level and saturation level restoration for specific values), with the hunger level being replenished first, which also increases the maximum allowed saturation level. For example, if a golden carrot (giving 6 ( and 14.4 saturation points) is eaten by a player whose hunger bar is at )9 ( and saturation is below 1, its value increases to 15 ( ) ), and the golden carrot's saturation potential is fully used. However, if the hunger level is 8 (, its value increases to 14 ( ) ) and only 14 saturation points are used.
Effects of hunger
Various hunger levels lead to various effects on the player:
- When the hunger bar is at 20 (HP every 1⁄2 second.[Java Edition only] ) and there is any saturation left, health regenerates 1
- When the hunger bar is at 18 (HP every 4 seconds.
- When the player is damaged with 18 ( or more, health regenerates 2 × 9)HP for one time.[Bedrock Edition only]
) or more, health slowly regenerates 1 - When the hunger bar is at 17 ( ) points or below, the player does not naturally regenerate health.
- If the hunger bar is at 6 ( points or below, then the player cannot sprint. )
- When the hunger bar is at 0 (, the player's health depletes at a rate of 1 )HP every 4 seconds (this makes sleeping impossible). On Easy difficulty, the player's health stops dropping at 10HP, on Normal, it stops at 1HP, and on Hard, it keeps draining until either the player eats something or starves to death. Resistance and armor do not reduce starvation damage.[1]
Switching to Peaceful difficulty eliminates all penalties above, and rapidly restores the player's hunger bar and health.
Exhaustion level increase
Any action not listed here does not increase exhaustion level. For example, normal walking doesn't increase exhaustion, and therefore does not decrease saturation or the food bar.
Action | Exhaustion level increase |
Units |
---|---|---|
per meter (previously rate unknown) | ||
Swimming | per meter | |
Breaking a block | per block broken | |
Sprinting | per meter | |
Jumping | per jump (previously 0.2) | |
Attacking an enemy | per attack landed | |
Taking damage that is normally protected by armor | per distinct instance of damage being received | |
![]() |
per tick, per Hunger status effect level | |
Jumping while sprinting | per jump (previously 0.8) | |
Regenerating health by having or higher and × 9 having gamerule naturalRegeneration set to true
|
per 1HP healed | |
![]() |
full 0:30 duration of Hunger I, at 0.1 per second | |
![]() |
full 0:15 duration of Hunger III, at 0.3 per second |
Food level and saturation level restoration
Name | Icon | Food points | Saturation | Effect(s) | [hide]Source(s) | ||
---|---|---|---|---|---|---|---|
Restored | Quality [note 1] |
Ratio | |||||
Apple | ![]() |
4 ( ) | 2.4 | 6.4 | 0.6 | None | |
Baked Potato | ![]() |
5 ( ) | 6 | 11 | 1.2 | None | Cooking a potato in a furnace, smoker, or campfire |
Beetroot | ![]() |
1 ( ) | 1.2 | 2.2 | 1.2 | None |
|
Beetroot Soup | ![]() |
6 ( ) | 7.2 | 13.2 | 1.2 | None | |
Bread | ![]() |
5 ( ) | 6 | 11 | 1.2 | None |
|
Cake (slice) | ![]() |
2 ( ) | 0.4 | 2.4 | 0.2 | None | Consume one slice of cake |
Cake (whole) | ![]() |
14 ( × 7) | 2.8 | 16.8 | 0.2 | None |
|
Carrot | ![]() |
3 ( ) | 3.6 | 6.6 | 1.2 | None |
|
Chorus Fruit | ![]() |
4 ( ) | 2.4 | 6.4 | 0.6 | The player may be teleported randomly, as described at Enderman § Teleportation. | Breaking chorus plants. Found in The End. |
Cooked Chicken | ![]() |
6 ( ) | 7.2 | 13.2 | 1.2 | None |
|
Cooked Cod | ![]() |
5 ( ) | 6 | 11 | 1.2 | None |
|
Cooked Mutton | ![]() |
6 ( ) | 9.6 | 15.6 | 1.6 | None |
|
Cooked Porkchop | ![]() |
8 ( ) | 12.8 | 20.8 | 1.6 | None |
|
Cooked Rabbit | ![]() |
5 ( ) | 6 | 11 | 1.2 | None |
|
Cooked Salmon | ![]() |
6 ( ) | 9.6 | 15.6 | 1.6 | None |
|
Cookie | ![]() |
2 ( ) | 0.4 | 2.4 | 0.2 | None | |
Dried Kelp | ![]() |
1 ( ) | 0.6[JE only] 0.2[BE only] |
1.6[JE only] 1.2[BE only] |
0.6[JE only] 0.2[BE only] |
None |
|
Enchanted Golden Apple | ![]() |
4 ( ) | 9.6 | 13.6 | 2.4 | * ![]()
|
|
Golden Apple | ![]() |
4 ( ) | 9.6 | 13.6 | 2.4 | * ![]()
|
|
Glow Berries | ![]() |
2 ( ) | 0.4 | 2.4 | 0.2 | None |
|
Golden Carrot | ![]() |
6 ( ) | 14.4 | 20.4 | 2.4 | None | |
Honey Bottle | ![]() |
6 ( ) | 1.2 | 7.2 | 0.2 | Clears ![]() |
|
Melon Slice | ![]() |
2 ( ) | 1.2 | 3.2 | 0.6 | None |
|
Mushroom Stew | ![]() |
6 ( ) | 7.2 | 13.2 | 1.2 | None | |
Poisonous Potato | ![]() |
2 ( ) | 1.2 | 3.2 | 0.6 | ![]() |
|
Potato | ![]() |
1 ( ) | 0.6 | 1.6 | 0.6 | None |
|
Pufferfish | ![]() |
1 ( ) | 0.2 | 1.2 | 0.2 (−4.8)[note 2] |
* ![]() |
|
Pumpkin Pie | ![]() |
8 ( ) | 4.8 | 12.8 | 0.6 | None | |
Rabbit Stew | ![]() |
10 ( ) | 12 | 22 | 1.2 | None |
|
Raw Beef | ![]() |
3 ( ) | 1.8 | 4.8 | 0.6 | None |
|
Raw Chicken | ![]() |
2 ( ) | 1.2 | 3.2 | 0.6 (-2.075)[note 2] |
![]() |
|
Raw Cod | ![]() |
2 ( ) | 0.4 | 2.4 | 0.2 | None |
|
Raw Mutton | ![]() |
2 ( ) | 1.2 | 3.2 | 0.6 | None | |
Raw Porkchop | ![]() |
3 ( ) | 1.8 | 4.8 | 0.6 | None | |
Raw Rabbit | ![]() |
3 ( ) | 1.8 | 4.8 | 0.6 | None |
|
Raw Salmon | ![]() |
2 ( ) | 0.4 | 2.4 | 0.2 | None |
|
Rotten Flesh | ![]() |
4 ( ) | 0.8 | 4.8 | 0.2 (-1.8)[note 2] |
![]() |
|
Spider Eye | ![]() |
2 ( ) | 3.2 | 5.2 | 1.6 (-2.2)[note 3] |
![]() |
|
Steak | ![]() |
8 ( ) | 12.8 | 20.8 | 1.6 | None |
|
Suspicious Stew | ![]() |
6 ( ) | 7.2 | 13.2 | 1.2 | The following for 3-11 seconds, depending on the flower used: |
|
Suspicious Stew (Together with Saturation) | ![]() |
13 ( × 6.5) | 21.2 | 34.2 | 1.631 | Effect of ![]() |
|
Sweet Berries | ![]() |
2 ( ) | 0.4[JE only] 1.2[BE only] |
2.4[JE only] 3.2[BE only] |
0.2[JE only] 0.6[BE only] |
None |
|
Tropical Fish | ![]() |
1 ( ) | 0.2 | 1.2 | 0.2 | None |
|
- ↑ Food Points + Saturation, which gives roughly how long the food can last. See hunger for details. This value is reduced if the player is near the food or saturation cap, as excess points of either type are wasted.
- ↑ Jump up to: a b c Average expected food quality if food poisoning isn't cured. Food poisoning lasts 30 seconds from the last food that inflicted it, and drains nearly 2 shanks of hunger over that duration. The loss comes from saturation before visible hunger.
- ↑ Food quality if poison isn't cured; healing the damage from poison quickly drains the hunger bar.
Food poisoning
Achievements
[hide] | |||||||
---|---|---|---|---|---|---|---|
Icon | Achievement | In-game description | Actual requirements (if different) | Gamerscore earned | Trophy type (PS) | ||
PS4 | Other | ||||||
![]() | ![]() | Iron Belly | Stop starvation using Rotten Flesh. | Eat a piece of rotten flesh while starving (zero hunger points). | 20 | Bronze |
Video
History

[hide]Java Edition Beta | |||||||
---|---|---|---|---|---|---|---|
July 19, 2011 | The hunger bar is first seen in an image Notch posted to Twitter that showcases his experimentation with world height.
{"type": "java Beta", "version": "July 19, 2011", "exp": "", "snap": "", "content": "The hunger bar is first seen in an image Notch posted to Twitter that showcases his experimentation with world height."} | ||||||
1.8 | Hunger was introduced. Food no longer restores health directly, but the player can regenerate if the hunger meter is 90% or over.
{"type": "java Beta", "version": "1.8", "exp": "", "snap": "", "content": "Hunger was introduced. Food no longer restores health directly, but the player can regenerate if the hunger meter is 90% or over."} | ||||||
[hide]Java Edition | |||||||
1.6.1 | Natural health regeneration now increases the food exhaustion level.
{"type": "java", "version": "1.6.1", "exp": "", "snap": "", "content": "Natural health regeneration now increases the food exhaustion level."} | ||||||
1.7.2 | The exhaustion cost of sprint jumping is now 0.8 (up from 0.2), meaning that constant sprint jumping is no longer viable as a means of fast long-distance travel in most situations.
{"type": "java", "version": "1.7.2", "exp": "", "snap": "", "content": "The exhaustion cost of sprint jumping is now 0.8 (up from 0.2), meaning that constant sprint jumping is no longer viable as a means of fast long-distance travel in most situations."} | ||||||
1.8 | Hunger now regenerates when depleted if the difficulty is set to Peaceful.
{"type": "java", "version": "1.8", "exp": "", "snap": "", "content": "Hunger now regenerates when depleted if the (link to difficulty article, displayed as difficulty) is set to Peaceful."} | ||||||
1.9 | Health regenerates faster when saturation is non-zero.
{"type": "java", "version": "1.9", "exp": "", "snap": "", "content": "Health regenerates faster when saturation is non-zero."} | ||||||
Health regeneration increases exhaustion more.
{"type": "java", "version": "1.9", "exp": "", "snap": "", "content": "Health regeneration increases exhaustion more."} | |||||||
Lua error in Module:Version_link at line 117: attempt to concatenate local 'text' (a nil value). | Health regenerates speed bonus from non-zero saturation only applies when the hunger bar is at 20.
{"type": "java", "version": "", "exp": "", "snap": "", "content": "Health regenerates speed bonus from non-zero saturation only applies when the hunger bar is at 20."} | ||||||
Lua error in Module:Version_link at line 117: attempt to concatenate local 'text' (a nil value). | Sneaking now increases exhaustion by 0.005/m, decreased from 0.01/m.
{"type": "java", "version": "", "exp": "", "snap": "", "content": "Sneaking now increases exhaustion by 0.005/m, decreased from 0.01/m."} | ||||||
1.11 | Exhaustion rates decreased across the board: Swimming decreased from 0.015/m to 0.01/m, breaking blocks decreased from 0.025/block to 0.005/block, jumping decreased from 0.2/jump to 0.05/jump, sprint jumping decreased from 0.8/jump to 0.2/jump, attacking and taking damage both decreased from 0.3/attack to 0.1/attack, Hunger status effect decreased from 0.5/s to 0.1/s.
{"type": "java", "version": "1.11", "exp": "", "snap": "", "content": "Exhaustion rates decreased across the board: Swimming decreased from 0.015/m to 0.01/m, breaking blocks decreased from 0.025/block to 0.005/block, jumping decreased from 0.2/jump to 0.05/jump, sprint jumping decreased from 0.8/jump to 0.2/jump, attacking and taking damage both decreased from 0.3/attack to 0.1/attack, Hunger status effect decreased from 0.5/s to 0.1/s."} | ||||||
Sneaking and walking no longer affect exhaustion.
{"type": "java", "version": "1.11", "exp": "", "snap": "", "content": "Sneaking and walking no longer affect exhaustion."} | |||||||
Exhaustion rate from regeneration is increased from 4.0/half-heart to 6.0/half-heart.
{"type": "java", "version": "1.11", "exp": "", "snap": "", "content": "Exhaustion rate from regeneration is increased from 4.0/half-heart to 6.0/half-heart."} | |||||||
The hunger bar is now visible when riding a boat or a minecart.
{"type": "java", "version": "1.11", "exp": "", "snap": "", "content": "The hunger bar is now visible when riding a (link to boat article, displayed as boat) or a (link to minecart article, displayed as minecart)."} | |||||||
[hide]Pocket Edition Alpha | |||||||
v0.12.1 | Hunger was introduced. Food no longer restores health directly, but the player can regenerate if the hunger meter is 90% or over.
{"type": "pocket Alpha", "version": "v0.12.1", "exp": "", "snap": "", "content": "Hunger was introduced. Food no longer restores health directly, but the player can regenerate if the hunger meter is 90% or over."} | ||||||
[hide]Bedrock Edition | |||||||
1.18.30 | The rate that hunger decreases has been changed to better match Java Edition and can now be changed with behavior packs (add-ons).[2]
{"type": "bedrock", "version": "1.18.30", "exp": "", "snap": "", "content": "The rate that hunger decreases has been changed to better match ''(link to Java Edition article, displayed as Java Edition)'' and can now be changed with behavior packs ((link to add-on article, displayed as add-ons))."} | ||||||
[hide]Legacy Console Edition | |||||||
Xbox 360 | Xbox One | PS3 | PS4 | PS Vita | Wii U | Switch | |
TU5 | CU1 | Patch 1 | 1.0.1 | Added the food bar and hunger.
{"type": "console", "xbox": "TU5", "xbone": "CU1", "ps3": "", "ps4": "", "psvita": "", "wiiu": "Patch 1", "switch": "1.0.1", "content": "Added the food bar and hunger."} | |||
TU43 | CU33 | Patch 13 | Food now regenerates health.
{"type": "console", "xbox": "TU43", "xbone": "CU33", "ps3": "", "ps4": "", "psvita": "", "wiiu": "Patch 13", "switch": "", "content": "Food now regenerates health."} | ||||
TU54 | CU44 | Patch 24 | 1.0.4 | Exhaustion rates decreased across the board: Swimming decreased from 0.015/m to 0.01/m, breaking blocks decreased from 0.025/block to 0.005/block, jumping decreased from 0.2/jump to 0.05/jump, sprint jumping decreased from 0.8/jump to 0.2/jump, attacking and taking damage both decreased from 0.3/attack to 0.1/attack, Hunger status effect decreased from 0.5/s to 0.1/s.
{"type": "console", "xbox": "TU54", "xbone": "CU44", "ps3": "", "ps4": "", "psvita": "", "wiiu": "Patch 24", "switch": "1.0.4", "content": "Exhaustion rates decreased across the board: Swimming decreased from 0.015/m to 0.01/m, breaking blocks decreased from 0.025/block to 0.005/block, jumping decreased from 0.2/jump to 0.05/jump, sprint jumping decreased from 0.8/jump to 0.2/jump, attacking and taking damage both decreased from 0.3/attack to 0.1/attack, Hunger status effect decreased from 0.5/s to 0.1/s."} | |||
Sneaking and walking no longer affect exhaustion.
{"type": "console", "xbox": "TU54", "xbone": "CU44", "ps3": "", "ps4": "", "psvita": "", "wiiu": "Patch 24", "switch": "1.0.4", "content": "Sneaking and walking no longer affect exhaustion."} | |||||||
Exhaustion rate from regeneration is increased from 0.4/half-heart to 0.6/half-heart.
{"type": "console", "version": "Exhaustion rates decreased across the board: Swimming decreased from 0.015/m to 0.01/m, breaking blocks decreased from 0.025/block to 0.005/block, jumping decreased from 0.2/jump to 0.05/jump, sprint jumping decreased from 0.8/jump to 0.2/jump, attacking and taking damage both decreased from 0.3/attack to 0.1/attack, Hunger status effect decreased from 0.5/s to 0.1/s.", "exp": "", "snap": "", "content": "Exhaustion rate from regeneration is increased from 0.4/half-heart to 0.6/half-heart."} |
Issues
Issues relating to "Hunger" are maintained on the bug tracker. Issues should be reported and viewed there.
References
[hide] | |
---|---|
General mechanics | |
Survival |
|
Combat | |
Environment | |
Movement | |
User interface | |
Visuals | |
Outdated | ![]() |