Difference between revisions of "Nutrition"

From Pandorabox
Jump to navigation Jump to search
(Clarify introduction)
(update list of foods)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=== Full List of Foods and their Stamina Points ===
+
=== About nutrition and stamina ===
  
The numbers are stamina points (max 30).
+
Nutrition refers to how much a food can feed or poison a player, and stamina refers to the value stored in the player, as displayed on the HUD. These terms can also be known as hunger points, food points, stamina points, hunger, or bread.
The Hunger HUD (row of bread icons) displays 10 "breads", each of which can be displayed as half or full and represents 3 stamina points.
 
This makes some foods appear to provide inconsistent nutrition (there are rounding errors from this scaling).
 
  
To calculate how many 'bread' are filled up in HUD when eating an item, divide the number in this list by 3.
+
A positive nutrition value feeds the player, while a negative value poisons the player. The maximum usable nutrition is 20, and the minimum is -20 (poison), anything outside of this range is wasted (for example, Date-nut cake will only give a maximum of 20 stamina, even though it has 32 nutrition).
  
Some items are not available on pandorabox, they are in parenthesis.
+
The stamina HUD (row of bread icons) displays 20 half-loaves of bread (10 full loafs). To calculate how many bread icons are filled up on the HUD when eating an item, divide the nutrition by 2.
  
<syntaxhighlight lang="txt">
+
=== Full list of foods ===
  32 - Date-Nut Cake
 
  
  30 - Marinated Tomatoes
