Hunger

Jump to navigation Jump to search
This article is about the gameplay mechanic. For the effect, see Hunger (effect).
The hunger indicator is shown above the hotbar, to the right of the health bar.

Hunger is a player-specific feature that regulates certain abilities (health regeneration and the ability to sprint), the value of which is managed by the player's activity.

Description[edit | edit source]

The player's hunger value is shown on the heads-up display in the form of a hunger bar (aka food bar), which is similar to the health bar. It is located above the hotbar, opposite to health bar and represented by ten ham shanks (🍗 × 10). One half of a ham shank (🍗) represents one hunger point or half-unit of hunger, thus the full bar consists of twenty hunger points. It is replenished by eating food or having the Saturation effect, and decreased by actions such as sprinting, digging, or attacking.

Various levels of the player's hunger control health regeneration (or depletion) and the ability to sprint. When hunger is at least 18 (🍗🍗🍗🍗🍗🍗🍗🍗🍗🍗), 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 the Effects of hunger section.

The hunger value does not drain on Peaceful difficulty and regenerates if it is not at the maximum value.

An 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. The exact mechanics that control the overall hunger value are described in detail 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 also inflicts Hunger when it attacks a player.

Mechanics[edit | edit source]

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 (🍗 × 10).
  • foodSaturationLevel: The player's current saturation level, which determines how fast foodLevel depletes and is controlled by the kinds of food the player has eaten. Its maximum value always equals foodLevel's value and decreases with foodLevel. Its initial value on world creation or respawn is 5.
  • foodTickTimer: This variable is used when foodLevel either exceeds 17 (🍗🍗🍗🍗🍗🍗🍗🍗🍗🍗), or is at zero. It increases on every 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 (🍗 × 10), 16 of 1HP♥ times the player's foodSaturationLevel is restored, up to a maximum of 1HP♥, when foodTickTimer reaches 10 (12 second), and foodTickTimer is reset to zero.
  • foodExhaustionLevel: The player's current exhaustion level, which determines how fast the foodSaturationLevel 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 a value of at least 4, the total value is decreased by 4 and one point is subtracted from foodSaturationLevel, or foodLevel if foodSaturationLevel is at zero.

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 1 (🍗). 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[edit | edit source]

Various hunger levels lead to various effects on the player:

  • When the hunger bar is at 20 (🍗🍗🍗🍗🍗🍗🍗🍗🍗🍗) and there is any saturation left, health regenerates 1HP♥ every 12 second.‌[JE only]
  • When the hunger bar is at 18 (🍗🍗🍗🍗🍗🍗🍗🍗🍗🍗) or more, health slowly regenerates 1HP♥ every 4 seconds.
  • 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 1HP♥ 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[edit | edit source]

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
Swimming 0.01 per meter
Breaking a block 0.005 per block broken
Sprinting 0.1 per meter
Jumping 0.05 per jump
Attacking an entity 0.1 per attack landed
Taking damage that is normally protected by armor 0.1 per distinct instance of damage being received
Hunger 0.005 per tick, per Hunger status effect level
Jumping while sprinting 0.2 per jump
Regenerating health by having 🍗 × 9 or higher and
having gamerule naturalRegeneration set to true
6.0 per 1HP♥ healed
Hunger from raw chicken or rotten flesh, or taking damage from husks. 3.0 full 0:30 duration of Hunger I, at 0.1 per second
Hunger from pufferfish 4.5 full 0:15 duration of Hunger III, at 0.3 per second
Getting pushed by flowing water - -

Food level and saturation level restoration[edit | edit source]

Main article: Food
Name Icon Food points Saturation Effect(s) Source(s)
Restored Quality
[note 1]
Ratio
Apple Invicon Apple.png: Inventory sprite for Apple in Minecraft as shown in-game linking to Apple with description: Apple 4 (🍗🍗) 2.4 6.4 0.6 None
Baked Potato Invicon Baked Potato.png: Inventory sprite for Baked Potato in Minecraft as shown in-game linking to Baked Potato with description: Baked Potato 5 (🍗🍗🍗) 6 11 1.2 None Cooking a potato in a furnace, smoker, or campfire
Beetroot Invicon Beetroot.png: Inventory sprite for Beetroot in Minecraft as shown in-game linking to Beetroot with description: Beetroot 1 (🍗) 1.2 2.2 1.2 None
  • Harvesting beetroot crops
  • Farmer villager who drop beetroot after harvesting beetroot crop
