Jar of Broccoli: Difference between revisions

From PZwiki
m (Infobox fix)
(CodeBox update, verification tag)
Line 34: Line 34:


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


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

Revision as of 10:08, 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 Broccoli
JarFoodBroccoli Model.png
Broccoli
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.5
Properties
Days fresh
60 days
Days until rotten
90 days
Cooking
Time until cooked
60 minutes
Time until burned
120 minutes
Technical
Item ID
Base.CannedBroccoli

A jar of broccoli is a perishable food item.

Usage

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

Crafting

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

(consumed)
Vinegar.png
Vinegar
(2 units)

(consumed)

(1 unit)

(consumed)

Distribution

Jar of broccoli do not spawn naturally and can only be obtained through crafting.

Code

CandleLit.png
This section may have claims which require verification.
Editors should verify the article's current content and, while adding content, check new information.
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 CannedBroccoli
{
    DisplayCategory         = Food,
    Type                    = Food,
    DisplayName             = Jar of Bell Peppers,
    Icon                    = JarBrown,
    Weight                  = 0.5,
    DaysFresh               = 60,
    DaysTotallyRotten       = 90,
    OnCooked                = CannedFood_OnCooked,
    IsCookable              = TRUE,
    MinutesToBurn           = 120,
    MinutesToCook           = 60,
    StaticModel             = CanClosed,
    WorldStaticModel        = JarFoodBellPeppers_Ground,
}

See also