Cereal: Difference between revisions

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


==Code==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41.73}}
| {{CodeSnip
<pre>
  | lang = java
item Cereal
  | line = false
{
  | source = items_food.txt
DisplayName = Cereal,
  | retrieved = true
DisplayCategory = Food,
  | version = 41
Type = Food,
  | incver = 73
Weight = 0.2,
  | code =
Icon = Cereal,
item Cereal
Packaged = TRUE,
{
HungerChange = -40,
    DisplayName         = Cereal,
Calories = 2360,
    DisplayCategory     = Food,
Carbohydrates = 572,
    Type               = Food,
Lipids = 26,
    Weight             = 0.2,
Proteins = 52,
    Icon               = Cereal,
WorldStaticModel = Cereal,
    Packaged           = TRUE,
}
    HungerChange       = -40,
</pre>
    Calories           = 2360,
    Carbohydrates       = 572,
    Lipids             = 26,
    Proteins           = 52,
    WorldStaticModel   = Cereal,
}
  }}
}}


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

Revision as of 10:14, 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.
Cereal
Cereal Model.png
Bowl of Cereal Bowl of Cereal
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Packaged
Yes
Nutrition
HungerMoodle Icon Hungry.png
-40
CaloriesCalories
2360
CarbohydratesCarbohydrates
572
ProteinsProteins
52
FatFat
26
Technical
Item ID
Base.Cereal

Cereal is a non-perishable food item.

Usage

Cereal can be eaten directly, providing the player with some positive effects.

Trapping

Main article: Trapping

Cereal can be used as bait in traps to capture small birds and squirrels.

Crafting

Main article: Cooking

Cooking

Cereal can be used to make a bowl of cereal.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
Oatmeal.png
Bowl of Cereal
0.75 Cooking none Bowl.png
Bowl
(consumed)
Cereal.png
Cereal
(5 units)

(consumed)

(consumed)

Distribution

Cereal is often found in kitchen counters.

Code

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

Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.73
item Cereal
{
    DisplayName         = Cereal,
    DisplayCategory     = Food,
    Type                = Food,
    Weight              = 0.2,
    Icon                = Cereal,
    Packaged            = TRUE,
    HungerChange        = -40,
    Calories            = 2360,
    Carbohydrates       = 572,
    Lipids              = 26,
    Proteins            = 52,
    WorldStaticModel    = Cereal,
}

See also