Beetroot Soup Invicon Beetroot Soup.png: Inventory sprite for Beetroot Soup in Minecraft as shown in-game linking to Beetroot Soup with description: Beetroot Soup 6 (🍗🍗🍗) 7.2 13.2 1.2 None
Bread Invicon Bread.png: Inventory sprite for Bread in Minecraft as shown in-game linking to Bread with description: Bread 5 (🍗🍗🍗) 6 11 1.2 None
Cake (slice) Invicon Cake.png: Inventory sprite for Cake in Minecraft as shown in-game linking to Cake with description: Cake 2 (🍗) 0.4 2.4 0.2 None Consume one slice of cake
Cake (whole) Invicon Cake.png: Inventory sprite for Cake in Minecraft as shown in-game linking to Cake with description: Cake 14 (🍗 × 7) 2.8 16.8 0.2 None
Carrot Invicon Carrot.png: Inventory sprite for Carrot in Minecraft as shown in-game linking to Carrot with description: Carrot 3 (🍗🍗) 3.6 6.6 1.2 None
Chorus Fruit Invicon Chorus Fruit.png: Inventory sprite for Chorus Fruit in Minecraft as shown in-game linking to Chorus Fruit with description: 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 Invicon Cooked Chicken.png: Inventory sprite for Cooked Chicken in Minecraft as shown in-game linking to Cooked Chicken with description: Cooked Chicken 6 (🍗🍗🍗) 7.2 13.2 1.2 None
Cooked Cod Invicon Cooked Cod.png: Inventory sprite for Cooked Cod in Minecraft as shown in-game linking to Cooked Cod with description: Cooked Cod 5 (🍗🍗🍗) 6 11 1.2 None
Cooked Mutton Invicon Cooked Mutton.png: Inventory sprite for Cooked Mutton in Minecraft as shown in-game linking to Cooked Mutton with description: Cooked Mutton 6 (🍗🍗🍗) 9.6 15.6 1.6 None
Cooked Porkchop Invicon Cooked Porkchop.png: Inventory sprite for Cooked Porkchop in Minecraft as shown in-game linking to Cooked Porkchop with description: Cooked Porkchop 8 (🍗🍗🍗🍗) 12.8 20.8 1.6 None
Cooked Rabbit Invicon Cooked Rabbit.png: Inventory sprite for Cooked Rabbit in Minecraft as shown in-game linking to Cooked Rabbit with description: Cooked Rabbit 5 (🍗🍗🍗) 6 11 1.2 None
Cooked Salmon Invicon Cooked Salmon.png: Inventory sprite for Cooked Salmon in Minecraft as shown in-game linking to Cooked Salmon with description: Cooked Salmon 6 (🍗🍗🍗) 9.6 15.6 1.6 None
Cookie Invicon Cookie.png: Inventory sprite for Cookie in Minecraft as shown in-game linking to Cookie with description: Cookie 2 (🍗) 0.4 2.4 0.2 None
Dried Kelp Invicon Dried Kelp.png: Inventory sprite for Dried Kelp in Minecraft as shown in-game linking to Dried Kelp with description: 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 Invicon Enchanted Golden Apple.png: Inventory sprite for Enchanted Golden Apple in Minecraft as shown in-game linking to Enchanted Golden Apple with description: 4 (🍗🍗) 9.6 13.6 2.4 * Regeneration II for 20 seconds‌[Java Edition only]
Golden Apple Invicon Golden Apple.png: Inventory sprite for Golden Apple in Minecraft as shown in-game linking to Golden Apple with description: Golden Apple 4 (🍗🍗) 9.6 13.6 2.4 * Regeneration II for 5 seconds
Glow Berries Invicon Glow Berries.png: Inventory sprite for Glow Berries in Minecraft as shown in-game linking to Glow Berries with description: Glow Berries 2 (🍗) 0.4 2.4 0.2 None
  • Collected from cave vines
