Egg: Difference between revisions

From PZwiki
(New infobox + new layout (moved wild eggs to individual page))
m (Simplified redundant links)
 
(36 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{languages|Egg}}
{{Header|Project Zomboid|Items|Food|Protein}}
{{header|Project Zomboid|Items|Food|Perishable Food|type=Food|version=Version 40|incver=14}}{{Infobox food
{{Page version|41.78.16}}
|display_name=Egg
{{Infobox item
|name_colour=Food
|name=Egg
|name_text_colour=Food
|model=Egg_Model.png
|image=Egg.png
|icon=Egg.png
|alternate_image=EggCarton.png
|model2=EggBoiled_Model.png
|alternate_name=Egg Carton
|icon2=EggBoiled.png
|alternate_link=
|icon_name2=Boiled Egg
|model3=EggCarton_Model.png
|icon3=EggCarton.png
|icon_name3=Egg Carton
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
|weight=0.1<br>'''Carton:''' 1
|weight=0.1<br>1 <small>(carton)</small>
|days_fresh=14
|days_fresh=14 days<br>3 <small>(boiled egg)</small>
|days_rotten=21
|days_rotten=7 days<br>3 <small>(boiled egg)</small>
|cant_be_frozen=True
|cant_be_frozen=True
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-10
|hunger_change=-7
|calories=63
|calories=63
|lipids=4.18
|lipids=4.18
|proteins=5.55
|proteins=5.55
|carbohydrates=0.32
|carbohydrates=0.32
<!--COOKING-->
|cook_minutes=4
|burn_minutes=16
|dangerous_uncooked=True
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Egg<br>Base.EggCarton
|item_id=''See [[#Item IDs|Item IDs]]''
}}An '''egg''' is a [[Food#Perishable|perishable]] food [[item]] used in [[cooking]].  
}}
An '''egg''' is a perishable [[food]] [[Items|item]] used in [[cooking]].


==Usage==
==Usage==
=== Consumable properties ===
===Consumable properties===
An Egg can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
Egg can be eaten raw, which can make the [[player]] [[sick]]. Consuming after being cooked will provide the player with some positive effects, however these will become negative the longer it's left to perish.
{{Consumables2
{{Consumables
|image = Egg.png
|image = Egg.png
|hunger = -10
|rotten image = Egg.png
|unrotten hunger = -7
|cooked image = EggBoiled.png
|unrotten boredom = +10
|burned image = EggBoiled.png
|unrotten unhappiness = +10
|perishable = 1
|unrotten image = Egg.png
|cookable = 1
|rotten hunger = -5
|hunger = -7
|rotten boredom = +20
|dangerous uncooked = 1
|rotten unhappiness = +20
|boredom = 0
|perishable = 1
|unhappiness = 0
|rotten image = Egg.png
|unrotten hunger = -5
|unrotten unhappiness = +10
|unrotten boredom = +10
|rotten hunger = -3
|rotten unhappiness = +20
|rotten boredom = +20
|cooked hunger = -10
|cooked unhappiness = 0
|cooked boredom = 0
|unrottencooked hunger = -7
|unrottencooked unhappiness = +10
|unrottencooked boredom = +10
|rottencooked hunger = -4
|rottencooked unhappiness = +20
|rottencooked boredom = +20
|burned hunger = -3
|burned boredom = +20
|burned unhappiness = +20
}}
}}


== Crafting ==
==Crafting==
Eggs can be added to or removed from an egg carton.
{{Cooking table header}}
{{RecipeLookup|2080}}
{{RecipeLookup|2081}}
{{Crafting table footer}}
 
===Cooking===
===Cooking===
An egg is required to make [[Cake Batter|cake batter]].
{{Main|Cooking}}
{{Cooking table header}}
{{Crafting/sandbox2
{{RecipeLookup|2039}}
|boiled_egg_cooked
{{Crafting table footer}}
}}
====Evolved recipes====
{{EvolvedRecipesForItem|stirfry=10|sandwich=10|burger=10|salad=10|roastedvegetables=10|ricepot=10|ricepan=10|Pastapot=10|pastapan=10}}


== Code ==
===What it makes===
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
*Egg can be added to or removed from an egg carton.
{{Crafting/sandbox2
|egg
|egg_carton
}}
*Egg can be used in several cooking recipes.
{{Crafting/sandbox2
|cake_batter
|omelette_uncooked
|muffin_baking_tray_uncooked
}}


''Egg'' [[File:Egg.png|32px]]
===Evolved recipes===
{{Retrieved|version=40|incver=14}}
Egg and boiled egg is a [[cooking]] [[Recipe ingredients|ingredient]].<br>
<pre> item Egg
''Egg'' [[File:Egg.png]]
HungerChange = -10,
{{EvolvedRecipesForItem|stirfry=7|roastedvegetables=7|rice=7|pasta=7}}
Weight = 0.1,
''Boiled Egg'' [[File:EggBoiled.png]]
Type = Food,
{{EvolvedRecipesForItem|sandwich=10|burger=10|salad=10|burrito=10|taco=5|soup=10|stew=10}}
DangerousUncooked = TRUE,
DaysFresh = 14,
DaysTotallyRotten = 21,
DisplayName = Egg,
Icon = Egg,
EvolvedRecipe = Stir fry:10;Sandwich:10|Cooked;Burger:10;Salad:10|Cooked;Roasted Vegetables:10;RicePot:10;RicePan:10;PastaPot:10;PastaPan:10,
FoodType    = Egg,
        Carbohydrates = 0.32,
        Proteins = 5.55,
        Lipids = 4.18,
        Calories = 63,
        CantBeFrozen = TRUE,</pre>


'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
==Item IDs==
{| class="wikitable theme-red" style="width:30%; text-align: center;"
! style="width:25%" | Name
! style="width:25%" | Icon
! style="width:50%" | Item ID
|-
| Egg
| [[File:Egg.png]]
| {{ID|Base.Egg}}
|-
| Boiled Egg
| [[File:EggBoiled.png]]
| {{ID|Base.EggBoiled}}
|-
| Egg Carton
| [[File:EggCarton.png]]
| {{ID|Base.EggCarton}}
|}


''Egg Carton'' [[File:EggCarton.png|32px]]
==Code==
{{Retrieved|version=40|incver=14}}
{{CodeBox|[[File:Egg.png]] {{ID|Base.Egg}}<br>
<pre> item EggCarton
{{CodeSnip
Weight = 1,
  | lang = java
Type = Food,
  | line = true
DisplayName = Egg Carton,
  | start = 2390
Icon = EggCarton,
  | source = items_food.txt
DaysFresh = 14,
  | retrieved = true
DaysTotallyRotten = 21,</pre>
  | version = 41.78.16
  | code =
item Egg
{
DisplayName = Egg,
DisplayCategory = Food,
Type = Food,
Weight = 0.1,
Icon = Egg,
DangerousUncooked = TRUE,
EvolvedRecipe = Stir fry Griddle Pan:7;Stir fry:7;Roasted Vegetables:7;RicePot:7;RicePan:7;PastaPot:7;PastaPan:7;Sandwich:7|Cooked;Sandwich Baguette:7|Cooked;Burger:7|Cooked;Salad:7|Cooked;Burrito:7|Cooked;Taco:3|Cooked;Soup:7;Stew:7,
FoodType = Egg,
IsCookable = true,
/*ReplaceOnCooked = Base.EggBoiled,*/
MinutesToCook = 4,
MinutesToBurn = 20,
DaysFresh = 14,
DaysTotallyRotten = 21,
HungerChange = -7,
Calories = 63,
Carbohydrates = 0.32,
Lipids = 4.18,
Proteins = 5.55,
WorldStaticModel = Egg,
Tags = Egg,
}
}}
 
[[File:EggBoiled.png]] {{ID|Base.EggBoiled}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 6192
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item EggBoiled
{
DisplayName = Boiled Egg,
DisplayCategory = Food,
Type = Food,
Weight = 0.1,
Icon = EggBoiled,
EvolvedRecipe = Sandwich:10;Sandwich Baguette:10;Burger:10;Salad:10;Burrito:10;Taco:5;Soup:10;Stew:10,
FoodType = Egg,
DaysFresh = 3,
DaysTotallyRotten = 6,
HungerChange = -10,
Calories = 63,
Carbohydrates = 0.32,
Lipids = 4.18,
Proteins = 5.55,
WorldStaticModel = EggBoiled_Ground,
EvolvedRecipeName = Egg,
}
}}
 
[[File:EggCarton.png]] {{ID|Base.EggCarton}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 4778
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item EggCarton
{
DisplayName = Egg Carton,
DisplayCategory = Food,
Type = Food,
Weight = 1,
Icon = EggCarton,
DaysFresh = 14,
DaysTotallyRotten = 21,
WorldStaticModel = EggCarton,
}
}}
}}


==See also==
==See also==
*[[Foraging|Foraging Guide]]
*[[Foraging]]
*[[Wild Eggs]]
*[[Wild Eggs]]


{{Navbox/Consumables}}
{{Navbox items|meat}}
 
 
[[Category:Perishable food]]

Latest revision as of 11:24, 25 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]
Egg
Egg Model.png
EggBoiled Model.png
EggCarton Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.1
1 (carton)
Properties
Days fresh
14 days
3 (boiled egg) days
Days until rotten
7 days
3 (boiled egg) days
Nutrition
HungerMoodle Icon Hungry.png
-7
CaloriesCalories
63
CarbohydratesCarbohydrates
0.32
ProteinsProteins
5.55
FatFat
4.18
Cooking
Time until cooked
4 minutes
Time until burned
16 minutes
Dangerous uncooked
True
Technical
Item ID

An egg is a perishable food item used in cooking.

Usage

Consumable properties

Egg can be eaten raw, which can make the player sick. Consuming after being cooked will provide the player with some positive effects, however these will become negative the longer it's left to perish.

Fresh Stale Rotten
Uncooked

Egg.png
Hunger: -7


Dangerous uncooked, may cause sickness.

Egg.png
Hunger: -5
Boredom: +10
Unhappiness: +10
Dangerous uncooked, may cause sickness.

Egg.png

Hunger: -3
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Cooked

EggBoiled.png
Hunger: -10

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

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

Burned

EggBoiled.png
Hunger: -3
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

Cooking

Main article: Cooking
Product Ingredients Tools Requirements Workstation XP
EggBoiled.png
Boiled Egg (Cooked)
One of:
Egg.png Egg ×1
WildEggs.png Wild Eggs ×1
none none Heat source.gif
Heat source
2.5 Cooking

What it makes

  • Egg can be added to or removed from an egg carton.
Product Ingredients Tools Requirements Workstation XP
Egg.png
Egg
EggCarton.png Egg Carton ×1 none none none none
EggCarton.png
Egg Carton
Egg.png Egg ×12 none none none none
  • Egg can be used in several cooking recipes.
Product Ingredients Tools Requirements Workstation XP
CakeBatter.png
Cake Batter
One of:
Fork.png Fork ×1
Spatula.png Spatula ×1
Spoon.png Spoon ×1
Each of:
Bowl.png Bowl ×1
Butter.png Butter ×15 unit(s)
Yeast.png Yeast ×1
Milk.png Milk ×1
none
Profession chef2.png
Chef occupation
(or)
Trait cook.png
Cook trait
(or)
MagazineFood.png
Good Cooking Magazine Vol.1
none 2.5 Cooking
PanFull.png
Omelette (Uncooked)
One of:
Fork.png Fork ×1
Spatula.png Spatula ×1
Spoon.png Spoon ×1
One of:
Egg.png Egg ×2
WildEggs.png Wild Eggs ×2
Each of:
Pan.png Frying Pan ×1
none none none 0.75 Cooking
Muffintray Batter.png
Muffin Baking Tray (Uncooked)
One of:
Fork.png Fork ×1
Spatula.png Spatula ×1
Spoon.png Spoon ×1
One of:
OilOlive.png Olive Oil ×1
OilVegetable.png Vegetable Oil ×1
Lard.png Lard ×1
Butter.png Butter ×1
Margarine.png Margarine ×1
One of:
Cornflour.png Corn Flour ×1
Flour.png Flour ×1
Each of:
Muffintray.png Muffin Tray ×1
Bowl.png Empty Bowl ×1
Egg.png Egg (tag) ×2
SugarBrown.png Sugar (tag) ×1
none none none 0.75 Cooking

Evolved recipes

Egg and boiled egg is a cooking ingredient.
Egg Egg.png

Product Nutrition
Stir Fry
Stir Fry
7
Roasted Vegetables
Roasted Vegetables
7
Rice Pot/Saucepan
Rice Pot/Saucepan
7
Pasta Pot/Saucepan
Pasta Pot/Saucepan
7

Boiled Egg EggBoiled.png

Product Nutrition
Soup
Soup
10
Stew
Stew
10
Salad
Salad
10
Sandwich
Sandwich
10
Burger
Burger
10
Taco
Taco
5
Burrito
Burrito
10

Item IDs

Name Icon Item ID
Egg Egg.png Base.Egg
Boiled Egg EggBoiled.png Base.EggBoiled
Egg Carton EggCarton.png Base.EggCarton

Code

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

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

Retrieved: Build 41.78.16
item Egg
	{
		DisplayName = Egg,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.1,
		Icon = Egg,
		DangerousUncooked = TRUE,
		EvolvedRecipe = Stir fry Griddle Pan:7;Stir fry:7;Roasted Vegetables:7;RicePot:7;RicePan:7;PastaPot:7;PastaPan:7;Sandwich:7

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

Retrieved: Build 41.78.16
item EggBoiled
	{
		DisplayName = Boiled Egg,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.1,
		Icon = EggBoiled,
		EvolvedRecipe = Sandwich:10;Sandwich Baguette:10;Burger:10;Salad:10;Burrito:10;Taco:5;Soup:10;Stew:10,
		FoodType = Egg,
		DaysFresh = 3,
		DaysTotallyRotten = 6,
		HungerChange = -10,
		Calories = 63,
		Carbohydrates = 0.32,
		Lipids = 4.18,
		Proteins = 5.55,
		WorldStaticModel = EggBoiled_Ground,
		EvolvedRecipeName = Egg,
	}

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

Retrieved: Build 41.78.16
item EggCarton
	{
		DisplayName = Egg Carton,
		DisplayCategory = Food,
		Type = Food,
		Weight = 1,
		Icon = EggCarton,
		DaysFresh = 14,
		DaysTotallyRotten = 21,
		WorldStaticModel = EggCarton,
	}

See also