Jar of Carrots: Difference between revisions

From PZwiki
(added model to infobox)
(-gallery)
Line 31: Line 31:
{{Crafting cooking|025|ing=6}}
{{Crafting cooking|025|ing=6}}
|}
|}
==Gallery==
<gallery>
JarFoodCarrots_Model.png|Jar of carrots model when placed in the world.
</gallery>


==Code==
==Code==

Revision as of 19:13, 3 January 2024

Jar of Carrots
Jar of Carrots
Jar of Carrots Carrots
General
Category Food
Encumbrance
Heavy Load
0.5
Days until stale 60 days
Days until rotten 30 days
Cooking
Time until cooked 60 minutes
Time until burned 60 minutes
Technical details
Item ID Base.CannedCarrots

A jar of carrots is a perishable food item.

Usage

Jar of carrots is used to preserve carrots longer than their standard 4 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.
Carrots cannot be eaten directly from the jar, therefore the jar must first be opened, returning the carrots, with their usual freshness.

Crafting

Carrots 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
JarBrown.png
Jar of Carrots
2.5 Cooking none JarEmpty2.png
Jar
(consumed)
Jar Lid
Jar Lid
(consumed)
Carrots.png
Carrots x5
(consumed)
WaterDrop.png
Water
(10 units)

(consumed)
Vinegar.png
Vinegar
(2 units)

(consumed)

(1 unit)

(consumed)

Code

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.73

	item CannedCarrots
    {
        DisplayCategory         = Food,
        Type			= Food,
        DisplayName		= Jar of Carrots,
        Icon			= JarBrown,
        Weight			= 0.5,
        DaysFresh 		= 60,
        DaysTotallyRotten 	= 90,
        OnCooked                = CannedFood_OnCooked,
        IsCookable	        = TRUE,
        MinutesToBurn	        = 120,
        MinutesToCook	        = 60,
        StaticModel             = CanClosed,
        WorldStaticModel        = JarFoodCarrots_Ground,
    }

See also