Peanut Butter: Difference between revisions

From PZwiki
(updated to 41.68 + added model + navbox)
(Update distribution file)
 
(30 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Food|Miscellaneous food}}
{{header|Project Zomboid|Items|Food|Non-Perishable Food|type=Food|version=Version 41|incver=68}}{{Infobox food
{{Page version|41.78.16}}
|display_name=Peanut Butter
{{Infobox item
|name_colour=Food
|name=Peanut Butter
|name_text_colour=Food
|model=PeanutButter_Model.png
|image=PeanutButter_Model.png
|icon=PeanutButter.png
|image_width=250px
|icon_name=Peanut Butter
|alternate_image=PeanutButter.png
|alternate_name=Peanut Butter
|alternate_link=
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
|weight=0.3
|weight=0.3
|packaged=True
|packaged=Yes
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-25
|hunger_change=-25
Line 22: Line 19:
|unhappy_change=-15
|unhappy_change=-15
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.PeanutButter
|item_id=Base.PeanutButter
}}'''Peanut butter''' is a [[Food#Non-Perishable|non-perishable]] food [[item]].  
}}
'''Peanut butter''' is a non-perishable [[food]] [[Items|item]].


==Usage==
==Usage==
Peanut butter can be eaten, providing the player with some positive effects; however it is more effective when used in making a [[sandwich]]. As it is non-perishable, peanut butter will never go stale or rotten.
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.
===Trapping===
{{Main|Trapping}}
Oranges can be used as bait in [[Trapping|traps]] to capture [[Dead_Mouse|mice]], [[Dead_Rat|rats]], and [[Dead_Squirrel|squirrels]].


== Crafting ==
==Crafting==
=== Evolved recipes ===
{{Main|Cooking}}
Peanut butter is a [[cooking]] [[Recipe Ingredients|ingredient]].
 
{{EvolvedRecipesForItem|sandwich=7}}
===Evolved recipes===
Peanut butter is a [[cooking]] [[Recipe ingredients|ingredient]].
{{EvolvedRecipesForItem|soup=5|stirfry=5|sandwich=5|toast=5|coneicecream=5}}


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|PeanutButter|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>PeanutButter distribution
        <span class="mw-customtoggle-togglebox-PeanutButter" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-PeanutButter">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | SurvivorCache1
    | {{ll|SurvivorCrate}}
    | 23.28%
    |-
    | SurvivorCache2
    | {{ll|SurvivorCrate}}
    | 23.28%
    |-
    | generalstore
    | {{ll|crate}}
    | 23.28%
    |-
    | generalstore
    | {{ll|crate}}
    | 41.14%
    |-
    | generalstore
    | {{ll|shelves}}
    | 23.28%
    |-
    | generalstore
    | {{ll|shelves}}
    | 41.14%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 23.28%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 41.14%
    |-
    | gigamart
    | {{ll|crate}}
    | 23.28%
    |-
    | gigamart
    | {{ll|crate}}
    | 41.14%
    |-
    | gigamart
    | {{ll|shelves}}
    | 23.28%
    |-
    | gigamart
    | {{ll|shelves}}
    | 41.14%
    |-
    | grocery
    | {{ll|crate}}
    | 23.28%
    |-
    | grocery
    | {{ll|crate}}
    | 41.14%
    |-
    | grocery
    | {{ll|shelves}}
    | 23.28%
    |-
    | grocery
    | {{ll|shelves}}
    | 41.14%
    |-
    | grocery
    | {{ll|smallcrate}}
    | 23.28%
    |-
    | grocery
    | {{ll|smallcrate}}
    | 41.14%
    |-
    | kitchen
    | {{ll|counter}}
    | 23.28%
    |-
    | kitchen
    | {{ll|overhead}}
    | 23.28%
    |-
    | livingroom
    | {{ll|counter}}
    | 23.28%
    |-
    | livingroom
    | {{ll|overhead}}
    | 23.28%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-PeanutButter" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|PeanutButter|41.78.16-->
Peanut butter can be found in [[Containers#Kitchen Counter|kitchen counters]].
Peanut butter can be found in [[Containers#Kitchen Counter|kitchen counters]].


== Code ==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=68}}
| {{CodeSnip
<pre> item PeanutButter
  | lang = java
HungerChange = -25,
  | line = true
Weight = 0.3,
  | start = 4615
Type = Food,
  | source = items_food.txt
UnhappyChange = -15,
  | retrieved = true
DisplayName = Peanut Butter,
  | version = 41.78.16
Icon = PeanutButter,
  | code =
BoredomChange = -5,
item PeanutButter
EvolvedRecipe = Sandwich:7,
{
FoodType    = NoExplicit,
DisplayName = Peanut Butter,
        Carbohydrates = 128,
DisplayCategory = Food,
        Proteins = 84,
Type = Food,
        Lipids = 224,
Weight = 0.3,
        Calories = 2660,
Icon = PeanutButter,
        Packaged = TRUE,</pre>
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==
==See also==
* [[Honey]]
*[[Honey]]
* [[Peanut Butter Sandwich]]
*[[Peanut Butter Sandwich]]
 
{{Navbox items|food}}


{{Navbox_food}}
[[Category:Non-perishable food]]

Latest revision as of 13:29, 30 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
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

The loot distributions can be found in the table(s) below.

PeanutButter distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
SurvivorCache1 SurvivorCrate 23.28%
SurvivorCache2 SurvivorCrate 23.28%
generalstore crate 23.28%
generalstore crate 41.14%
generalstore shelves 23.28%
generalstore shelves 41.14%
generalstorestorage shelves 23.28%
generalstorestorage shelves 41.14%
gigamart crate 23.28%
gigamart crate 41.14%
gigamart shelves 23.28%
gigamart shelves 41.14%
grocery crate 23.28%
grocery crate 41.14%
grocery shelves 23.28%
grocery shelves 41.14%
grocery smallcrate 23.28%
grocery smallcrate 41.14%
kitchen counter 23.28%
kitchen overhead 23.28%
livingroom counter 23.28%
livingroom overhead 23.28%

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.78.16
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