Canned Beans: Difference between revisions

From PZwiki
(PZ Updater automated execution(task: test fix infobox based on file, eid: 0a124351))
Tag: Reverted
m (Automated Formatting)
(21 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|Project Zomboid|Items|Food|Non-Perishable Food|Canned Food|type=Food|version=Version 41|incver=73}}{{Infobox food
{{Header|Project Zomboid|Items|Food|Canned food}}
|display_name=Canned Beans
{{Page version|41.78.16}}
|name_colour=Food
{{Infobox item
|name_text_colour=Food
|name=Canned Beans
|image=BeansClosed_Model.png
|model=BeansClosed_Model.png
|image_width=200px
|icon=Beans.png
|alternate_image=Beans.png
|icon_name=Canned Beans
|alternate_name=Canned Beans
|model2=BeansOpen_Model.png
|alternate_link=
|icon2=BeansOpen.png
|alternate_image2=BeansOpen.png
|icon_name2=Opened Canned Beans
|alternate_name2=Opened Canned Beans
|alternate_link2=
<!--GENERAL-->
|category=Food
|category=Food
|weight=0.8
|weight=0.8
|days_fresh=undefined
|days_fresh=2
|days_rotten=undefined
|days_rotten=4
|packaged = Yes
|packaged=Yes
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-24
|hunger_change=-24
Line 26: Line 23:
|unhappy_change=+10
|unhappy_change=+10
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.TinnedBeans<br>Base.OpenBeans
|item_id=Base.TinnedBeans<br>Base.OpenBeans
}}'''Canned beans''' is a [[Food#Non-Perishable|non-perishable]] food [[item]].  
}}
'''Canned beans''' (written as ''BEANS'' on the model) is a non-perishable [[food]] [[Items|item]].


==Usage==
==Usage==
Canned beans can only be opened with a [[Can Opener|can opener]], and once opened they become [[Food#Perishable|perishable]].
Canned beans can only be opened with a [[Can Opener|can opener]], and once opened they become [[Food#Perishable|perishable]].
{{Crafting header|ing=2}}
{{Crafting/sandbox2
{{Crafting cooking|009|ing=2}}
|opened_canned_beans
|}
}}


===Consumable properties===
===Consumable properties===
Opened canned beans can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
Opened canned beans can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
{{Consumables2
{{Consumables
|image = BeansOpen.png
|image = BeansOpen.png
|hunger = -24
|hunger = -24
|unhappiness = +10  
|unhappiness = +10
|perishable = 1
|perishable = 1
|cookable = 0
|cookable = 0
Line 52: Line 50:
}}
}}


== Crafting ==
==Crafting==
{{Main|Cooking}}
{{Main|Cooking}}


===What it can make===
===What it can make===
{{Crafting header|ing=3}}
{{Crafting/sandbox2
{{Crafting cooking|114|ing=3}}
|bowl_of_beans_uncooked
|}
}}


===Evolved recipes===
===Evolved recipes===
Canned beans is a [[cooking]] [[Recipe Ingredients|ingredient]].
Canned beans are a [[cooking]] [[Recipe ingredients|ingredient]].
{{EvolvedRecipesForItem|Omelette=8|Soup=24|Stew=24|Rice=24|Sandwich=8|Toast=8|Salad=8|}}
{{EvolvedRecipesForItem|omelette=8|soup=24|stew=24|rice=24|sandwich=8|toast=8|salad=8}}


==Distribution==
==Distribution==
Canned beans can often be found in [[Containers#Kitchen Counter|kitchen counters]].
Canned beans can often be found in [[Containers#Kitchen Counter|kitchen counters]].


==Gallery==
<gallery>
BeansClosed_Model.png|Model for: [[File:Beans.png]]
BeansOpen_Model.png|Model for: [[File:BeansOpen.png]]
</gallery>
<div class="mw-collapsible mw-collapsed">
==Code==
==Code==
<div class="mw-collapsible-content">'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|[[File:Beans.png]] {{ID|Base.TinnedBeans}}<br>
''Canned Beans'' [[File:Beans.png|32px]]
{{CodeSnip
{{Retrieved|version=41|incver=73}}
  | lang = java
<pre>    item TinnedBeans
  | line = true
  | start = 614
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item TinnedBeans
{
{
DisplayName = Canned Beans,
DisplayName = Canned Beans,
Line 94: Line 91:
StaticModel = CanClosed,
StaticModel = CanClosed,
WorldStaticModel = CanClosed,
WorldStaticModel = CanClosed,
}</pre>
Tags = HasMetal,
}
}}


''Opened Canned Beans'' [[File:BeansOpen.png|32px]]
[[File:BeansOpen.png]] {{ID|Base.OpenBeans}}<br>
{{Retrieved|version=41|incver=73}}
{{CodeSnip
<pre>    item OpenBeans
  | lang = java
  | line = true
  | start = 587
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item OpenBeans
{
{
DisplayName = Opened Canned Beans,
DisplayName = Opened Canned Beans,
Line 122: Line 128:
StaticModel = CanOpen,
StaticModel = CanOpen,
WorldStaticModel = CanOpen,
WorldStaticModel = CanOpen,
}</pre>
Tags = HasMetal,
</div>
}
}}
}}


==See also==
==See also==
Line 130: Line 138:
*[[Canned Soup]]
*[[Canned Soup]]


{{Navbox food}}
{{Navbox items|preserved_food}}
 
 
[[Category:Non-perishable food]]

Revision as of 07:12, 14 April 2024

Project ZomboidItemsFoodCanned foodCanned Beans
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Canned Beans
BeansClosed Model.png
BeansOpen Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.8
Properties
Packaged
Yes
Days fresh
2 days
Days until rotten
4 days
Nutrition
HungerMoodle Icon Hungry.png
-24
CaloriesCalories
170
CarbohydratesCarbohydrates
33
ProteinsProteins
7
FatFat
1
Effect
UnhappinessMoodle Icon Unhappy.png
+10
Technical
Item ID
Base.TinnedBeans
Base.OpenBeans

Canned beans (written as BEANS on the model) is a non-perishable food item.

Usage

Canned beans can only be opened with a can opener, and once opened they become perishable.

Product Ingredients Tools Requirements Workstation XP
BeansOpen.png
Opened Canned Beans
Beans.png Canned Beans ×1 CanOpener.png
Can Opener
none none none

Consumable properties

Opened canned beans can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.

Fresh Stale Rotten

BeansOpen.png
Hunger: -24

Unhappiness: +10

BeansOpen.png
Hunger: -18
Boredom: +10
Unhappiness: +20

BeansOpen.png
Hunger: -10
Boredom: +20
Unhappiness: +30
Dangerous, will cause sickness.

Crafting

Main article: Cooking

What it can make

Product Ingredients Tools Requirements Workstation XP
BowlFull.png
Bowl of Beans (Uncooked)

Bowl.png Bowl ×1
Beans.png Canned Beans ×1
CanOpener.png
Can Opener
none none 0.75 Cooking

Evolved recipes

Canned beans are a cooking ingredient.

Product Nutrition
Soup
Soup
24
Stew
Stew
24
Salad
Salad
8
Sandwich
Sandwich
8
Rice Pot/Saucepan
Rice Pot/Saucepan
24
Omelette
Omelette
8
Toast
Toast
8

Distribution

Canned beans can often be found in kitchen counters.

Code

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

Beans.png Base.TinnedBeans
Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item TinnedBeans
	{
		DisplayName = Canned Beans,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.8,
		Icon = Beans,
		CannedFood = TRUE,
		CantEat = TRUE,
		Packaged = TRUE,
		Calories = 170,
		Carbohydrates = 33,
		Lipids = 1,
		Proteins = 7,
		StaticModel = CanClosed,
		WorldStaticModel = CanClosed,
		Tags = HasMetal,
	}

BeansOpen.png Base.OpenBeans
Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item OpenBeans
	{
		DisplayName = Opened Canned Beans,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.8,
		Icon = BeansOpen,
		EvolvedRecipe = Omelette:8;Soup:24;Stew:24;RicePot:24;RicePan:24;Sandwich:8;Sandwich Baguette:8;Toast:8;Salad:8,
		EvolvedRecipeName = Bean,
		FoodType = Bean,
		CannedFood = TRUE,
		EatType = can,
		Packaged = TRUE,
		ReplaceOnUse = TinCanEmpty,
		DaysFresh = 2,
		DaysTotallyRotten = 4,
		HungerChange = -24,
		UnhappyChange = 10,
		Calories = 170,
		Carbohydrates = 33,
		Lipids = 1,
		Proteins = 7,
		StaticModel = CanOpen,
		WorldStaticModel = CanOpen,
		Tags = HasMetal,
	}

See also