Jellybeans: Difference between revisions

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


==Code==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41.73}}
| {{CodeSnip
<pre>
  | lang = java
    item Jellybeans
  | line = false
{
  | source = items_food.txt
DisplayName = Jellybeans,
  | retrieved = true
DisplayCategory = Food,
  | version = 41
Type = Food,
  | incver = 73
Weight = 0.1,
  | code =
Icon = Jellybeans,
item Jellybeans
EvolvedRecipe = Cake:5;ConeIcecream:5,  
{
FoodType = Candy,
    DisplayName         = Jellybeans,
HungerChange = -5,
    DisplayCategory     = Food,
UnhappyChange = -10,
    Type               = Food,
Calories = 40,
    Weight             = 0.1,
Carbohydrates = 10,
    Icon               = Jellybeans,
Lipids = 0.5,
    EvolvedRecipe       = Cake:5;ConeIcecream:5,
Proteins = 0,
    FoodType           = Candy,
EvolvedRecipeName = Jellybeans,
    HungerChange       = -5,
}
    UnhappyChange       = -10,
</pre>
    Calories           = 40,
    Carbohydrates       = 10,
    Lipids             = 0.5,
    Proteins           = 0,
    EvolvedRecipeName   = Jellybeans,
}
  }}
}}


{{Navbox food}}
{{Navbox food}}

Revision as of 09:58, 31 January 2024

Template:Header/sandbox2

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Jellybeans
JellyBeans.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Nutrition
HungerMoodle Icon Hungry.png
-5
CaloriesCalories
40
CarbohydratesCarbohydrates
10
ProteinsProteins
0
FatFat
0.5
Effect
UnhappinessMoodle Icon Unhappy.png
-10
Technical
Item ID
Base.JellyBeans

Jellybeans are a non-perishable candy that reduce unhappiness when eaten.

Distribution

Jellybeans can be found in homes, theaters, candy stores, grocery stores, gas stations, and GigaMarts.

Crafting

Main article: Cooking

Evolved recipes

Product Nutrition
Cake
Cake
5
Ice Cream Cone
Ice Cream Cone
5

Trivia

  • This item doesn't have a 3D model currently. When the item is dropped in game, it shows the 2D icon on the ground.

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 Jellybeans
{
    DisplayName         = Jellybeans,
    DisplayCategory     = Food,
    Type                = Food,
    Weight              = 0.1,
    Icon                = Jellybeans,
    EvolvedRecipe       = Cake:5;ConeIcecream:5,
    FoodType            = Candy,
    HungerChange        = -5,
    UnhappyChange       = -10,
    Calories            = 40,
    Carbohydrates       = 10,
    Lipids              = 0.5,
    Proteins            = 0,
    EvolvedRecipeName   = Jellybeans,
}

See also