Talk:Hunger

(Pre-section posts)
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)

I think this is a great idea. Either "sick", "ill", or "nauseated". I think the latter is the usual terminology used in RPGs, if that's of any consequence. -- Ouizardus 19:23, 3 December 2012 (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)

Do we know how long it is possible to AFK on a full hunger bar? On Normal? On Hard? --71.205.168.188 18:42, 24 July 2012 (UTC)

If your getting pushed into a wall by water, you can just place a sign on that block and the water will no longer be pushing you. You also still collect the items your waiting there for.

Just going to put something in here, on hard, standig still does deplete your hunger bar, went to take a shower while waiting for zombies to spawn in my mob trap and i came back dead, no items, nothing but a death screen.
 * It does not. I checked source code one more time, just in case something was added, but have not found anything aside from mentioned cases. You could be killed by mob, you could have mods installed, but in vanilla Minecraft standing still DOES NOT DEPLETE your hunger. — MiiNiPaaT 14:17, 21 October 2012 (UTC)
 * You can die by standing still if you've been feeding on Rotten Flesh. It's happened to me while having a smoke. It seems as though the food poisoning is doing something more than this page states. 76.187.4.88 17:07, 23 October 2012 (UTC) Joe F.
 * Tested multiple times. Only way to die due to food poisoning was to get starving and Exhaustion > 3.0 then eat rotten meat and get food poisining. And that quite obvious from article. — MiiNiPaaT 11:38, 24 October 2012 (UTC)
 * I just tested, and I had full hunger from Steak, I stood in one spot and jumped until my hunger dropped half a point, and then fed on Rotten Flesh. I gained the Hunger debuff, and lost 2 hunger bars until the debuff dropped. After that my hunger continued to deplete. From reading the talk pages it's become clear why, but the article isn't clear on that point as my hunger should not be dropping if I'm not moving, and indeed it does not if I fill up on Steak. It seems like the Hunger debuff may reduce the saturation to 0 and deplete health.76.187.4.88 03:32, 25 October 2012 (UTC) Joe F.

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)
 * I have added a table of my measurements using vanilla single player client version 1.1 to Hunger, and they roughly match the code values: one food drumstick "shank" lets me sprint jump 66 metres on grass compared to 88 metres sprinting alone. Sprinting 500 metres takes me 5.6 shanks. However I found sneaking was consistently half the cost of walking the same distance. The game was in survival mode, normal difficulty. -Aurelius 14:41, 1 April 2012 (UTC) Hmm, I must have miscounted, because when I retested walking in both 1.1 and 1.2.5 prerelease I now get almost the same results as sneaking, and I also confirmed the level.dat foodExhaustionLevel value changes at the same rate. -Aurelius 15:47, 1 April 2012 (UTC)
 * This values probably will be inconsistent on different tries/conditions because all differences with source code values are because of rounding errors. And why "shank" and not "half-shank"? — MiiNiPaaT 06:09, 2 April 2012 (UTC)
 * Yes, I appreciate my measurements will have measurement error, but I feel it's wothwhile getting some kind of "ground truth" with vanilla clients in case there are not fully understood code effects. I used shanks rather than half-shanks to avoid confusing the reader further. -Aurelius 11:30, 2 April 2012 (UTC)

Sneaking?
Sneaking is not listed as an activity. Is it safe to assume that moving while sneaking does not consume food (so that normal walking is faster but uses some food, and sneaking is an out-of-food alternative for people on an island with no food)?

Keybounce 03:57, 27 January 2012 (UTC)
 * It is same as walking. Walking and sneaking same distance will use same amount of food — MiiNiPaaT 08:14, 27 January 2012 (UTC)

Hunger Bug
I was playing on easy and running around. Then I needed to set up camp and took some damage, so I ate food. 4 bread, and my health didnt restore. Then I spawned in a stack of steaks with TMI and ate them all, and my health didn't restore. It didn't even look like my hunger was low. I did not use a texturepack. 178.251.245.153 06:08, 14 March 2012 (UTC)

Nevermind, it was one of my mods. 178.251.245.153 06:12, 14 March 2012 (UTC)

Bugs
*Once the food saturation level reaches 0, standing on a lily pad will drain the food meter at an extremely fast rate