+
{| class="wikitable sortable"
  30 - Pickled Carrot Sticks
+
|-
  30 - Pickles
+
! style="text-align:left;" | Nutrition
 +
! style="text-align:left;" | Name
 +
! style="text-align:left;" | Itemstring
 +
! style="text-align:left;" | Comment
 +
|-
 +
| 32 || Date-nut cake || moretrees:date_nut_cake ||
 +
|-
 +
| 30 || Marinated tomatoes || canned_food:canned_tomato_plus ||
 +
|-
 +
| 30 || Pickled carrot sticks || canned_food:canned_carrot_plus ||
 +
|-
 +
| 30 || Pickles || canned_food:canned_cucumber_plus ||
 +
|-
 +
| 21 || A jar of honey || canned_food:honey_jar ||
 +
|-
 +
| 20 || Meat Block || mobs:meatblock ||
 +
|-
 +
| 20 || Raw Meat Block || mobs:meatblock_raw ||
 +
|-
 +
| 20 || Super Apple || maptools:superapple || Not obtainable (/giveme only)
 +
|-
 +
| 16 || Burger || farming:burger ||
 +
|-
 +
| 15 || Canned carrots || canned_food:canned_carrot ||
 +
|-
 +
| 15 || Canned cucumbers || canned_food:canned_cucumber ||
 +
|-
 +
| 15 || Canned tomatoes || canned_food:canned_tomato ||
 +
|-
 +
| 15 || Wild blueberry jam || canned_food:wild_blueberry_jam ||
 +
|-
 +
| 14 || Pickled chili pepper || canned_food:canned_chili_pepper_plus ||
 +
|-
 +
| 12 || Mexican pickled potatoes || canned_food:canned_potato_plus ||
 +
|-
 +
| 12 || Pickled beetroot || canned_food:canned_beetroot_plus ||
 +
|-
 +
| 12 || Salted mushrooms || canned_food:canned_mushrooms_plus ||
 +
|-
 +
| 11 || Canned corn || canned_food:canned_corn ||
 +
|-
 +
| 11 || Grape jam || canned_food:grape_jam ||
 +
|-
 +
| 10 || Canned peas || canned_food:canned_peas ||
 +
|-
 +
| 10 || Cucumber and Potato Salad || farming:potato_salad ||
 +
|-
 +
| 10 || Golden Carrot || farming:carrot_gold ||
 +
|-
 +
| 10 || Pickled garlic cloves || canned_food:canned_garlic_cloves_plus ||
 +
|-
 +
| 10 || Pickled onions || canned_food:canned_onion_plus ||
 +
|-
 +
| 8 || Bibimbap || farming:bibimbap ||
 +
|-
 +
| 8 || Blackberry jam || canned_food:blackberry_jam ||
 +
|-
 +
| 8 || Blueberry jam || canned_food:blueberry_jam ||
 +
|-
 +
| 8 || Bowl of Chili || farming:chili_bowl ||
 +
|-
 +
| 8 || Bucket of Milk || mobs:bucket_milk ||
 +
|-
 +
| 8 || Cooked Porkchop || mobs:pork_cooked ||
 +
|-
 +
| 8 || Meat || mobs:meat ||
 +
|-
 +
| 8 || Melon jam || canned_food:melon_jam ||
 +
|-
 +
| 8 || Paella || farming:paella ||
 +
|-
 +
| 8 || Pumpkin Bread || farming:pumpkin_bread ||
 +
|-
 +
| 8 || Raspberry jam || canned_food:raspberry_jam ||
 +
|-
 +
| 8 || Rhubarb jam || canned_food:rhubarb_jam ||
 +
|-
 +
| 8 || Salad || farming:salad ||
 +
|-
 +
| 8 || Spaghetti || farming:spaghetti ||
 +
|-
 +
| 8 || Spanish Potatoes || farming:spanish_potatoes ||
 +
|-
 +
| 8 || Sunflower Seed Bread || farming:sunflower_bread ||
 +
|-
 +
| 8 || Tomato Soup || farming:tomato_soup ||
 +
|-
 +
| 7 || Apple jam || canned_food:apple_jam ||
 +
|-
 +
| 7 || Canned beans || canned_food:canned_beans ||
 +
|-
 +
| 7 || Canned chili pepper || canned_food:canned_chili_pepper ||
 +
|-
 +
| 7 || Canned pumpkin puree || canned_food:canned_pumpkin ||
 +
|-
 +
| 7 || Multigrain Bread || farming:bread_multigrain ||
 +
|-
 +
| 6 || Apple Donut || farming:donut_apple ||
 +
|-
 +
| 6 || Baked Potato || farming:baked_potato ||
 +
|-
 +
| 6 || Beetroot Soup || farming:beetroot_soup ||
 +
|-
 +
| 6 || Canned beetroot || canned_food:canned_beetroot ||
 +
|-
 +
| 6 || Canned mushrooms || canned_food:canned_mushrooms ||
 +
|-
 +
| 6 || Canned pineapple rings || canned_food:canned_pineapple ||
 +
|-
 +
| 6 || Canned potatoes || canned_food:canned_potato ||
 +
|-
 +
| 6 || Chocolate Donut || farming:donut_chocolate ||
 +
|-
 +
| 6 || Cooked Chicken || mobs:chicken_cooked ||
 +
|-
 +
| 6 || Cooked Mutton || mobs:mutton_cooked ||
 +
|-
 +
| 6 || Cooked Tofu || farming:tofu_cooked ||
 +
|-
 +
| 6 || Dandelion jam || canned_food:dandelion_jam ||
 +
|-
 +
| 6 || Jaffa Cake || farming:jaffa_cake || Requires rare food to craft (Orange)
 +
|-
 +
| 6 || Mac & Cheese || farming:mac_and_cheese ||
 +
|-
 +
| 6 || Onion Soup || farming:onion_soup ||
 +
|-
 +
| 6 || Porridge || farming:porridge ||
 +
|-
 +
| 6 || Potato omelet || farming:potato_omelet ||
 +
|-
 +
| 6 || Rose petal jam || canned_food:rose_jam ||
 +
|-
 +
| 6 || Triple Berry Smoothie || farming:smoothie_berry || Requires rare food to craft (Banana)
 +
|-
 +
| 6 || Vanilla Flan || farming:flan ||
 +
|-
 +
| 5 || Bread || farming:bread ||
 +
|-
 +
| 5 || Canned garlic cloves || canned_food:canned_garlic_cloves ||
 +
|-
 +
| 5 || Canned onions || canned_food:canned_onion ||
 +
|-
 +
| 5 || Cooked Rabbit || mobs:rabbit_cooked ||
 +
|-
 +
| 5 || Corn on the Cob || farming:corn_cob ||
 +
|-
 +
| 5 || Glass of Sparkling Apple Juice || wine:glass_sparkling_apple_juice ||
 +
|-
 +
| 5 || Rice Bread || farming:rice_bread ||
 +
|-
 +
| 4 || Acorn Muffin || moretrees:acorn_muffin ||
 +
|-
 +
| 4 || Artichoke || farming:artichoke ||
 +
|-
 +
| 4 || Carrot Juice || farming:carrot_juice ||
 +
|-
 +
| 4 || Carrot || farming:carrot ||
 +
|-
 +
| 4 || Cheese || mobs:cheese ||
 +
|-
 +
| 4 || Cucumber || farming:cucumber ||
 +
|-
 +
| 4 || Date & nut snack || moretrees:date_nut_snack ||
 +
|-
 +
| 4 || Date-nut energy bar || moretrees:date_nut_bar ||
 +
|-
 +
| 4 || Donut || farming:donut ||
 +
|-
 +
| 4 || Glass of Champagne || wine:glass_champagne ||
 +
|-
 +
| 4 || Glass of Honey-Mead || wine:glass_mead ||
 +
|-
 +
| 4 || Glass of Kefir || wine:glass_kefir ||
 +
|-
 +
| 4 || Glass of Margarita || wine:glass_margarita ||
 +
|-
 +
| 4 || Glass of Mint Julep || wine:glass_mint ||
 +
|-
 +
| 4 || Glass of Sparkling Agave Juice || wine:glass_sparkling_agave_juice ||
 +
|-
 +
| 4 || Glass of Sparkling Blackberry Juice || wine:glass_sparkling_blackberry_juice ||
 +
|-
 +
| 4 || Glass of Sparkling Carrot Juice || wine:glass_sparkling_carrot_juice ||
 +
|-
 +
| 4 || Gyoza || farming:gyoza ||
 +
|-
 +
| 4 || Honey || mobs:honey ||
 +
|-
 +
| 4 || Orange || ethereal:orange || Rare food (obtainable from dungeons and Christmas presents)
 +
|-
 +
| 4 || Pea Soup || farming:pea_soup ||
 +
|-
 +
| 4 || Pineapple Juice || farming:pineapple_juice ||
 +
|-
 +
| 4 || Popcorn || farming:popcorn ||
 +
|-
 +
| 4 || Raw Coconut || moretrees:raw_coconut ||
 +
|-
 +
| 4 || Raw Porkchop || mobs:pork_raw ||
 +
|-
 +
| 4 || Red Pepper || farming:pepper_red ||
 +
|-
 +
| 4 || Toast Sandwich || farming:toast_sandwich ||
 +
|-
 +
| 4 || Tomato || farming:tomato ||
 +
|-
 +
| 3 || Bar of Dark Chocolate || farming:chocolate_dark ||
 +
|-
 +
| 3 || Cooked Rat || mobs:rat_cooked ||
 +
|-
 +
| 3 || Corn || farming:corn ||
 +
|-
 +
| 3 || Eggplant || farming:eggplant ||
 +
|-
 +
| 3 || Glass of Brandy || wine:glass_brandy ||
 +
|-
 +
| 3 || Glass of Coffee Liquor || wine:glass_coffee_liquor ||
 +
|-
 +
| 3 || Mayonnaise || farming:mayonnaise ||
 +
|-
 +
| 3 || Mochi || farming:mochi ||
 +
|-
 +
| 3 || Raw Meat || mobs:meat_raw ||
 +
|-
 +
| 3 || Raw Rabbit || mobs:rabbit_raw ||
 +
|-
 +
| 3 || Tofu || farming:tofu ||
 +
|-
 +
| 3 || Yellow Pepper || farming:pepper_yellow ||
 +
|-
 +
| 3 || water bottle || home_vending_machines:water_bottle ||
 +
|-
 +
| 2 || Apple || default:apple ||
 +
|-
 +
| 2 || Bamboo Sprout || bamboo:sprout ||
 +
|-
 +
| 2 || Banana || ethereal:banana || Rare food (obtainable from Christmas presents)
 +
|-
 +
| 2 || Beer Mug || home_workshop_misc:beer_mug ||
 +
|-
 +
| 2 || Blue Agave || wine:blue_agave ||
 +
|-
 +
| 2 || Blueberry Muffin || farming:muffin_blueberry ||
 +
|-
 +
| 2 || Cactus Juice || farming:cactus_juice || 4/5 chance (1/5 chance to poison)
 +
|-
 +
| 2 || Cherries || cherrytree:cherries ||
 +
|-
 +
| 2 || Chili Pepper || farming:chili_pepper ||
 +
|-
 +
| 2 || Coconut Milk || moretrees:coconut_milk ||
 +
|-
 +
| 2 || Cookie || farming:cookie ||
 +
|-
 +
| 2 || Cup of Coffee || farming:coffee_cup ||
 +
|-
 +
| 2 || Fried Egg || mobs:chicken_egg_fried ||
 +
|-
 +
| 2 || Garlic Bread || farming:garlic_bread ||
 +
|-
 +
| 2 || Gingerbread Man || farming:gingerbread_man ||
 +
|-
 +
| 2 || Glass of Beer || wine:glass_beer ||
 +
|-
 +
| 2 || Glass of Bourbon || wine:glass_bourbon ||
 +
|-
 +
| 2 || Glass of Cider || wine:glass_cider ||
 +
|-
 +
| 2 || Glass of Cointreau || wine:glass_cointreau ||
 +
|-
 +
| 2 || Glass of Milk || mobs:glass_milk ||
 +
|-
 +
| 2 || Glass of Rum || wine:glass_rum ||
 +
|-
 +
| 2 || Glass of Sake || wine:glass_sake ||
 +
|-
 +
| 2 || Glass of Tequila || wine:glass_tequila ||
 +
|-
 +
| 2 || Glass of Vodka || wine:glass_vodka ||
 +
|-
 +
| 2 || Glass of Wheat Beer || wine:glass_wheat_beer ||
 +
|-
 +
| 2 || Glass of Wine || wine:glass_wine ||
 +
|-
 +
| 2 || Grapes || farming:grapes ||
 +
|-
 +
| 2 || Green Pepper || farming:pepper ||
 +
|-
 +
| 2 || Lettuce || farming:lettuce ||
 +
|-
 +
| 2 || Melon Slice || farming:melon_slice ||
 +
|-
 +
| 2 || Mint Tea || farming:mint_tea ||
 +
|-
 +
| 2 || Onigiri || farming:onigiri ||
 +
|-
 +
| 2 || Pumpkin Slice || farming:pumpkin_slice ||
 +
|-
 +
| 2 || Raspberry Smoothie || farming:smoothie_raspberry ||
 +
|-
 +
| 2 || Raw Chicken || mobs:chicken_raw ||
 +
|-
 +
| 2 || Raw Mutton || mobs:mutton_raw ||
 +
|-
 +
| 2 || Soy Milk || farming:soy_milk ||
 +
|-
 +
| 2 || Turkish Delight || farming:turkish_delight ||
 +
|-
 +
| 2 || Vegan Cheese || farming:cheese_vegan ||
 +
|-
 +
| 2 || Wild Blueberries || default:blueberries || Not to be confused with `farming:blueberries`
 +
|-
 +
| 2 || Soda Can || home_vending_machines:soda_can ||
 +
|-
 +
| 1 || Apple Pie || farming:apple_pie ||
 +
|-
 +
| 1 || Asparagus || farming:asparagus ||
 +
|-
 +
| 1 || Beetroot || farming:beetroot ||
 +
|-
 +
| 1 || Blackberries || farming:blackberry ||
 +
|-
 +
| 1 || Blueberries || farming:blueberries || Not to be confused with `default:blueberries`
 +
|-
 +
| 1 || Blueberry Pie || farming:blueberry_pie ||
 +
|-
 +
| 1 || Brown Mushroom || flowers:mushroom_brown ||
 +
|-
 +
| 1 || Butter || mobs:butter ||
 +
|-
 +
| 1 || Cabbage || farming:cabbage ||
 +
|-
 +
| 1 || Date || moretrees:date ||
 +
|-
 +
| 1 || Garlic || farming:garlic ||
 +
|-
 +
| 1 || Ginger || farming:ginger ||
 +
|-
 +
| 1 || Green Beans || farming:beans ||
 +
|-
 +
| 1 || Onion || farming:onion ||
 +
|-
 +
| 1 || Pea Pod || farming:pea_pod ||
 +
|-
 +
| 1 || Peas || farming:peas ||
 +
|-
 +
| 1 || Pineapple Ring || farming:pineapple_ring ||
 +
|-
 +
| 1 || Potato || farming:potato || 2/3 chance (1/3 chance to poison)
 +
|-
 +
| 1 || Raspberries || farming:raspberries ||
 +
|-
 +
| 1 || Rhubarb Pie || farming:rhubarb_pie ||
 +
|-
 +
| 1 || Rhubarb || farming:rhubarb ||
 +
|-
 +
| 1 || Roasted Cedar Cone Nuts || moretrees:cedar_nuts ||
 +
|-
 +
| 1 || Roasted Fir Cone Nuts || moretrees:fir_nuts ||
 +
|-
 +
| 1 || Roasted Spruce Cone Nuts || moretrees:spruce_nuts ||
 +
|-
 +
| 1 || Sliced Bread || farming:bread_slice ||
 +
|-
 +
| 1 || Spinach || farming:spinach ||
 +
|-
 +
| 1 || Strawberry || ethereal:strawberry ||
 +
|-
 +
| 1 || Toast || farming:toast ||
 +
|-
 +
| 1 || Toasted Sunflower Seeds || farming:sunflower_seeds_toasted ||
 +
|-
 +
| 1 || Vanilla || farming:vanilla ||
 +
|-
 +
| -1 || Cactus Juice || farming:cactus_juice || 1/5 chance (4/5 chance to not poison)
 +
|-
 +
| -1 || Chili Powder || farming:chili_powder ||
 +
|-
 +
| -1 || Potato || farming:potato || 1/3 chance (2/3 chance to not poison)
 +
|-
 +
| -2 || Soy Beans || farming:soy_beans ||
 +
|-
 +
| -5 || Red Mushroom || flowers:mushroom_red ||
 +
|-
 +
|}
  
  21 - A Jar of Honey
