Hunger
Hunger is an aspect of Minecraft added in the Adventure Update that governs several aspects of gameplay. Instead of directly restoring the player's Health as it did before the Adventure Update, eating food now fills up the Food Bar, which is constantly drained by the player's actions. The Food Bar is located next to the player's Health Bar on the bottom of the screen and is represented by ten shanks.
While the player is sprinting, the Food Bar depletes much faster. One is not able to sprint if his or her food level is 6 (![]()
![]()
) or less.
The Food Bar does not drain when playing on Peaceful mode. However, its effects on the player's health level remain, and switching difficulties has no effect on the Food Bar's current level. Thus, if the player changes the difficulty level to Peaceful while his or her Food Bar is empty, it will not restore his or her hunger level and the player will continue to starve while healing.
Certain foods and potions have a chance of poisoning ("Hunger" potion effect) the player upon consumption, which causes his or her Food Bar to deplete faster. Rotten Flesh causes poisoning 80% of the time, and Raw Chicken causes poisoning only 30% of the time. Eating a Spider Eye or Poisonous Potato actually deals the player damage ("Poison" potion effect).
Contents |
[edit] Effects
- When the Food Bar is at 18 (
× 9) points or above, the player's health will slowly regenerate at a rate of 1 health point every 4 seconds.[1] - If the Food Bar is at 6 (


) points or below, then the player will not be able to sprint. - When the Food Bar is at 0 (
), the player's health will deplete at a rate of 1 health point every 4 seconds. On Easy difficulty, the player's health stops dropping at 10 health points, on Normal it stops at 1 health point, and on Hard it keeps draining until either the player eats something or starves to death.[2]
[edit] Food poisoning
Food poisoning is an effect induced by eating raw chicken or rotten flesh, which turns the Food Bar a sickly yellow-green and slowly drains food. Rotten flesh has a high chance (80%) to cause food poisoning, and raw chicken has a limited chance to cause it (30%). Raw porkchop and raw beef do not have any chance of giving the player food poisoning.
| Name | Icon | Chance to poison |
|---|---|---|
| Raw Chicken | 30% | |
| Rotten Flesh | 80% |
[edit] Behavior
Food poisoning lasts 30 seconds and adds 15.0 to the player's Exhaustion Level over the duration. This is slightly less than ![]()
(two "hungerchops"). In peaceful mode, the Food Bar changes color, but does not get drained.
The duration of food poisoning does not stack. So, if the player eats many poisonous foods at once, he or she will only feel the negative effects of the most recent poisonous food, plus the consumption time of each other food. Also, since poisoning is recognized by the game as a potion effect, drinking milk will negate the effect as will a potion, allowing the player to eat potentially poisonous food and drinking milk to fill the bar when no other food is available.
Also, passing through a nether portal in SMP will negate the effect (this does not happen in SSP).
As of 1.9 pre4, green swirls rise around the player to indicate the sickness when he or she is poisoned.
[edit] Mechanics
There are four fields in level.dat which are related to hunger:
- foodLevel ranges from 0 to 20 and is represented by the player's Food Bar. One point equals
(half a "shank"). - foodSaturationLevel is an invisible additional hunger variable that is depleted before main foodLevel value. Eating any food will also add some to this variable. Note that this cannot exceed foodLevel. The Food Bar jitters when this equals 0.
- foodTickTimer increases with every tick when foodLevel is either greater than 17 or equals zero. When foodTickTimer reaches 80, it resets to zero and then heals or deals one point of damage to the Health Bar, respectively.
- foodExhaustionLevel ranges from 0.0 to 4.0 and increases with every action the player takes. When the exhaustion level reaches above 4.0, it will be subtracted by 4.0 and subtracts 1 point either from foodSaturationLevel or, if foodSaturationLevel equals zero, from foodLevel.
[edit] Exhaustion level increase
Any action not listed here will not increase exhaustion level. For example, the player can travel several days by boat and the food bar will not decrease.
| Action | Exhaustion Level increase |
|---|---|
| Walking and Sneaking (per meter) |
0.01 |
| Sprinting (per meter) | 0.1 |
| Swimming (per meter) | 0.015 |
| Jumping | 0.2 |
| Sprinting jump | 0.8 |
| Breaking a block | 0.025 |
| Attacking an enemy | 0.3 |
| Receiving any damage | 0.3 |
| Effects of food poisoning | 0.5 per second (15.0 over effect duration) |
[edit] Food level and saturation level restoration
- Main article: Food
| Name | Icon | Food Points | Source(s) | Saturation restored (additional effects) |
Effective Quality [note 1] |
|---|---|---|---|---|---|
| Apple | 4 |
Stronghold chests Destroyed/despawned oak Leaves NPC Village blacksmith chests Bonus Chests Trading |
2.4 | 6.4 | |
| Baked Potato | 6 |
Cooking a potato in a furnace | 7.2 | 13.2 | |
| Bread | 5 |
Crafting Dungeon chests Stronghold chests NPC Village chests Abandoned Mineshaft chests Bonus Chests Trading |
6 | 11 | |
| Cake (slice) | 2 |
Crafting | 0.4 | 2.4 | |
| Cake (whole) | 12 |
Crafting | 2.4 | 14.4 | |
| Carrot | 4 |
Killing zombies Harvesting carrots |
4.8 | 8.8 | |
| Cooked Chicken | 6 |
Cooking a raw chicken Setting chickens on fire Trading |
7.2 | 13.2 | |
| Cooked Fish | 5 |
Cooking a raw fish | 6 | 11 | |
| Cooked Porkchop | 8 |
Cooking a raw porkchop Setting pigs on fire Trading |
12.8 | 20.8 | |
| Cookie | 2 |
Crafting Trading |
0.4 | 2.4 | |
| Golden Apple | 4 |
Crafting Dungeon chests Stronghold chests |
9.6 (Health regeneration for 4 seconds.) |
13.6 | |
| Golden Carrot | 6 |
Crafting | 14.4 | 20.4 | |
| Melon | 2 |
Harvesting a melon block Trading |
1.2 | 3.2 | |
| Mushroom Stew | 6 |
Crafting Using a Bowl on a Mooshroom |
7.2 | 13.2 | |
| Poisonous Potato | 2 |
Harvesting potato plants | 1.2 (60% chance of getting poisoned.) |
3.2 | |
| Potato | 1 |
Killing zombies Harvesting potato plants |
0.6 | 1.6 | |
| Pumpkin Pie | 8 |
Crafting | 4.8 | 12.8 | |
| Raw Beef | 3 |
Killing cows | 1.8 | 4.8 | |
| Raw Chicken | 2 |
Killing chickens | 1.2 (30% chance of food poisoning.) |
3.2 (2.075)[note 2] |
|
| Raw Fish | 2 |
Fishing | 1.2 | 3.2 | |
| Raw Porkchop | 3 |
Killing pigs | 1.8 | 4.8 | |
| Rotten Flesh | 4 |
Killing zombies and zombie pigmen Desert and Jungle Temples. |
0.8 (80% chance of food poisoning.) |
4.8 (1.8)[note 2] |
|
| Spider Eye | 2 |
Killing spiders and Cave Spiders | 3.2 (100% chance of getting poisoned.) |
5.2 | |
| Steak | 8 |
Cooking raw beef Setting cows on fire Trading |
12.8 | 20.8 |
- ↑
Food Points + Saturation, which gives roughly how 'long' the food will last. See hunger for details. Eating food with a food value more then what is currently missing from your food bar will not give you extra saturation.
- ↑ a b
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.