Corn: Difference between revisions

From PZwiki
(+3d model in infobox)
(Added information about sacks, updated code box)
Line 56: Line 56:
Corn is a [[cooking]] [[Recipe Ingredients|ingredient]].
Corn is a [[cooking]] [[Recipe Ingredients|ingredient]].
{{EvolvedRecipesForItem|Soup=14|Stew=14|StirFry=14|Burger=14|Salad=7|RoastedVegetables=14|Rice=14|Pasta=14|Burrito=7|Taco=7|}}
{{EvolvedRecipesForItem|Soup=14|Stew=14|StirFry=14|Burger=14|Salad=7|RoastedVegetables=14|Rice=14|Pasta=14|Burrito=7|Taco=7|}}
===Sack of Corn===
{{Crafting header|ing=1}}
{{Crafting general|054|ing=1}}
|}


==Distribution==
==Distribution==
Corn is often found in [[refrigerator]]s, [[Containers#Displays|grocery displays]] and [[Containers#Plants|wild corn crops]].
Corn is often found in [[refrigerator]]s, [[Containers#Displays|grocery displays]] and [[Containers#Plants|wild corn crops]].
Sacks of corn can be found in grocery stores and warehouses.


==Gallery==
==Gallery==
Line 67: Line 74:


==Code==
==Code==
'''''From item_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|[[File:Corn.png]] {{ID|Base.Corn}}<br>
{{Retrieved|version=41|incver=73}}
{{CodeSnip
<pre>
  | lang = java
  | line = true
  | start = 1172
  | source = items_food.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
item Corn
item Corn
{
DisplayName = Corn,
DisplayName = Corn,
DisplayCategory = Food,
DisplayCategory = Food,
Line 88: Line 103:
StaticModel = CylinderFood_Yellow,
StaticModel = CylinderFood_Yellow,
WorldStaticModel = Corn_Ground,
WorldStaticModel = Corn_Ground,
</pre>
}
}}
 
[[File:Sandbag.png]] {{ID|Base.SackProduce_Corn}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 8096
  | source = items_food.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
item SackProduce_Corn
{
DisplayName = Sack of Corn,
DisplayCategory = Food,
Type = Food,
Weight = 2,
Icon = Sandbag,
CantEat = TRUE,
DaysFresh = 5,
DaysTotallyRotten = 8,
WorldStaticModel = SandBag,
}
}}
}}


{{Navbox food}}
{{Navbox food}}

Revision as of 13:34, 14 January 2024

Template:Infobox food Corn is a perishable food item.

Usage

Consumable properties

Corn 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

Corn.png
Hunger: -14


Corn.png
Hunger: -11
Boredom: +10
Unhappiness: +10

CornRotten.png
Hunger: -6
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

Main article: Cooking

Evolved recipes

Corn is a cooking ingredient.

Product Nutrition
Soup
Soup
14
Stew
Stew
14
Salad
Salad
7
Stir Fry
Stir Fry
14
Roasted Vegetables
Roasted Vegetables
14
Burger
Burger
14
Rice Pot/Saucepan
Rice Pot/Saucepan
14
Pasta Pot/Saucepan
Pasta Pot/Saucepan
14
Taco
Taco
7
Burrito
Burrito
7

Sack of Corn

Product XP gained Skill(s) Recipe Ingredient 1
Corn.png
Corn x12
0 XP none Sandbag.png
Sack of Corn
(consumed)

Distribution

Corn is often found in refrigerators, grocery displays and wild corn crops.

Sacks of corn can be found in grocery stores and warehouses.

Gallery

Code

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

Corn.png Base.Corn
Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item Corn
	{
		DisplayName = Corn,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.2,
		Icon = Corn,
		EvolvedRecipe = Soup:14;Stew:14;Stir fry Griddle Pan:14;Stir fry:14;Burger:7;Salad:7;Roasted Vegetables:14;RicePot:14;RicePan:14;PastaPot:14;PastaPan:14;Burrito:7;Taco:7,
		FoodType = Vegetables,
		DaysFresh = 5,
		DaysTotallyRotten = 8,
		HungerChange = -14,
		ThirstChange = -4,
		Calories = 88,
		Carbohydrates = 26.74,
		Lipids = 1.93,
		Proteins = 4.68,
		StaticModel = CylinderFood_Yellow,
		WorldStaticModel = Corn_Ground,
	}

Sandbag.png Base.SackProduce_Corn
Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item SackProduce_Corn
	{
		DisplayName = Sack of Corn,
		DisplayCategory = Food,
		Type = Food,
		Weight = 2,
		Icon = Sandbag,
		CantEat = TRUE,
		DaysFresh = 5,
		DaysTotallyRotten = 8,
		WorldStaticModel = SandBag,
	}