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)

Depletion of hunger bar
Can anyone verify whether climbing or sneaking depletes the food bar? Neither action is listed but it would be really weird if you could climb a ladder and never get hungry. 68.142.53.228 15:03, 19 November 2011 (UTC)
 * Sneaking depletes hunger bar as fast, as walking. Climbing a ladder does not make you hungry. — MiiNiPaaT 15:59, 19 November 2011 (UTC)

Starving while AFK
There is definitely something strange going on here. I'm starving to death when I afk in flowing water, even though I'm not moving - I'm being pushed against a solid wall. Does this count as swimming? I ran a test and took a nap, and my hunger bar remained full. Then when I went to sleep, I died of starvation. 98.224.90.222 22:09, 19 November 2011 (UTC)
 * ANY movement in water, be it player swimming or currents pushing you, count as "swimming". About water pushing you into the wall: I don't know, how game behaves, when you try to move into solid objects (I mean what functions are called and their order). If walking into corner drains your hunger bar too, I might have some clues... "I ran a test and took a nap, and my hunger bar remained full" — read about Saturation Value, that is probably the case. — MiiNiPaaT 07:21, 20 November 2011 (UTC)

Sprinting Jump
What does that value of 0.8 for sprinting jump mean? Is it 0.8 per jump? 0.8 per meters jumped? Either way, compared to the 0.1 per meter value of sprinting, it can't be right. It's obvious that normally sprinting a long distance depletes hunger a lot faster than continuously jumping while sprinting. Or what am I missing here? SpecB 18:12, 3 December 2011 (UTC)
 * Per jump. Values from the source code. — MiiNiPaaT 20:37, 3 December 2011 (UTC)
 * And jump lenght is slightly less than 4 meters, so it will be ~0.2 per meter. — MiiNiPaaT 20:40, 3 December 2011 (UTC)
 * That still doesn't add up. For example, I can sprint to one town from another on our server, which is roughly 500 meters, and use up 4.5 "drums", while if I cover the same distance, just sprint jumping (starting when the food bar starts jittering), I **barely** use up 4.5 drums. Even taking the "calculation" errors into consideration, such as occasional stops due to jumping into a block's side, and such, I can't imagine the exhaustion lever increasing twice as fast. Know what I mean? SpecB 17:49, 4 December 2011 (UTC)
 * Try it on single player. Many servers have mods, whick "enhance" hunger like idle starvation and such. Sprinting 500 meters should take 6-6.5 "drums" on unmodded game. Using 4.5 you only can sprint 360 meters. Later I will test it, but every value in table taken straight from source code. And I remember, when i test this earlier without source, I thought, that sprinting jump wil only take 0.4 exhaustion, because I supposed sprinting will increase my exhaustion even in air. — MiiNiPaaT 20:46, 4 December 2011 (UTC)