+
=== How this list was created ===
  
  20 - Meat Block
+
The information in the above list was gathered by adding a testing tool using the code below.
  20 - (Pickled Wild Onions)
+
The testing tool was then used in a world containing every mod that is used on Pandorabox, including the default mods in Minetest Game.
  20 - [Super Apple] (mapgen item)
 
  
  16 - Burger
+
For Cactus Juice and Potato, the data was extracted from the mod code manually.
  
  15 - Canned Carrots
+
<syntaxhighlight lang="Lua">
  15 - Canned Cucumbers
+
local test_item = ":nutrition:tester"
  15 - Canned Tomatoes
+
minetest.register_craftitem(test_item, {
  15 - Wild Blueberry Jam
+
description = "Food Nutrition Test Tool",
 
+
inventory_image = "default_stick.png^multiply[#8888FFFF",
  14 - Pickled Chili Pepper
+
on_use = function(itemstack, user, pointed_thing)
 
+
local additional_info = {
  12 - Mexican Pickled Potatoes
+
["maptools:superapple"] = " Not obtainable (/giveme only)",
  12 - Pickled Beetroot
+
["farming:jaffa_cake"] = " Requires rare food to craft (Orange)",
  12 - Salted Mushrooms
+
["farming:smoothie_berry"] = " Requires rare food to craft (Banana)",
 
+
["ethereal:orange"] = " Rare food (obtainable from dungeons and Christmas presents)",
  11 - Canned Corn
+
["ethereal:banana"] = " Rare food (obtainable from Christmas presents)",
  11 - Grape Jam
+
["default:blueberries"] = " Not to be confused with `farming:blueberries`",
 
+
["farming:blueberries"] = " Not to be confused with `default:blueberries`",
  10 - (A Jar of Pine Nuts)
+
}
  10 - Canned Peas
+
local chance_dependant = {
  10 - (Canned Wild Onions)
+
["farming:cactus_juice"] = true,
  10 - Cucumber and Potato Salad
+
["farming:potato"] = true,
  10 - Golden Carrot
+
}
  10 - Pickled Garlic Cloves
+
local items = {
  10 - Pickled Onions
+
"| -1 || Cactus Juice || farming:cactus_juice || 1/5 chance (4/5 chance to not poison)\n|-",
 
+
"| 2 || Cactus Juice || farming:cactus_juice || 4/5 chance (1/5 chance to poison)\n|-",
  8 - Bibimbap
+
"| -1 || Potato || farming:potato || 1/3 chance (2/3 chance to not poison)\n|-",
  8 - Blackberry Jam
+
"| 1 || Potato || farming:potato || 2/3 chance (1/3 chance to poison)\n|-",
  8 - Blueberry Jam
+
}
  8 - Bowl of Chili
+
-- Override do_item_eat function
  8 - Bucket of Milk
+
local old_do_eat = minetest.do_item_eat
  8 - Cooked Porkchop
+
minetest.do_item_eat = function(hp_change, replace_with_item, itemstack, player, pointed_thing)
  8 - Meat
+
local item = itemstack:get_name()
  8 - Melon Jam
+
local desc = minetest.registered_items[item].description or ""
  8 - (Orange Jam)
+
local info = additional_info[item] or ""
  8 - Pumpkin Bread
+
if not chance_dependant[item] then
  8 - Raspberry Jam
+
if desc ~= "" then
  8 - Rhubarb Jam
+
desc = minetest.get_translated_string("", desc) .. " "
  8 - Salad
+
end
  8 - Spaghetti
+
items[#items+1] = "| " .. hp_change .. " || " .. desc .. "|| "
 
+
.. item .. " ||" .. info .. "\n|-"
  7 - Apple Jam
+
end
  7 - (Banana Jam)
+
end
  7 - Canned Beans
+
-- Run on_use callback for all registered items
  7 - Canned Chili Pepper
+
for k,v in pairs(minetest.registered_items) do
  7 - Canned Pumpkin Puree
+
if k ~= test_item and type(v.on_use) == "function" then
  7 - Multigrain Bread
+
v.on_use(ItemStack(k), user, pointed_thing)
  7 - (Strawberry jam)
+
end
 
+
end
  6 - Apple Donut
+
-- Sort items by nutrition value, then by name
  6 - Apple Pie
+
table.sort(items, function(a, b)
  6 - Baked Potato
+
local na = tonumber(a:split(" ")[2])
  6 - Beetroot Soup
+
local nb = tonumber(b:split(" ")[2])
  6 - Blueberry Pie
+
if na ~= nb then
  6 - Canned Beetroot
+
return nb < na
  6 - (Canned Coconut)
+
end
  6 - Canned Mushrooms
+
return a < b
  6 - Canned Pineapple Rings
+
end)
  6 - Canned Potatoes
+
-- Output results
  6 - Chocolate Donut
+
for _,v in ipairs(items) do
  6 - Cooked Chicken
+
print(v)
  6 - Cooked Mutton
+
end
  6 - Cooked Tofu
+
-- Undo override
  6 - Dandelion Jam
+
minetest.do_item_eat = old_do_eat
  6 - Jaffa Cake
+
end
  6 - Onion Soup
+
})
  6 - Porridge
 
  6 - Rhubarb Pie
 
  6 - Rose Petal Jam
 
  6 - Triple Berry Smoothie
 
 
 
  5 - Bread
 
  5 - Canned Garlic Cloves
 
  5 - Canned Onions
 
  5 - Cooked Rabbit
 
  5 - Corn on the Cob
 
  5 - Rice Bread
 
 
 
  4 - Acorn Muffin
 
  4 - Carrot
 
  4 - Carrot Juice
 
  4 - Cheese
 
  4 - Cucumber
 
  4 - Date & Nut Snack
 
  4 - Date-Nut Energy Bar
 
  4 - Donut
 
  4 - Glass of Champagne
 
  4 - Glass of Honey-Mead
 
  4 - Glass of Mint Julep
 
  4 - Honey
 
  4 - Orange
 
  4 - Pea Soup
 
  4 - (Persimmon)
 
  4 - Pineapple Juice
 
  4 - Raw Coconut
 
  4 - Raw Porkchop
 
  4 - Red Pepper
 
  4 - Toast Sandwich
 
  4 - Tomato
 
 
 
  3 - Bar of Dark Chocolate
 
  3 - Cooked Rat
 
  3 - Corn
 
  3 - Glass of Brandy
 
  3 - Glass of Coffee Liquor
 
  3 - (Pomegranate Section)
 
  3 - Raw Meat
 
  3 - Raw Rabbit
 
  3 - Tofu
 
  3 - Yellow Pepper
 
 
 
  2 - Acorn
 
  2 - Apple
 
  2 - Bamboo Sprout
 
  2 - Banana
 
  2 - Beer Mug
 
  2 - Blue Agave
 
  2 - Blueberries [farming]
 
  2 - Blueberry Muffin
 
  2 - Cactus Juice (4/5 chance)
 
  2 - Cherries
 
  2 - (Chestnut)
 
  2 - (Chestnut Bur)
 
  2 - Chili Pepper
 
  2 - (Clementine)
 
  2 - Coconut Milk
 
  2 - Cookie
 
  2 - Cup of Coffee
 
  2 - Fried Egg
 
  2 - Garlic Bread
 
  2 - Glass of Beer
 
  2 - Glass of Bourbon
 
  2 - Glass of Cider
 
  2 - Glass of Milk
 
  2 - Glass of Rum
 
  2 - Glass of Sake
 
  2 - Glass of Tequila
 
  2 - Glass of Vodka
 
  2 - Glass of Wheat Beer
 
  2 - Glass of Wine
 
  2 - Grapes
 
  2 - Green Pepper
 
  2 - (Lemon)
 
  2 - Lettuce
 
  2 - Melon Slice
 
  2 - Mint Tea
 
  2 - (Pomegranate)
 
  2 - Pumpkin Slice
 
  2 - Raspberry Smoothie
 
  2 - Raw Chicken
 
  2 - Raw Mutton
 
  2 - Soda Can
 
  2 - Soy Milk
 
  2 - Turkish Delight
 
 
 
  1 - Beetroot
 
  1 - Blackberries
 
  1 - Brown Mushroom
 
  1 - Butter
 
  1 - Cabbage
 
  1 - (Coconut Slice)
 
  1 - Date
 
  1 - Garlic
 
  1 - Green Beans
 
  1 - Onion
 
  1 - Peas
 
  1 - Pineapple Ring
 
  1 - Potato (2/3 chance)
 
  1 - Raspberries
 
  1 - Rhubarb
 
  1 - Roasted Cedar Cone Nuts
 
  1 - Roasted Fir Cone Nuts
 
  1 - Roasted Spruce Cone Nuts
 
  1 - Sliced Bread
 
  1 - Soy Beans
 
  1 - Strawberry
 
  1 - Toast
 
  1 - Vanilla
 
  1 - Wild Blueberries [default]
 
 
 
These may seem edible but aren't without processing
 
  0 - Bottle of Hemp Oil
 
  0 - Cactus
 
  0 - Chocolate Block
 
  0 - Cocoa Beans
 
  0 - Garlic Clove
 
  0 - Pea Pod
 
  0 - Pineapple
 
  0 - Rat
 
  0 - Rose Water
 
  0 - Salt
 
  0 - Soy Pod
 
  0 - Sugar
 
 
 
These aren't healthy, at least not all the time.
 
  -1 - Cactus Juice (1/5 chance of poisoned)
 
  -1 - Potato (1/3 chance of poisoned)
 
 
 
  -5 - Red Mushroom
 
 
</syntaxhighlight>
 
</syntaxhighlight>
 
This list was compiled by running ``find . -name "*.lua" | xargs grep -i "item_eat("`` on the meta repo and on default game, mods folder.
 
Then the data was extracted manually. For [wine] and [canned_food] the provided tables were used to output formatted list of their items.
 
If you find the time to write an automated way, please post your solution here.
 
  
 
[[Category:Farming]]
 
[[Category:Farming]]

Latest revision as of 08:38, 6 February 2024

About nutrition and stamina

Nutrition refers to how much a food can feed or poison a player, and stamina refers to the value stored in the player, as displayed on the HUD. These terms can also be known as hunger points, food points, stamina points, hunger, or bread.

A positive nutrition value feeds the player, while a negative value poisons the player. The maximum usable nutrition is 20, and the minimum is -20 (poison), anything outside of this range is wasted (for example, Date-nut cake will only give a maximum of 20 stamina, even though it has 32 nutrition).

The stamina HUD (row of bread icons) displays 20 half-loaves of bread (10 full loafs). To calculate how many bread icons are filled up on the HUD when eating an item, divide the nutrition by 2.

Full list of foods

Nutrition Name Itemstring Comment
32 Date-nut cake moretrees:date_nut_cake
30 Marinated tomatoes canned_food:canned_tomato_plus
30 Pickled carrot sticks canned_food:canned_carrot_plus
30 Pickles canned_food:canned_cucumber_plus
21 A jar of honey canned_food:honey_jar
20 Meat Block mobs:meatblock
20 Raw Meat Block mobs:meatblock_raw
20 Super Apple maptools:superapple Not obtainable (/giveme only)
16 Burger farming:burger
15 Canned carrots canned_food:canned_carrot
15 Canned cucumbers canned_food:canned_cucumber
15 Canned tomatoes canned_food:canned_tomato
15 Wild blueberry jam canned_food:wild_blueberry_jam
14 Pickled chili pepper canned_food:canned_chili_pepper_plus
12 Mexican pickled potatoes canned_food:canned_potato_plus
12 Pickled beetroot canned_food:canned_beetroot_plus
12 Salted mushrooms canned_food:canned_mushrooms_plus
11 Canned corn canned_food:canned_corn
11 Grape jam canned_food:grape_jam
10 Canned peas canned_food:canned_peas
10 Cucumber and Potato Salad farming:potato_salad
10 Golden Carrot farming:carrot_gold
10 Pickled garlic cloves canned_food:canned_garlic_cloves_plus
10 Pickled onions canned_food:canned_onion_plus
8 Bibimbap farming:bibimbap
8 Blackberry jam canned_food:blackberry_jam
8 Blueberry jam canned_food:blueberry_jam
8 Bowl of Chili farming:chili_bowl
8 Bucket of Milk mobs:bucket_milk
8 Cooked Porkchop mobs:pork_cooked
8 Meat mobs:meat
8 Melon jam canned_food:melon_jam
8 Paella farming:paella
8 Pumpkin Bread farming:pumpkin_bread
8 Raspberry jam canned_food:raspberry_jam
8 Rhubarb jam canned_food:rhubarb_jam
8 Salad farming:salad
8 Spaghetti farming:spaghetti
8 Spanish Potatoes farming:spanish_potatoes
8 Sunflower Seed Bread farming:sunflower_bread
8 Tomato Soup farming:tomato_soup
7 Apple jam canned_food:apple_jam
7 Canned beans canned_food:canned_beans
7 Canned chili pepper canned_food:canned_chili_pepper
7 Canned pumpkin puree canned_food:canned_pumpkin
7 Multigrain Bread farming:bread_multigrain
6 Apple Donut farming:donut_apple
6 Baked Potato farming:baked_potato
6 Beetroot Soup farming:beetroot_soup
6 Canned beetroot canned_food:canned_beetroot
6 Canned mushrooms canned_food:canned_mushrooms
6 Canned pineapple rings canned_food:canned_pineapple
6 Canned potatoes canned_food:canned_potato
6 Chocolate Donut farming:donut_chocolate
6 Cooked Chicken mobs:chicken_cooked
6 Cooked Mutton mobs:mutton_cooked
6 Cooked Tofu farming:tofu_cooked
6 Dandelion jam canned_food:dandelion_jam
6 Jaffa Cake farming:jaffa_cake Requires rare food to craft (Orange)
6 Mac & Cheese farming:mac_and_cheese
6 Onion Soup farming:onion_soup
6 Porridge farming:porridge
6 Potato omelet farming:potato_omelet
6 Rose petal jam canned_food:rose_jam
6 Triple Berry Smoothie farming:smoothie_berry Requires rare food to craft (Banana)
6 Vanilla Flan farming:flan
5 Bread farming:bread
5 Canned garlic cloves canned_food:canned_garlic_cloves
5 Canned onions canned_food:canned_onion
5 Cooked Rabbit mobs:rabbit_cooked
5 Corn on the Cob farming:corn_cob
5 Glass of Sparkling Apple Juice wine:glass_sparkling_apple_juice
5 Rice Bread farming:rice_bread
4 Acorn Muffin moretrees:acorn_muffin
4 Artichoke farming:artichoke
4 Carrot Juice farming:carrot_juice
4 Carrot farming:carrot
4 Cheese mobs:cheese
4 Cucumber farming:cucumber
4 Date & nut snack moretrees:date_nut_snack
4 Date-nut energy bar moretrees:date_nut_bar
4 Donut farming:donut
4 Glass of Champagne wine:glass_champagne
4 Glass of Honey-Mead wine:glass_mead
4 Glass of Kefir wine:glass_kefir
4 Glass of Margarita wine:glass_margarita
4 Glass of Mint Julep wine:glass_mint
4 Glass of Sparkling Agave Juice wine:glass_sparkling_agave_juice
4 Glass of Sparkling Blackberry Juice wine:glass_sparkling_blackberry_juice
4 Glass of Sparkling Carrot Juice wine:glass_sparkling_carrot_juice
4 Gyoza farming:gyoza
4 Honey mobs:honey
4 Orange ethereal:orange Rare food (obtainable from dungeons and Christmas presents)
4 Pea Soup farming:pea_soup
4 Pineapple Juice farming:pineapple_juice
4 Popcorn farming:popcorn
4 Raw Coconut moretrees:raw_coconut
4 Raw Porkchop mobs:pork_raw
4 Red Pepper farming:pepper_red
4 Toast Sandwich farming:toast_sandwich
4 Tomato farming:tomato
3 Bar of Dark Chocolate farming:chocolate_dark
3 Cooked Rat mobs:rat_cooked
3 Corn farming:corn
3 Eggplant farming:eggplant
3 Glass of Brandy wine:glass_brandy
3 Glass of Coffee Liquor wine:glass_coffee_liquor
3 Mayonnaise farming:mayonnaise
3 Mochi farming:mochi
3 Raw Meat mobs:meat_raw
3 Raw Rabbit mobs:rabbit_raw
3 Tofu farming:tofu
3 Yellow Pepper farming:pepper_yellow
3 water bottle home_vending_machines:water_bottle
2 Apple default:apple
2 Bamboo Sprout bamboo:sprout
2 Banana ethereal:banana Rare food (obtainable from Christmas presents)
2 Beer Mug home_workshop_misc:beer_mug
2 Blue Agave wine:blue_agave
2 Blueberry Muffin farming:muffin_blueberry
2 Cactus Juice farming:cactus_juice 4/5 chance (1/5 chance to poison)
2 Cherries cherrytree:cherries
2 Chili Pepper farming:chili_pepper
2 Coconut Milk moretrees:coconut_milk
2 Cookie farming:cookie
2 Cup of Coffee farming:coffee_cup
2 Fried Egg mobs:chicken_egg_fried
2 Garlic Bread farming:garlic_bread
2 Gingerbread Man farming:gingerbread_man
2 Glass of Beer wine:glass_beer
2 Glass of Bourbon wine:glass_bourbon
2 Glass of Cider wine:glass_cider
2 Glass of Cointreau wine:glass_cointreau
2 Glass of Milk mobs:glass_milk
2 Glass of Rum wine:glass_rum
2 Glass of Sake wine:glass_sake
2 Glass of Tequila wine:glass_tequila
2 Glass of Vodka wine:glass_vodka
2 Glass of Wheat Beer wine:glass_wheat_beer
2 Glass of Wine wine:glass_wine
2 Grapes farming:grapes
2 Green Pepper farming:pepper
2 Lettuce farming:lettuce
2 Melon Slice farming:melon_slice
2 Mint Tea farming:mint_tea
2 Onigiri farming:onigiri
2 Pumpkin Slice farming:pumpkin_slice
2 Raspberry Smoothie farming:smoothie_raspberry
2 Raw Chicken mobs:chicken_raw
2 Raw Mutton mobs:mutton_raw
2 Soy Milk farming:soy_milk
2 Turkish Delight farming:turkish_delight
2 Vegan Cheese farming:cheese_vegan
2 Wild Blueberries default:blueberries Not to be confused with `farming:blueberries`
2 Soda Can home_vending_machines:soda_can
1 Apple Pie farming:apple_pie
1 Asparagus farming:asparagus
1 Beetroot farming:beetroot
1 Blackberries farming:blackberry
1 Blueberries farming:blueberries Not to be confused with `default:blueberries`
1 Blueberry Pie farming:blueberry_pie
1 Brown Mushroom flowers:mushroom_brown
1 Butter mobs:butter
1 Cabbage farming:cabbage
1 Date moretrees:date
1 Garlic farming:garlic
1 Ginger farming:ginger
1 Green Beans farming:beans
1 Onion farming:onion
1 Pea Pod farming:pea_pod
1 Peas farming:peas
1 Pineapple Ring farming:pineapple_ring
1 Potato farming:potato 2/3 chance (1/3 chance to poison)
1 Raspberries farming:raspberries
1 Rhubarb Pie farming:rhubarb_pie
1 Rhubarb farming:rhubarb
1 Roasted Cedar Cone Nuts moretrees:cedar_nuts
1 Roasted Fir Cone Nuts moretrees:fir_nuts
1 Roasted Spruce Cone Nuts moretrees:spruce_nuts
1 Sliced Bread farming:bread_slice
1 Spinach farming:spinach
1 Strawberry ethereal:strawberry
1 Toast farming:toast
1 Toasted Sunflower Seeds farming:sunflower_seeds_toasted
1 Vanilla farming:vanilla
-1 Cactus Juice farming:cactus_juice 1/5 chance (4/5 chance to not poison)
-1 Chili Powder farming:chili_powder
-1 Potato farming:potato 1/3 chance (2/3 chance to not poison)
-2 Soy Beans farming:soy_beans
-5 Red Mushroom flowers:mushroom_red

How this list was created

The information in the above list was gathered by adding a testing tool using the code below. The testing tool was then used in a world containing every mod that is used on Pandorabox, including the default mods in Minetest Game.

For Cactus Juice and Potato, the data was extracted from the mod code manually.

local test_item = ":nutrition:tester"
minetest.register_craftitem(test_item, {
	description = "Food Nutrition Test Tool",
	inventory_image = "default_stick.png^multiply[#8888FFFF",
	on_use = function(itemstack, user, pointed_thing)
		local additional_info = {
			["maptools:superapple"] = " Not obtainable (/giveme only)",
			["farming:jaffa_cake"] = " Requires rare food to craft (Orange)",
			["farming:smoothie_berry"] = " Requires rare food to craft (Banana)",
			["ethereal:orange"] = " Rare food (obtainable from dungeons and Christmas presents)",
			["ethereal:banana"] = " Rare food (obtainable from Christmas presents)",
			["default:blueberries"] = " Not to be confused with `farming:blueberries`",
			["farming:blueberries"] = " Not to be confused with `default:blueberries`",
		}
		local chance_dependant = {
			["farming:cactus_juice"] = true,
			["farming:potato"] = true,
		}
		local items = {
			"| -1 || Cactus Juice || farming:cactus_juice || 1/5 chance (4/5 chance to not poison)\n|-",
			"| 2 || Cactus Juice || farming:cactus_juice || 4/5 chance (1/5 chance to poison)\n|-",
			"| -1 || Potato || farming:potato || 1/3 chance (2/3 chance to not poison)\n|-",
			"| 1 || Potato || farming:potato || 2/3 chance (1/3 chance to poison)\n|-",
		}
		-- Override do_item_eat function
		local old_do_eat = minetest.do_item_eat
		minetest.do_item_eat = function(hp_change, replace_with_item, itemstack, player, pointed_thing)
			local item = itemstack:get_name()
			local desc = minetest.registered_items[item].description or ""
			local info = additional_info[item] or ""
			if not chance_dependant[item] then
				if desc ~= "" then
					desc = minetest.get_translated_string("", desc) .. " "
				end
				items[#items+1] = "| " .. hp_change .. " || " .. desc .. "|| "
								.. item .. " ||" .. info .. "\n|-"
			end
		end
		-- Run on_use callback for all registered items
		for k,v in pairs(minetest.registered_items) do
			if k ~= test_item and type(v.on_use) == "function" then
				v.on_use(ItemStack(k), user, pointed_thing)
			end
		end
		-- Sort items by nutrition value, then by name
		table.sort(items, function(a, b)
			local na = tonumber(a:split(" ")[2])
			local nb = tonumber(b:split(" ")[2])
			if na ~= nb then
				return nb < na
			end
			return a < b
		end)
		-- Output results
		for _,v in ipairs(items) do
			print(v)
		end
		-- Undo override
		minetest.do_item_eat = old_do_eat
	end
})