Minecraft Wiki
Advertisement
Dark Oak Sapling
This article is a stub. 
You can help by expanding it.
Hunger

The Food Bar is seen on the right, opposite the Health Bar.

Hunger is a new aspect of the game added in the Adventure Update, which governs several aspects of gameplay. Eating food, instead of directly restoring the player's Health, now fills up the Food Bar, which is constantly draining very, very slowly.

While the player is sprinting, the Food Bar will deplete much faster,[1] and they will be unable to sprint at all once the bar falls to 30% or less.

The Food Bar does not drain when playing on Peaceful mode, but its effects on your character's health bar remain.

When you eat Rotten Flesh, there is a ~75% possibility that your Food Bar gets poisoned and depletes faster. There is also a fairly high chance of your food bar poisoning every time you eat Raw Chicken.

Effects

  • When the hunger bar is at 90% or higher, your health will slowly regenerate, at a rate of half a heart approximately every 3 seconds. [2]
  • When the hunger bar is below 30%, you will not be able to sprint
  • When the hunger bar is at 0%, your health will deplete at the same rate it would regenerate when at or above 90%. On Easy difficulty, the player's health stops dropping at 5 hearts, Normal stops at 1/2 a heart, and on Hard it keeps draining until you die. [3].

Contrary to popular belief, having a full Food Bar does not keep your health bar from completely depleting when taking damage from external sources.

Food poisoning

File:Foodbarpoisoned.png

The food bar as it appears when one is poisoned.

Food poisoning is an effect induced by eating either raw chicken or rotten flesh, which turns the hunger bar green and slowly drains food. Rotten flesh has a high chance (~75%) to cause food poisoning, and raw chicken has a fairly low chance to cause it (~30%).

Behavior

Food poisoning lasts 30 seconds, and drains 🍗 to 🍗 over the duration. In peaceful mode, the hunger bar turns green, but does not get drained.

The duration of food poisoning doesn't stack, so if the player eats many poisonous foods at once, he or she will only feel the negative effects of a bit more than one of the poisonous foods.


Mechanics

There are four fields in level.dat which are related to hunger:

  • foodLevel ranges 0–20, this value represents your hunger bar.
  • foodSaturationLevel is an invisible additional hunger variable, which is depleted before main foodLevel value. Eating any food will also add some to this variable. Note that this value cannot exceed foodLevel.
  • foodTickTimer increases with every tick when foodLevel>17 or zero. When it reaches 80 it will reset and heal or deal one point of damage.
  • foodExhaustionLevel ranges from 0.0 to 4.0 increases with every action you take. When the exhaustion level reaches 4.0 it will reverts to 0.0 and subtracts 1 point from foodSaturationLevel or from foodLevel if foodSaturationLevel equals 0.

Exhaustion level increase

Action ExhaustionLevel increase
Sneaking (per meter) 0.009
Walking (per meter) 0.01
Sprinting (per meter) 0.1
Jump 0.2
Sprinting jump 0.4
Break block 0.025
Receive any damage 0.3
Being poisoned from food 15.0 over effect duration

Food level and saturation level restoration

Food used foodLevel increase saturationLevel increase
Cookie 1 0.2
Bread 5 6
Raw Porkchop 3 1.8
Cooked Porkchop 8 12.8
Raw Beef 3 1.8
Steak 8 12.8
Raw Chicken 2 1.2
Cooked Chicken 6 7.2
Raw Fish 2 1.2
Cooked Fish 5 6
Melon Slice 2 1.2
Mushroom Stew 8 9.6
Cake (per slice) 2 0.4
Rotten Flesh 4 0.8
Apple 4 2.4
Golden Apple 20 20

References

Advertisement