Peanut Butter: Difference between revisions

From PZwiki
(→‎top: New infobox upgrade - Food)
(→‎Code: CodeBox update)
Line 37: Line 37:


==Code==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41.73}}
| {{CodeSnip
<pre>
  | lang = java
item PeanutButter
  | line = false
{
  | source = items_food.txt
DisplayName = Peanut Butter,
  | retrieved = true
DisplayCategory = Food,
  | version = 41
Type = Food,
  | incver = 73
Weight = 0.3,
  | code =
Icon = PeanutButter,
item PeanutButter
EvolvedRecipe = Soup:5;Stir fry Griddle Pan:5;Stir fry:5;Sandwich:5;Sandwich Baguette:5;Toast:5;ConeIcecream:5,
{
FoodType = NoExplicit,
    DisplayName         = Peanut Butter,
Packaged = TRUE,
    DisplayCategory     = Food,
HungerChange = -25,
    Type               = Food,
UnhappyChange = -15,
    Weight             = 0.3,
Calories = 2660,
    Icon               = PeanutButter,
Carbohydrates = 128,
    EvolvedRecipe       = Soup:5;Stir fry Griddle Pan:5;Stir fry:5;Sandwich:5;Sandwich Baguette:5;Toast:5;ConeIcecream:5,
Lipids = 224,
    FoodType           = NoExplicit,
Proteins = 84,
    Packaged           = TRUE,
WorldStaticModel = PeanutButter,
    HungerChange       = -25,
}
    UnhappyChange       = -15,
</pre>
    Calories           = 2660,
    Carbohydrates       = 128,
    Lipids             = 224,
    Proteins           = 84,
    WorldStaticModel   = PeanutButter,
}
  }}
}}


==See also==
==See also==

Revision as of 10:19, 31 January 2024

Template:Header/sandbox2

Spiffo controlyourself.png
This page was last updated for an older version (41.73).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Peanut Butter
PeanutButter Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.3
Properties
Packaged
Yes
Nutrition
HungerMoodle Icon Hungry.png
-25
CaloriesCalories
2660
CarbohydratesCarbohydrates
128
ProteinsProteins
84
FatFat
224
Effect
UnhappinessMoodle Icon Unhappy.png
-15
Technical
Item ID
Base.PeanutButter

Peanut butter is a non-perishable food item.

Usage

Peanut butter can be eaten, providing the player with some positive effects. As it is non-perishable, peanut butter will never go stale or rotten.

Crafting

Main article: Cooking

Evolved recipes

Peanut butter is a cooking ingredient.

Product Nutrition
Soup
Soup
5
Stir Fry
Stir Fry
5
Sandwich
Sandwich
5
Ice Cream Cone
Ice Cream Cone
5
Toast
Toast
5

Distribution

Peanut butter can be found in kitchen counters.

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.73
item PeanutButter
{
    DisplayName         = Peanut Butter,
    DisplayCategory     = Food,
    Type                = Food,
    Weight              = 0.3,
    Icon                = PeanutButter,
    EvolvedRecipe       = Soup:5;Stir fry Griddle Pan:5;Stir fry:5;Sandwich:5;Sandwich Baguette:5;Toast:5;ConeIcecream:5,
    FoodType            = NoExplicit,
    Packaged            = TRUE,
    HungerChange        = -25,
    UnhappyChange       = -15,
    Calories            = 2660,
    Carbohydrates       = 128,
    Lipids              = 224,
    Proteins            = 84,
    WorldStaticModel    = PeanutButter,
}

See also