Golden Carrot Invicon Golden Carrot.png: Inventory sprite for Golden Carrot in Minecraft as shown in-game linking to Golden Carrot with description: Golden Carrot 6 (🍗🍗🍗) 14.4 20.4 2.4 None
Honey Bottle Invicon Honey Bottle.png: Inventory sprite for Honey Bottle in Minecraft as shown in-game linking to Honey Bottle with description: Honey Bottle 6 (🍗🍗🍗) 1.2 7.2 0.2 Clears Poison
Melon Slice Invicon Melon Slice.png: Inventory sprite for Melon Slice in Minecraft as shown in-game linking to Melon Slice with description: Melon Slice 2 (🍗) 1.2 3.2 0.6 None
Mushroom Stew Invicon Mushroom Stew.png: Inventory sprite for Mushroom Stew in Minecraft as shown in-game linking to Mushroom Stew with description: Mushroom Stew 6 (🍗🍗🍗) 7.2 13.2 1.2 None
Poisonous Potato Invicon Poisonous Potato.png: Inventory sprite for Poisonous Potato in Minecraft as shown in-game linking to Poisonous Potato with description: Poisonous Potato 2 (🍗) 1.2 3.2 0.6 Poison for 5 seconds (60% chance)
Potato Invicon Potato.png: Inventory sprite for Potato in Minecraft as shown in-game linking to Potato with description: Potato 1 (🍗) 0.6 1.6 0.6 None
Pufferfish Invicon Pufferfish.png: Inventory sprite for Pufferfish in Minecraft as shown in-game linking to Pufferfish (item) with description: Pufferfish 1 (🍗) 0.2 1.2 0.2
(−4.8)‌[note 2]
* Hunger III for 15 seconds
Pumpkin Pie Invicon Pumpkin Pie.png: Inventory sprite for Pumpkin Pie in Minecraft as shown in-game linking to Pumpkin Pie with description: Pumpkin Pie 8 (🍗🍗🍗🍗) 4.8 12.8 0.6 None
Rabbit Stew Invicon Rabbit Stew.png: Inventory sprite for Rabbit Stew in Minecraft as shown in-game linking to Rabbit Stew with description: Rabbit Stew 10 (🍗🍗🍗🍗🍗) 12 22 1.2 None
Raw Beef Invicon Raw Beef.png: Inventory sprite for Raw Beef in Minecraft as shown in-game linking to Raw Beef with description: Raw Beef 3 (🍗🍗) 1.8 4.8 0.6 None
Raw Chicken Invicon Raw Chicken.png: Inventory sprite for Raw Chicken in Minecraft as shown in-game linking to Raw Chicken with description: Raw Chicken 2 (🍗) 1.2 3.2 0.6
(-2.075)‌[note 2]
Hunger for 30 seconds (30% chance)
Raw Cod Invicon Raw Cod.png: Inventory sprite for Raw Cod in Minecraft as shown in-game linking to Raw Cod with description: Raw Cod 2 (🍗) 0.4 2.4 0.2 None
Raw Mutton Invicon Raw Mutton.png: Inventory sprite for Raw Mutton in Minecraft as shown in-game linking to Raw Mutton with description: Raw Mutton 2 (🍗) 1.2 3.2 0.6 None
Raw Porkchop Invicon Raw Porkchop.png: Inventory sprite for Raw Porkchop in Minecraft as shown in-game linking to Raw Porkchop with description: Raw Porkchop 3 (🍗🍗) 1.8 4.8 0.6 None
Raw Rabbit Invicon Raw Rabbit.png: Inventory sprite for Raw Rabbit in Minecraft as shown in-game linking to Raw Rabbit with description: Raw Rabbit 3 (🍗🍗) 1.8 4.8 0.6 None
Raw Salmon Invicon Raw Salmon.png: Inventory sprite for Raw Salmon in Minecraft as shown in-game linking to Raw Salmon with description: Raw Salmon 2 (🍗) 0.4 2.4 0.2 None
Rotten Flesh Invicon Rotten Flesh.png: Inventory sprite for Rotten Flesh in Minecraft as shown in-game linking to Rotten Flesh with description: Rotten Flesh 4 (🍗🍗) 0.8 4.8 0.2
(-1.8)‌[note 2]
Hunger for 30 seconds (80% chance)
Spider Eye Invicon Spider Eye.png: Inventory sprite for Spider Eye in Minecraft as shown in-game linking to Spider Eye with description: Spider Eye 2 (🍗) 3.2 5.2 1.6
(-2.2)‌[note 3]
Poison for 5 seconds
Steak Invicon Steak.png: Inventory sprite for Steak in Minecraft as shown in-game linking to Steak with description: Steak 8 (🍗🍗🍗🍗) 12.8 20.8 1.6 None
Suspicious Stew Invicon Suspicious Stew.png: Inventory sprite for Suspicious Stew in Minecraft as shown in-game linking to Suspicious Stew with description: 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) Invicon Suspicious Stew.png: Inventory sprite for Suspicious Stew in Minecraft as shown in-game linking to Suspicious Stew with description: Suspicious Stew 13 (🍗 × 6.5) 21.2 34.2 1.631 Effect of Saturation already added to total points restored
Sweet Berries Invicon Sweet Berries.png: Inventory sprite for Sweet Berries in Minecraft as shown in-game linking to Sweet Berries with description: 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 Invicon Tropical Fish.png: Inventory sprite for Tropical Fish in Minecraft as shown in-game linking to Tropical Fish (item) with description: Tropical Fish 1 (🍗) 0.2 1.2 0.2 None
  1. 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.
  2. 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.
  3. Food quality if poison isn't cured; healing the damage from poison quickly drains the hunger bar.


