Talk:Food/Archive 1

Food in an old mod
Hm. Having a problem with food after downloading one of the mod compilations. (http://www.minecraftforum.net/viewtopic.php?f=25&t=124219) that one. I can eat porkchops fine. But everything else? Not at all. Cooked fish, apples, bread and all that. Doesn't seem to register as food. Any thoughts? Zargen
 * Well, it's a mod. :U Won't have much luck asking for support here, let alone for mods. Especially for the community pack, which is always broken one way or another (through my experience, anyway. it seems the guy putting it together doesn't actually bother properly testing it) --Gnu32 08:04, 17 February 2011 (UTC)
 * I found the problem xD Very stupid oversight. Can't eat food if it's stacked. Got to unstack, eat then restack the pile.Zargen

Healing efficiency
If anyone wants an explanation as to how exactly I arrived at any of the figures given in the "Healing efficiency" column of the food items table, say which one(s) and I'll be happy to provide said explanation. =) I'd also welcome suggestions on clarifications or restructurings that might make the whole thing easier to understand. ;) 「 ダイノ ガイ 千？！ 」? · ☎ Dinoguy1000 07:58, 4 April 2011 (UTC)


 * All of them. The Food/HE Calculations page doesn't help either, just confuses me more. Explain... everything! Cool12309(T 21:41, 21 July 2011 (UTC)


 * Well, let's look at a simple one, bread.
 * To start with, bread doesn't stack, so you can only have one bread in each inventory space. Because each bread heals 2.5 hearts, if you're carrying precrafted bread, the best healing-to-inventory ratio you'll get is 2.5 hearts per inventory space.
 * However, if you carry wheat instead of bread, it starts to get more interesting: you can carry stacks of 64 wheat in one inventory space.
 * First, let's look at using a single space:
 * The largest multiple of 3 (we're using 3 because one bread is made from 3 wheat) which is less than 64 is 63 (we don't strictly have to do this - we could just have a full stack of 64 - but if we do that, we'll be left with 1 wheat which takes up its own inventory space and therefore reduces the healing ratio).
 * 63 divided by 3 is 21, so we can craft 21 bread from a single stack of 63 wheat.
 * One bread heals for 2.5 hearts, so 21 bread will heal for 52.5 hearts. Since we're only using one inventory space, that gives us a healing-to-inventory ratio of 52.5 hearts per inventory space.
 * Now, we turn to figuring out the best ratio we could get, which is done by carrying three stacks of wheat (two stacks aren't better than one, because we'll be left with two leftover wheat, or have two stacks of 63 wheat (or one stack of 64 and one of 62) - wasted space!).
 * Using these three spaces lets us craft 64 bread, which will heal for 160 hearts total.
 * To get our ratio, then, we divide 160 by three (remember, we used three inventory spaces) and get 53.333... - 53 1/3 hearts per inventory space. This is the absolute best-case scenario for bread, and doesn't change if we only have three full stacks of wheat, or 36 (which would get us 768 bread (36 * 64 = 2304 wheat; 2304 / 3 = 768 bread)), because if you divide the total hearts the bread will heal by the number of inventory spaces used, it always comes out the same - 53 1/3.
 * This is all well and good, but we want to figure these ratios out including a workbench. This isn't a problem, we just add one inventory space to our above calculations:
 * For a single stack of wheat, after we've gotten our 52.5 hearts' worth from the crafted bread, we divide it by 2, since we're now using two inventory spaces instead of just one. This gets us 26.25 hearts per inventory space.
 * For three stacks of wheat, instead of dividing our 160 hearts by three, we divide it by 4 (three stacks of wheat and one workbench). This gets us a nice, even 40 hearts per inventory space.
 * But! This is where it gets really interesting: if we include a workbench in our figuring, we can get better ratios by using more inventory spaces!
 * The player has 36 spaces total at their disposal (four rows of nine). One of these spaces is being used for the workbench, leaving us with 35 free spaces. The largest multiple of three (remember, we want a multiple of three so we can have all full stacks of 64 wheat, with no leftover or wasted space) that is less than 35 is 33.
 * 33 stacks of wheat will get us 704 bread (33 * 64 = 2112; 2112 / 3 = 704), which will heal a total of 1760 hearts.
 * We're using 34 inventory spaces (one workbench, and 33 stacks of wheat), so we divide 1760 by 34 to get 51.76 (we get a lot more decimals than that, actually, but we'll ignore the rest of them to make things easier).
 * This isn't quite as good as it gets, though - this is one situation where carrying a partial stack gets us a slightly better ratio.
 * Instead of leaving those last two spaces empty, let's put a stack of 63 wheat in each one. This will give us a total of 2238 wheat (33 * 64 = 2112, 2 * 63 = 126, 2112 + 126 = 2238).
 * After crafting, we get 746 bread, which will heal for 1865 hearts.
 * We divide that by 36 (we're using all of our inventory spaces this time), resulting in a ratio of 51.80555... - round up to make it a bit easier, and we have a ratio of roughly 51.81 hearts per inventory space!
 * So, to recap:
 * One stack of wheat can heal a maximum of 52.5 hearts per inventory space.
 * Three stacks can heal 53 1/3 hearts per inventory space (this is the same if we carry any other number of stacks, as long as it's a multiple of three).
 * One stack of wheat and one workbench can heal 26.25 hearts per inventory space.
 * Three stacks of wheat and one workbench can heal 40 hearts per inventory space.
 * 33 stacks of wheat and one workbench can heal about 51.76 hearts per inventory space.
 * 35 stacks of wheat (33 full stacks and 2 stacks of 63) and one workbench can heal about 51.81 hearts per inventory space.
 * I can do other food items if there are still bits you don't understand (I'm thinking, in particular, of mushroom soup and cake). =) Also, if you compare my ratios here with those in the article, you'll notice that some don't match - I somehow messed up some of my calculations when getting the ratios for the article, and everything needs to be recalculated and fixed. 「 ダイノ ガイ 千？！ 」? · ☎ Dinoguy1000 18:36, 29 July 2011 (UTC)


 * Do we include the fuel in the slots needed if we do smelting to obtain the prepared food? Assisstion 18:09, 30 July 2011 (UTC)


 * Ooh, that's something I hadn't thought of! The whole point to specifically including the furnace/workbench in the calculations is to assume that we're carrying all the supplies we need to craft the food - meaning we don't need to gather any supplies when we're ready to craft it - so I would say yes, include the fuel. For simplicity's sake, we'll also assume that we can get "perfect" use from each piece of fuel - for instance, that we can cook 8 porkchops with one piece of coal (even though, in-game, even the most nimble-fingered person will only get through seven and a part). 「 ダイノ ガイ 千？！ 」? · ☎ Dinoguy1000 18:17, 30 July 2011 (UTC)

Apples
This page says that apples can only be obtained by killing Notch; the red apple page and the dungeon pages say they can be found in dungeon chests. Which is right? I'm writing this on a computer I don't have Minecraft installed on or I would find out myself. Could somebody find out and edit the pages or put up the results so somebody else can. Thanks Woodcock 00:29, 27 April 2011 (UTC)


 * According to what I've read, while red apples could formerly be found in dungeon chests, they can't be now. I don't know if this is really true, but the person who wrote it offered a piece of the reconstructed source (a routine responsible for selecting the items to be placed in dungeon chests) and it didn't have red apples as one of the selection options. 「 ダイノ ガイ 千？！ 」? · ☎ Dinoguy1000 02:12, 27 April 2011 (UTC)

hotdog?
i though it was known that the hotdog tweet was a joke.pointing out that because he sais he liked a hotdog that people would think he is going to add them,followed up by him tweeting some thing very similar to the above statement. [i don't know how to sign my name onto the post so SlyRatchet] Just type four of these ~. Woodcock 01:08, 8 May 2011 (UTC).

Will need updating
In the pre-release all food items stack. --Ecksearoh 12:04, 10 September 2011 (UTC)

Red Apples
The page says it heals 2, but the table says 1. Can someone clarify? Cool12309(T 10:49, 13 September 2011 (UTC)

Beta 1.8 Food Engine
Food in Beta 1.8 doesn't seem to be quite as simple as it appears.

level.dat is showing 4 food values for players now:

TAG_FLOAT foodExhaustionLevel TAG_INT foodTickTimer TAG_INT foodLevel TAG_FLOAT foodSaturationLevel

foodLevel is the visible food bar which works in a manner identical to the health bar. (20 foodLevel = 10 full icons, 5 food = two full icons and one half icon, etc)

foodExhaustionLevel counts up to 4.0 (apparently), and then resets, subtracting 1 from foodSaturationLevel, if it's nonzero, or foodLevel if fSL is zero.

foodTickTimer counts down(?) in 'ticks' between health regen/health loss from starving events.

foodSaturationLevel is a bit odd. I thought it was an overflow variable for foodLevel, but it's not. Every time the player eats food, foodSaturationValue gains some points, approximately around the value of the food eaten, but sometimes greater.

...

When a player sneaks, runs, sprints, jumps, or breaks blocks (and possibly other activities), the game increments foodExhaustionLevel. Once that reaches 4 (or thereabouts), it resets, and 1 food is deducted. This food is taken from foodSaturationLevel if it's nonzero, or foodLevel if it is zero.

This lets the player sprint about for a while after eating without depleting the visible food bar. This also means that food has roughly double it's effect than would be suggested by the visible bar alone.

My test result values for foodSaturationLevel have varied from the item being eaten's value to something considerably larger than that value (ex. steak has varied from 8 to 12.6). I strongly suspect that the foodExhaustionLevel is being factored in there, although results are a bit screwy so far.

~ Renegrade 18:00, 16 September 2011 (UTC)
 * there I already found out, what is it for. — MiiNiPaa (talk) 09:46, 17 September 2011 (UTC)

Add SaturationLevel restoration to the table
As except normal hunger level there is second "invisible" saturation level, I think, it should be added to the food table. And there is should be link to hunger mechanics. I'm not confident in my English and wiki editing experience, so I'd like someone to do it. — MiiNiPaa (talk) 15:27, 18 September 2011 (UTC)


 * Already done — MiiNiPaaT 09:42, 22 September 2011 (UTC)

"Heal" hunger?
There should be a better word to describe the refilling of the hunger bar (example Cooked Fish and Template:Food). I suggest the word "fill" instead. "Restore" is my second choice.--72.19.91.191 01:09, 19 September 2011 (UTC)

Milk
I didn't find anything about cure from poison in source. Does it really cures you ingame? — MiiNiPaaT 09:41, 22 September 2011 (UTC)

Declaration in Item.java:  part of the ItemBucket.java: There is nothing about cure. — MiiNiPaaT 09:51, 22 September 2011 (UTC)