Jar of Leeks: Difference between revisions

From PZwiki
(updated to 41.68)
m (Automated CodeBox update)
(18 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Food|Pickled food}}
{{header|Project Zomboid|Items|Food|Perishable Food|Vegetables|type=Food|version=Version 41|incver=68}}{{Infobox food
{{Page version|41.78.16}}
|display_name=Jar of Leeks
{{Infobox item
|name_colour=Food
|name=Jar of Leeks
|name_text_colour=Food
|model=JarFoodLeeks_Model.png
|image=JarFoodLeeks_Model.png
|icon=JarWhite.png
|image_width=300px
|icon_name=Jar of Leeks
|alternate_image=JarWhite.png
|alternate_name=Jar of Bell Peppers
|alternate_link=
|alternate_image2=Leek.png
|alternate_link2=Leek
|alternate_name2=Leek
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
|weight=0.5
|weight=0.5
|days_fresh=60
|days_fresh=60
|days_rotten=90
|days_rotten=30
|cook_minutes=60
|cook_minutes=60
|burn_minutes=120
|burn_minutes=60
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.CannedLeek
|item_id=Base.CannedLeek
}}A '''jar of leeks''' is a [[Food#Perishable|perishable]] food [[item]].  
}}
 
A '''jar of leeks''' is a perishable [[food]] [[Items|item]].


==Usage==
==Usage==
A jar of leeks is used to preserve [[leek]] longer than their standard 5 days of freshness. After jarring, it is necessary to cook the jar of food in a [[heat source]]. Otherwise, the food will rot as fast as if it were not jarred.<br>
Jar of leeks is used to preserve [[leek]] longer than their standard 5 days of freshness. After jarring, it is necessary to cook the jar of food in a [[heat source]]. Otherwise, the food will rot as fast as if it were not jarred.
 
Leek cannot be eaten directly from the jar, therefore the jar must first be opened, returning the leek, with their usual freshness.
Leek cannot be eaten directly from the jar, therefore the jar must first be opened, returning the leek, with their usual freshness.


== Crafting ==
==Crafting==
Leeks can be pickled to preserve their lifespan by using [[sugar]] and [[vinegar]].
Leeks can be pickled to preserve their lifespan by using [[sugar]] and [[vinegar]].
{{Crafting header|ing=6}}
{{Crafting header|ing=6}}
Line 33: Line 30:
|}
|}


== Code ==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=68}}
| {{CodeSnip
<pre> item CannedLeek
  | lang = java
  | line = true
  | start = 2775
  | source = newitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item CannedLeek
     {
     {
         DisplayCategory = Food,
         DisplayCategory = Food,
Line 46: Line 50:
         DaysTotallyRotten = 90,
         DaysTotallyRotten = 90,
         OnCooked            =      CannedFood_OnCooked,
         OnCooked            =      CannedFood_OnCooked,
IsCookable         =     TRUE,
IsCookable         =     TRUE,
         MinutesToBurn     =     120,
         MinutesToBurn     =     120,
         MinutesToCook     =     60,
         MinutesToCook     =     60,
         StaticModel = CanClosed,
         StaticModel = CanClosed,
         WorldStaticModel = JarFoodLeeks_Ground,
         WorldStaticModel = JarFoodLeeks_Ground,
     }</pre>
     }  
}}
}}


==See also==
==See also==
* [[Items/Food#Pickled food|Pickled foods]]
*[[Food#Pickled food|Pickled foods]]
* [[Farming|Farming Guide]]
*[[Farming]]
 
{{Navbox food}}


{{Navbox_food}}
[[Category:Perishable food]]
[[Category:Vegetables]]

Revision as of 01:33, 25 March 2024

Project ZomboidItemsFoodPickled foodJar of Leeks
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Jar of Leeks
JarFoodLeeks Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.5
Properties
Days fresh
60 days
Days until rotten
30 days
Cooking
Time until cooked
60 minutes
Time until burned
60 minutes
Technical
Item ID
Base.CannedLeek

A jar of leeks is a perishable food item.

Usage

Jar of leeks is used to preserve leek longer than their standard 5 days of freshness. After jarring, it is necessary to cook the jar of food in a heat source. Otherwise, the food will rot as fast as if it were not jarred.

Leek cannot be eaten directly from the jar, therefore the jar must first be opened, returning the leek, with their usual freshness.

Crafting

Leeks can be pickled to preserve their lifespan by using sugar and vinegar.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4 Ingredient 5 Ingredient 6
JarWhite.png
Jar of Leeks
2.5 Cooking none JarEmpty2.png
Jar
(consumed)
Jar Lid
Jar Lid
(consumed)
Leek.png
Leek x5
(consumed)
WaterDrop.png
Water
(10 units)

(consumed)
Vinegar.png
Vinegar
(2 units)

(consumed)

(1 unit)

(consumed)

Code

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

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item CannedLeek
    {
        DisplayCategory = Food,
        Type				=		Food,
        DisplayName			=		Jar of Leeks,
        Icon				=		JarWhite,
        Weight				=		0.5,
        DaysFresh 			=		60,
        DaysTotallyRotten 	=	 	90,
        OnCooked            =       CannedFood_OnCooked,
		IsCookable	        =	    TRUE,
        MinutesToBurn	    =	    120,
        MinutesToCook	    =	    60,
        StaticModel = CanClosed,
        WorldStaticModel = JarFoodLeeks_Ground,
    }

See also