Minecraft Wiki
Advertisement

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|C) 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|C) 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|C 09:42, 22 September 2011 (UTC)

It seems to me that this column could use a bit of expansion. With the way that the saturation level restored by various kinds of food sorta seems to represent how 'healthy' the food is, I'd think that the most useful form of this information would be as 'saturation restored / food restored' - i.e. if you fill up a certain number of food points with this kind of food, how many saturation points do you get? This would normalize the 'healthiness' of different kinds of food to take into account the varying food restoration values, so you can see at a glance which are the most effective at keeping the saturation level high. After all, when eating the concern usually is to restore however many food points you're down, so it would be nice to see what kind of food would restore the most saturation points for whatever number of food points you're trying to restore. I'd personally add this as another column to the table, perhaps also slightly expanding the blurb on saturation. Anyone else think this would be useful?

further edit: proposed label for the column: "Normalized Saturation (newline) (saturation restored/food restored)". I'd add the sentence "Foods with higher normalized saturation are 'healthier'; eating such food will generally allow you to go longer before your food bar starts to decrease again." to the blurb about hunger. 141.211.198.115 19:02, 24 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|C 09:41, 22 September 2011 (UTC)

Declaration in Item.java:
bucketMilk = (new ItemBucket(79, -1)).setIconCoord(13, 4).setItemName("milk").setContainerItem(bucketEmpty);
part of the ItemBucket.java:
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) {
...
if(isFull < 0) {
return new ItemStack(Item.bucketEmpty);
}

There is nothing about cure. — MiiNiPaaT|C 09:51, 22 September 2011 (UTC)

So I commented the milk part. If somebody can prove, that milk really cures food poisoning, feel free to uncomment. — MiiNiPaaT|C 13:57, 22 September 2011 (UTC)

I heard that milk isn't really supposed to cure food poisoning, but rather it cures poison from a spider or some other monster.75.168.245.122 00:23, 21 October 2011 (UTC) Ooogity Boogity.
I know the stuff for 1.9 says it clears potion effects, poisoning included. I guess that doesn't happen in 1.8 yet. Cobalt32 01:08, 21 October 2011 (UTC)

Page has an illogical statement?

Under Nourishment Value, it says, "Note: Higher nourishment does not always indicate that a food is a better choice. For example, 3 piece of bread provide less saturation than 2 soups even though they have the same nourishment value."

If you do the math, 3 pieces of bread heals 7.5 hunger. 2 bowls of mushroom stew heals 8 hunger. Considering they have equal nourishment value, the total bread (18) would be expected to provide less saturation than the total mushroom stew (19.2).

Simply put, nourishment value is a ratio, and that's just how ratios work. 7.5:18 = 8:19.2, just as well as 7.5:8 = 18:19.2. I'm removing that note. If anyone thinks otherwise, discuss it here. 76.20.78.75 06:28, 10 October 2011 (UTC)

If anything should be noted under nourishment value, it is that hunger does not decrease until saturation is empty. Therefore, while the food bar is jittery (saturation = 0) foods with higher nourishment values are preferred (unless your hunger is near 0, as saturation cannot surpass hunger). 76.20.78.75 06:47, 10 October 2011 (UTC)

Golden Blocks in Ingredients section

Golden Blocks are items that cannot be eaten on their own. Instead, they are crafted with other ingredients to produce certain food items. So, Should we add them?

Not really. They're just a way to upgrade an existing food item, and gold really isn't that edible, it probably just has some mythical magic effect on the food. But then again, I'm using logic, and that does not exist in some areas of minecraft. --HexZyle 14:17, 1 November 2011 (UTC)
Advertisement