Jar of Carrots: Difference between revisions

From PZwiki
(→‎top: New infobox upgrade - Food)
(→‎Code: CodeBox update)
Line 32: Line 32:


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41.73}}
| {{CodeSnip
<pre>
  | lang = java
item CannedCarrots
  | line = false
    {
  | source = newitems.txt
        DisplayCategory        = Food,
  | retrieved = true
        Type = Food,
  | version = 41
        DisplayName = Jar of Carrots,
  | incver = 73
        Icon = JarBrown,
  | code =
        Weight = 0.5,
item CannedCarrots
        DaysFresh = 60,
{
        DaysTotallyRotten = 90,
    DisplayCategory        = Food,
        OnCooked                = CannedFood_OnCooked,
    Type                   = Food,
        IsCookable         = TRUE,
    DisplayName             = Jar of Carrots,
        MinutesToBurn         = 120,
    Icon                   = JarBrown,
        MinutesToCook         = 60,
    Weight                 = 0.5,
        StaticModel            = CanClosed,
    DaysFresh               = 60,
        WorldStaticModel        = JarFoodCarrots_Ground,
    DaysTotallyRotten       = 90,
    }
    OnCooked                = CannedFood_OnCooked,
</pre>
    IsCookable             = TRUE,
    MinutesToBurn           = 120,
    MinutesToCook           = 60,
    StaticModel            = CanClosed,
    WorldStaticModel        = JarFoodCarrots_Ground,
}
  }}
}}


==See also==
==See also==

Revision as of 09:57, 31 January 2024

Template:Header/sandbox2

Spiffo controlyourself.png
This page was last updated for an older version (41.73).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Jar of Carrots
JarFoodCarrots Model.png
[[File:Carrots.png Carrots|Carrots|200px|class=pixelart]]
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.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

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

Source: ProjectZomboid\media\scripts\newitems.txt

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