I moved the above unsigned and unsourced report from Hunger to here at Talk:Hunger after I tested both 1.1 and 1.2.5 vanilla clients: I measured zero effect when standing still and only approximately 0.005 foodExhaustionLevel increase per movement on top of a lily pad. My movements were probably less than one metre in order to remain on the pad, and this likely explains why the exhaustion change is less than that reported for walking. I used seed Debug and lily pads at these locations: x 928 z 361 in version 1.1 and x 1226 z 417 in version 1.2.5. I used both Normal and Hard difficulties on worlds created normally in both Beta 1.8 (converted by vanilla minecraft 1.0 and 1.1) and in 1.2.5, each time 100% vanilla, no mods and no editors used at any time. I measured the level change by first exitting Minecraft, copying level.dat to external folder and examining with NBTEdit, in addition to watching the hunger bar after 200 movements. If anyone has experienced this or any other bug, please include full details: world save creation history, seed, coordinates, how test was done. -Aurelius 11:14, 2 April 2012 (UTC)

Effective Quality of Food
The effectively value of a food can't be﻿ calculated by adding the food points + saturation points, simply because 1 food point is worth 20 saturation points. To make it accurate without any food or saturation wastage, we should use (FoodPoints*20 + SaturationPoints) to get an effective food value. That means cookies are 52 points (or worth 1040 jumps) and Steak is 172.8 points, or about 3.3 times better.

I propose that the Effective Quality column (in the "Food level and saturation level restoration" table) be changed to better reflect the quality of food. Xinhuan 09:48, 20 May 2012 (UTC)
 * One food point is equal one saturation point. — MiiNiPaaT 10:40, 20 May 2012 (UTC)

Food Saturation
It appears that the full saturation of a food item is added if it is at zero (when the shanks twitch) However, if you eat another item afterward, only HALF of the stated saturation is added. Can somebody else please confirm?
 * Can you clarify, what did you eat? Please note, that saturation leval cannot exceed food level. So if you eat food which restores more saturation than food, you can waste some saturation points depending on your current food and saturation level. — MiiNiPaaT 05:30, 29 May 2012 (UTC)

SMP Food Bug
With the new 1.3.2 patch (and with previous patches on SMP) I have mysteriously lost hunger points while afking. The two main locations that I would afk were just outside an auto melon farm on a pressure plate with a water stream flowing toward me, and inside a chicken/egg farm. I can understand why I would lose hunger in the chicken farm, because the chickens would push me around. But the melon farm had no such movement and I was touching no blocks aside from the pressure plate that I stood on. Additionally, with 1.3.2 passive animals no longer push the player, and yet I still was killed by hunger during an overnight afk session in the chicken farm. The only reason I can think of to explain this behavior is that I'm standing on bedrock during the afk, and it behaves differently from other blocks; it can't spawn mobs and has negative strength. Also, the coordinates are y=129 for my head and I've been doing the afking in the Nether. If anyone knows the solution to this then please help. --Deathpiston32:6 19:53, 21 August 2012 (UTC)

Hello ! I'm experiencing the same issue on a SMP 1.3.2 completely vnilla server. Even better : I'm standing AFK at y=170 above ground, next to a Nether portal and I'm "loosing hunger" even if I'm not moving. It can not be explained because of mobs pushing you around, because since 1.3, mobs, players and other entities no longer can't push you around. The only one explaination I have is the following : when you're standing next to an AFK player on SMP, he seems to "levitate" and to glitch around. Maybe the game take it like walking around, then decrease the hunger bar. It's only my opinion indeed. Sorry for grammary errors, English's not my native language.

Max foodSaturationLevel ?
Is there a maximum limit to how high the foodSaturationLevel value can be? What's the specific mechanism that stops players from just eatting and eatting until their foodSaturationLevel is ridiculously high? Is it that we can't eat if our hunger bar isn't shaking (i.e. can't eat when foodSaturationLevel > 0 )?

-- Ouizardus 19:19, 3 December 2012 (UTC)


 * It's limited to be no greater than your current foodLevel, so it can never go above 20. Also, you can't eat food (aside from golden apples) when your hunger bar is full. -- Orthotope 22:18, 3 December 2012 (UTC)

Hunger
If You don't move and stay in the one spot for a couple of hours. What will happen to your hunger bar ?

Nothing. Physicist 00:40, 10 June 2013 (UTC)

Food Balancing in 13w23a
If I understand exhaustion correctly, it appears that regenerating health now gives between 2.0 and 4.0 exhaustion per tick. My small experimental sample size averages about 3.0. (Originally falsely reported as a whole hunger point, which Dinnerbone confirmed false). Watch your hunger bar (only while it jitters) and you're regenerating to confirm. I lost a half-shank every other health point. -- Physicist 00:49, 10 June 2013 (UTC)