Hunger



Hunger is an aspect of Minecraft that governs several aspects of gameplay. Eating food fills up the food bar, which is constantly drained by the player's actions. The food bar is located on the HUD opposite to the player's health bar on the bottom of the screen, represented by ten drumsticks, and each is equal to 2 half-units of food.

There is another aspect of hunger that is not visible to the player. This is called the food saturation level. The player's hunger will not decrease until their food saturation level reaches zero. When the saturation level is at zero, the food bar will shake or jitter periodically. The maximum value of the food saturation level is equal to the current value of your food level. This means that if, for example, your food level is 20/20 (All your drumsticks are full) then your maximum food saturation level is also 20.

While the player is sprinting, the food bar depletes very quickly. The player is not able to sprint if their food level is or less.

The food bar does not drain when playing on Peaceful difficulty. If it somehow gets depleted, such as by allowing it to deplete by switching to another difficulty and back again, it will quickly regenerate. Additionally, the food bar will not drain if the player remains completely stationary, or is simply walking.

Certain foods have a chance of inflicting Hunger status effect on the player upon consumption, which causes the player's food bar to deplete faster.

Effects

 * When the food bar is at or greater and there is still some saturation left, health regenerates at  health point each $1/2$-second, costing 1.5 food points (6 units of exhaustion) per point healed.
 * When the food bar is at to  points, or at  with no saturation remaining, the player's health will slowly regenerate at a rate of  every 4 seconds, costing 1.5 food points (6 units of exhaustion) per point healed.
 * When the food bar is at points or below, the player will not naturally regenerate health unless difficulty is switched to Peaceful.
 * If the food bar is at points or below, then the player will not be able to sprint unless difficulty is switched to Peaceful.
 * When the food bar is at, the player's health will deplete at a rate of every 4 seconds (this makes sleeping impossible). On Easy difficulty, the player's health stops dropping at , on Normal it stops at , and on Hard it keeps draining until either the player eats something or starves to death.

Food poisoning
Hunger, or food poisoning, is an effect induced by eating certain foods, which turns the food bar a sickly yellow-green and drains food more rapidly. The only foods, however, to inflict Hunger are rotten flesh, which can cause Hunger 80% of the time, raw Chicken, which causes Hunger only 30% of the time and Pufferfish, which will always cause Hunger (as well as Nausea and Poison). Eating a spider eye or poisonous potato actually deals the player Poison. The rest of the foods will not cause food poisoning. Hunger can also be caused when the player takes damage from a Husk.

Behavior
Hunger from food poisoning adds 15.0 to the player's exhaustion level over the course of 30 seconds, draining × 1⅞. In Peaceful difficulty, the food bar will change color, but will not drain out. Greenish swirls will also emit from the player, indicating that the player has food poisoning. When a pufferfish is eaten, it induces level III Hunger, but only for 15 seconds. In this time, 22.5 exhaustion points are added, draining × $2 13/16$.

The duration of Hunger does not stack. So, if the player eats many poisonous foods at once, they will only feel the negative effects of the most recent poisonous food, plus the consumption time of each other food. Also, drinking milk will negate the effect, allowing the player to potentially eat more poisonous food and constantly drink milk to fill the bar without being afflicted by Hunger.

Saturation

 * Subscribe to Shadow88163
 * {| class="wikitable"

! Hunger bar ! + Hunger points ! = New hunger bar ! Saturation points
 * 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20
 * 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 || 20 || 20 || 20 || 20 || 20 || -
 * }
 * }

The hunger status of a player is saved in the player.dat format using the following parameters:
 * foodLevel: current state of the hunger bar.
 * foodSaturationLevel: current saturation level.
 * foodTickTimer: Increases on every tick, once the hunger bar is at least 18, or completely empty. Whenever it reaches 80, is added or deducted, depending on whether the player is saturated or starving.
 * foodExhaustionLevel: Sums up the exhaustion.

Exhaustion level increase
''Any action not listed watch porn hahahahhaha will not increase exhaustion level. For example, normal walking doesn't increase exhaustion, and therefore won't decrease saturation or the food bar.'' {| class="wikitable sortable" data-description="Exhaustion" ! class="unsortable" | Action ! Exhaustion level increase