Food poisoning[edit | edit source]

This section needs expansion.
 
You can help by expanding it.
Main article: Hunger (effect)
An example of how eating rotten flesh can cause the food poisoning.

When the player eats raw chicken, rotten flesh, or pufferfish, they have a chance to briefly get the hunger effect. This is called food poisoning.

This turns hunger bar (🍗 × 10) green, and causes the player to lose 1 point (🍗) of hunger every 4 seconds, for every level, for the duration of the effect. This is stacked with hunger loss from sprinting, jumping, etc.

Achievements[edit | edit source]

IconAchievementIn-game descriptionActual requirements (if different)Gamerscore earnedTrophy type (PS)
PS4Other
Iron BellyStop starvation using Rotten Flesh.Eat a piece of rotten flesh while starving (zero hunger points).20Bronze

Video[edit | edit source]

Note: This video is from Java Edition 1.5, so not all changes were applied.

History[edit | edit source]

Java Edition Beta
July 19, 2011The hunger bar is first seen in an image Notch posted to Twitter that showcases his experimentation with world height.
1.8Pre-releaseHunger was introduced. Food no longer restores health directly, but the player can regenerate if the hunger meter is 90% or over.
Java Edition
1.3.112w18aThe exhausation cost of sprint jumping is now 0.2 from 0.8, meaning that constant sprint jumping is a viable means of fast long-distance travel in most situations.
1.6.113w23aNatural health regeneration now increases the food exhaustion level.
1.7.213w36aThe 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.814w29aHunger now regenerates when depleted if the difficulty is set to Peaceful.
1.915w40aHealth regenerates faster when saturation is non-zero.
Health regeneration increases exhaustion more.
15w44aHealth regenerates speed bonus from non-zero saturation only applies when the hunger bar is at 20.
15w49aSneaking now increases exhaustion by 0.005/m, decreased from 0.01/m.
1.1116w32aExhaustion 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.
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.
Upcoming Java Edition
Combat TestsCombat Test 5Saturation is no longer capped by the hunger level of the player.
Upon eating food, the player's saturation is always set to the food's provided saturation amount unless their current saturation level exceeds what is obtainable from the food.
High saturation no longer gives a fast regeneration boost.
Changed food eating speed from 32 game ticks (1.6 seconds) to 40 game ticks (2 seconds).
The player now naturally regenerates health when above a hunger level of 7 (🍗🍗🍗🍗🍗🍗🍗🍗🍗🍗) instead of 18 (🍗 × 9)
The player now naturally heals every 60 game ticks (3 seconds) instead of every 80 game ticks (4 seconds).
The player now takes damage from starvation every 60 game ticks (3 seconds) instead of every 80 game ticks (4 seconds) when the hunger bar is empty.
Natural healing now always drains food points.
Saturation is not used when healing damage, and is only relevant to other actions that drain the hunger bar.
The player can now sprint at any hunger value.
Combat Test 6Reverted eating speed to 32 ticks (1.6 seconds).
Eating is now interrupted if something hits the player.
The player now naturally heals every 40 game ticks (2 seconds) instead of every 60 game ticks (3 seconds).
The player now takes damage from starvation every 40 game ticks (2 seconds) instead of every 60 game ticks (3 seconds) when the hunger bar is empty.
Natural healing drains food points 50% slower.
Reintroduced the rule that sprinting requires more than 6 points of food.
Pocket Edition Alpha
v0.12.1build 1Hunger was introduced. Food no longer restores health directly, but the player can regenerate if the hunger meter is 90% or over.
Bedrock Edition
1.18.30Preview 1.18.20.26The rate that hunger decreases has been changed to better match Java Edition and can now be changed with behavior packs (add-ons).[2]
Legacy Console Edition
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU5CU11.001.001.00Patch 11.0.1Added the food bar and hunger.
TU43CU331.361.361.36Patch 13Food now regenerates health.
TU54CU441.521.521.52Patch 241.0.4Exhaustion 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.
Exhaustion rate from regeneration is increased from 0.4/half-heart to 0.6/half-heart.

Issues[edit | edit source]

Issues relating to "Hunger" are maintained on the bug tracker. Issues should be reported and viewed there.

References[edit | edit source]

Navigation[edit | edit source]