Onion: Difference between revisions

From PZwiki
(Updated formatting, removed TOC, added Evolved Recipes, added version reference, checked to match current stats)
m (Automated Formatting)
(42 intermediate revisions by 11 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|Project Zomboid|Items|Food|Vegetables}}
{{languages}}
{{Page version|41.78.16}}
{{Consumables
{{Infobox item
|image = Onion.png
|name=Onion
|weight = 0.2
|model=Onion_Model.png
|hunger = -15
|icon=Onion.png
|icon_name=Onion
|icon2=OnionRotten.png
 
|icon_name2=Onion (Rotten)
|icon3=Rings.png
|icon_name3=Onion Slices
Onion Slices
<!--GENERAL-->
|category=Food
|weight=0.2
|days_fresh=7
|days_rotten=9
<!--NUTRITION-->
|hunger_change=-10
|calories=28
|lipids=0.07
|proteins=0.77
|carbohydrates=6.54
<!--TECHNICAL DETAILS-->
|item_id=Base.Onion
}}
}}
A perishable food item that goes bad as time passes. Onions are often inside of [[refrigerator]]s, [[containers#Kitchen_cupboard|kitchen cupboards]], and in produce bins. Onions take seven in-game days to go stale, and nine in-game days to rot.
'''Onion''' is a perishable [[food]] [[Items|item]].


== Nutritional Information ==
==Usage==
{| border=0 align=left
===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.
{{Consumables2
{{Consumables
|image = Onion.png
|image = Onion.png
|hunger = -15
|hunger = -10
|thirst = 0
|thirst = 0
|unrotten hunger = -11
|unrotten hunger = -7
|unrotten boredom = +10
|unrotten boredom = +10
|unrotten unhappiness = +10
|unrotten unhappiness = +10
|unrotten thirst = 0
|unrotten thirst = 0
|unrotten image = Onion.png
|unrotten image = Onion.png
|rotten hunger = -6
|rotten hunger = -4
|rotten boredom = +20
|rotten boredom = +20
|rotten unhappiness = +20
|rotten unhappiness = +20
Line 27: Line 47:
|rotten image = Onion rotten.png
|rotten image = Onion rotten.png
}}
}}
==Crafting==
===What it can make===
Onion needs to be cut into [[Onion_Slices|slices]] before addition to most recipes.
{{Crafting/sandbox2
|onion_slices
}}
===Evolved recipes===
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}}
===Sack of Onion===
{{Crafting/sandbox2
|onion
}}
==Distribution==
The loot distributions can be found in the table(s) below.
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|rowspan="3"|all
|[[fridge]]
|4
|2
|-
|[[fridge]]
|4
|2
|-
|[[fridge]]
|4
|2
|-
|burgerkitchen
|[[fridge]]
|4
|4
|-
|chinesekitchen
|[[fridge]]
|4
|8
|-
|deepfry_kitchen
|[[fridge]]
|4
|8
|-
|dinerkitchen
|[[fridge]]
|4
|4
|-
|rowspan="2"|gigamart
|[[grocerstand]]
|4
|1
|-
|[[grocerstand]]
|4
|2
|-
|italiankitchen
|[[fridge]]
|4
|8
|-
|mexicankitchen
|[[fridge]]
|4
|8
|-
|restaurantkitchen
|[[fridge]]
|4
|4
|-
|spiffoskitchen
|[[fridge]]
|4
|4
|-
|rowspan="2"|westernkitchen
|[[fridge]]
|4
|8
|-
|[[fridge]]
|4
|8
|}
|}
<br><br><br><br><br><br><br><br><br><br><br>
Onion is often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]].
== Evolved Recipes ==
{{EvolvedRecipesForItem
|soup=15|stew=15|pie=15|stirfry=15|sandwich=5|burger=10|salad=10|roastedvegetables=15}}


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


== Code ==
==Gallery==
<nowiki>item Onion
<gallery>
Onion Model.png|Onion model when placed in the world
OnionRotten Model.png|Rotten onion model when placed in the world
</gallery>
 
==Code==
{{CodeBox|[[File:Onion.png]] {{ID|Base.Onion}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 1000
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Onion
{
{
HungerChange = -15,
DisplayName = Onion,
Weight = 0.2,
DisplayCategory = Food,
Type = Food,
Type = Food,
DaysTotallyRotten = 9,
Weight = 0.2,
DisplayName = Onion,
Icon = Onion,
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,*/
DaysFresh = 7,
FoodType = Vegetables,
EvolvedRecipe = Soup:15;Stew:15;Pie:15;Stir fry:15;Sandwich:5;Burger:10;Salad:10;Roasted Vegetables:15,
DaysFresh = 7,
FoodType   =   Vegetables,
DaysTotallyRotten = 9,
}</nowiki>
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,
}
}}
 
[[File:Sandbag.png]] {{ID|Base.SackProduce_Onion}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 8161
  | source = items_food.txt
  | retrieved = true
  | version = 41.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,
}
}}
}}
 
==See also==
{{Navbox items|plants}}
 


{{Navbox/Consumables}}
[[Category:Perishable food]]
[[Category:Consumables]]
[[Category:Food]]
[[Category:Perishable Food]]
[[Category:Version 32.20]]

Revision as of 10:37, 14 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]
Onion
Onion Model.png
Onion (Rotten)
Onion Slices Onion Slices
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Days fresh
7 days
Days until rotten
9 days
Nutrition
HungerMoodle Icon Hungry.png
-10
CaloriesCalories
28
CarbohydratesCarbohydrates
6.54
ProteinsProteins
0.77
FatFat
0.07
Technical
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 Ingredients Tools Requirements Workstation XP
Rings.png
Onion Slices
One of:
KnifeChopping.png Kitchen Knife ×1
HuntingKnife.png Hunting Knife ×1
Machete.png Machete ×1
KnifeFlint.png Stone Knife ×1
Each of:
Onion.png Onion ×1
none none none 0.75 Cooking

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 Ingredients Tools Requirements Workstation XP
Onion.png
Onion ×12
Sandbag.png Sack of Onion ×1 none none none none

Distribution

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

Containers
Building/Room Container Rolls Chance
all fridge 4 2
fridge 4 2
fridge 4 2
burgerkitchen fridge 4 4
chinesekitchen fridge 4 8
deepfry_kitchen fridge 4 8
dinerkitchen fridge 4 4
gigamart grocerstand 4 1
grocerstand 4 2
italiankitchen fridge 4 8
mexicankitchen fridge 4 8
restaurantkitchen fridge 4 4
spiffoskitchen fridge 4 4
westernkitchen fridge 4 8
fridge 4 8

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,
	}

See also