Onion: Difference between revisions

From PZwiki
(+3d model to infobox)
(Added information about sacks, updated code box)
Line 62: Line 62:
Onion is a [[cooking]] [[Recipe Ingredients|ingredient]].
Onion is a [[cooking]] [[Recipe Ingredients|ingredient]].
{{EvolvedRecipesForItem|Soup=10|Stew=10|Pie=10|StirFry=10|Sandwich=5|Burger=10|Salad=10|RoastedVegetables=10|Rice=10|Pasta=10}}
{{EvolvedRecipesForItem|Soup=10|Stew=10|Pie=10|StirFry=10|Sandwich=5|Burger=10|Salad=10|RoastedVegetables=10|Rice=10|Pasta=10}}
===Sack of Onion===
{{Crafting header|ing=1}}
{{Crafting general|059|ing=1}}
|}


==Distribution==
==Distribution==
Onion is often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]].
Onion is often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]].
Sacks of onion can be found in grocery stores and warehouses.


==Gallery==
==Gallery==
Line 73: Line 80:


==Code==
==Code==
<pre>
{{CodeBox|[[File:Onion.png]] {{ID|Base.Onion}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 1000
  | source = items_food.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
item Onion
item Onion
{
{
Line 93: Line 109:
WorldStaticModel = Onion_Ground,
WorldStaticModel = Onion_Ground,
EvolvedRecipeName = Mushroom,
EvolvedRecipeName = Mushroom,
Tooltip = Tooltip_item_NeedsSliced,
}
}}
[[File:Sandbag.png]] {{ID|Base.SackProduce_Onion}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 8161
  | source = items_food.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
item SackProduce_Onion
{
DisplayName = Sack of Onions,
DisplayCategory = Food,
Type = Food,
Weight = 2,
Icon = Sandbag,
CantEat = TRUE,
DaysFresh = 7,
DaysTotallyRotten = 9,
WorldStaticModel = SandBag,
}
}
</pre>
}}
}}


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

Revision as of 13:41, 14 January 2024

Onion
Onion
Onion Onion (Rotten) Onion Slices
General
Category Food
Encumbrance
Heavy Load
0.2
Days until stale 7 days
Days until rotten 9 days
Nutrition
Hunger
Hunger
-10
Calories
Calories
28
Carbohydrates
Carbohydrates
6.54
Proteins
Proteins
0.77
Fat
Fat
0.07
Technical details
Item ID Base.Onion

Onion is a perishable food item.

Usage

Consumable properties

Onion 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

Onion.png
Hunger: -10


Onion.png
Hunger: -7
Boredom: +10
Unhappiness: +10

Onion rotten.png
Hunger: -4
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

What it can make

Onion needs to be cut into slices before addition to most recipes.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
Rings.png
Onion Slices x2
0.75 Cooking none
(keep)
Onion.png
Onion
(consumed)

Evolved recipes

Onion is a cooking ingredient.

Product Nutrition
Soup
Soup
10
Stew
Stew
10
Salad
Salad
10
Stir Fry
Stir Fry
10
Roasted Vegetables
Roasted Vegetables
10
Sandwich
Sandwich
5
Burger
Burger
10
Pie (savory)
Pie (savory)
10
Rice Pot/Saucepan
Rice Pot/Saucepan
10
Pasta Pot/Saucepan
Pasta Pot/Saucepan
10

Sack of Onion

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

Distribution

Onion is often found in refrigerators and grocery displays.

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

Gallery

Code

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

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

Retrieved: Build 41.78.16
item Onion
	{
		DisplayName = Onion,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.2,
		Icon = Onion,
		/*EvolvedRecipe = Omelette:10;Soup:10;Stew:10;Pie:10;Stir fry Griddle Pan:10;Stir fry:10;Sandwich:5;Sandwich Baguette:5;Burger:10;Salad:10;Roasted Vegetables:10;RicePot:10;RicePan:10;PastaPot:10;PastaPan:10;Taco:10;Burrito:10,*/
		FoodType = Vegetables,
		DaysFresh = 7,
		DaysTotallyRotten = 9,
		HungerChange = -10,
		Calories = 28,
		Carbohydrates = 6.54,
		Lipids = 0.07,
		Proteins = 0.77,
		StaticModel = RoundFood_Peach,
		WorldStaticModel = Onion_Ground,
		EvolvedRecipeName = Mushroom,
		Tooltip = Tooltip_item_NeedsSliced,
	}

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

Retrieved: Build 41.78.16
item SackProduce_Onion
	{
		DisplayName = Sack of Onions,
		DisplayCategory = Food,
		Type = Food,
		Weight = 2,
		Icon = Sandbag,
		CantEat = TRUE,
		DaysFresh = 7,
		DaysTotallyRotten = 9,
		WorldStaticModel = SandBag,
	}