Talk:Hunger

It seems that the hunger bar depletes much faster if you're outside during a rainstorm. Can anyone verify?

--71.170.235.135 02:27, 14 September 2011 (UTC)
 * From the little bit of testing that I've done it appears that rain does not effect hunger at all. Kataklistika 22:13, 16 September 2011 (UTC)

I don't think it's possible to sprint while at 30% or less of your food bar. Can anyone else check this for confirmation? I might have just missed something else.

Riasiru 14:03, 13 September 2011 (UTC)

Confirmed. You can't sprint with 3 or less food points. C ali nou - talk × contribs » 14:19, 13 September 2011 (UTC)

Right, updated page to mention that you can't sprint under those conditions.

Riasiru 14:41, 13 September 2011 (UTC)

I'm noticing that the food bar begins to shake after some time and that food points will only deplete when the bar is shaking. I've done some testing and got some basic results. While the bar is shaking you can do the number of following at a cost of one food point: 40 jumps, 3 minutes of walking, or around 12 seconds of sprinting. Furthermore, I've noticed that each type of food not only replenishes food points, but also prevents the bar from shaking again after so long. For example: eating bread will prevent the bar from shaking much longer than when you eat a melon slice. I got about 115 jumps after consuming bread before the bar began shaking again. I only got about 60 jumps with a melon slice. These effects are NOT stackable. Consuming 2 melon slices still only netted 60 jumps. It appears the food bar has more depth to it than many people think. This warrants further testing. Can others confirm please? Kataklistika 10:52, 16 September 2011 (UTC)
 * I did some tests with bread and sprinting: When you consume a bread you can sprint for about 45s (on hard) without the foodbar start shaking/depleting. When you restore 5 foodpoints consuming 2 breads it's possible to sprint for about 1 1/2 minutes without the foodbar start shaking. --Visitor 11:43, 16 September 2011 (UTC)


 * I also traveled by boat for two days and not a single point of food was lost. I think that you wil become hungrier only if you doing something. Also there is four fields in level.dat/player which has to do something wits hunger:
 * foodLevel (integer)
 * foodTickTimer (integer)
 * foodExhaustionLevel (float)
 * foodSaturationLevel (float)


 * I will test it later — MiiNiPaa (talk) 11:25, 16 September 2011 (UTC)

Run some basic tests: foodLevel ranges from 0 to 20 and it is your food bar. foodExhaustionLevel ranges from 0.0 to 4.0 and is increased when you doing something. Sprinting will increase this variable much faster, than walking. Mining one block will increase it by 0.025. When foodExhaustionLevel reaches 4.0 it will reset back to 0.0 and foodLevel will decrease by one.

TL;DR: if you standing still and don't doing anything food level will never decrease. — MiiNiPaa (talk) 11:40, 16 September 2011 (UTC)

foodTickTimer ranges from 0 to 80 when it reaches 80 your health will be increased by 1 point and counter will start again. Increases over time when not in full health.

foodTickTimer also used when our foodLevel is 0 to deal damage to you. Range and behavior remains the same, but when timer resets it deal 1 damage instead of increasing health. — MiiNiPaa (talk) 12:14, 16 September 2011 (UTC)

foodSaturationLevel is "invisible food points". When foodExhaustionLevel reaches 4.0 they will be decreased instead of main food points. Cooked fish adds 6 to this number by the way... — MiiNiPaa (talk) 11:51, 16 September 2011 (UTC)
 * EDIT: Eating any food will add to this number. Feell free to eat as much as you want ^_^.
 * Can you test eating 2 breads while having just 5 food points? What is the foodSaturationLevel then? --Visitor 11:58, 16 September 2011 (UTC)
 * I've tested it and found out:
 * Eating any food will ADD somepoints to food level AND to the saturation level.
 * Saturation level cannot exceed current food level and effective capped at 20.
 * Bread adds 5 points to food meter and 6 to saturation level. So eating two breads wits 5 food and 0 saturatiot will give you in the end 15 food and 12 saturation. — MiiNiPaa (talk) 12:07, 16 September 2011 (UTC)

Food poisoning will add 15 to Exhaustion Level over time this is slightly less than 4 points of food. Rotten flesh adds 4 points of food and 0.8 of saturation so it gives more than takes. — MiiNiPaa (talk) 12:33, 16 September 2011 (UTC)

Some info about food level and saturation level restoration: — MiiNiPaa (talk) 13:50, 16 September 2011 (UTC)
 * Wow excellent work! So I assume that the food bar begins to shake when saturation equals zero? Also, since saturation can go up to 20, it's still worth it to eat a steak even if your actual food bar is 9/10ths full as it will still raise your saturation by 12.8 then? Kataklistika 22:13, 16 September 2011 (UTC)


 * Yes to both. But 6 from 8 points added to foodLevel will be lost — MiiNiPaa (talk) 05:07, 17 September 2011 (UTC)

I looked into the source code. The saturationLevelIncrease bit is a little complex, but in the end it translates into the numbers shown above. — MiiNiPaa (talk) 12:12, 19 September 2011 (UTC)

"Poison"
If it's ok with everyone else, I think we should refer to the food bar being "poisoned" as being Sick. 1. Being "Poison" drains your HP not food. This could help differentiate between to two. 2. If you get ill from eating something, it is generally called being sick not poisoned. (That is of course save for Food Poisoning)

This would help us differentiate between the two until Notch or Jeb gives us an official name. --Geonightman 16:17, 13 September 2011 (UTC)

Food doesn't drain while in inventory? i've noticed while being afk waiting for crops to grow my hunger doesn't drain. i'm in normal. –The preceding unsigned comment was added by Adasdad (Talk 3:45, 17 September 2011. Please sign your posts with
 * Food only drains when you doing something. If you standing still food bar will never deplete — MiiNiPaa (talk) 04:12, 18 September 2011 (UTC)

Eating animation
Where would we put the eating animation? We can add a gif of the eating animation, but where would we put it? The Food page or this one? Shouldn't there be a page on the mechanics of Eating just as there are pages on sprinting, sneaking, etc. We can put the eating animation there then.- Asterick6 06:06, 10 November 2011 (UTC)