Cabbage: Difference between revisions

From PZwiki
(+3d model to infobox)
(Added information about sacks, updated code box)
Line 63: Line 63:
Cabbage is a [[cooking]] [[Recipe Ingredients|ingredient]].
Cabbage is a [[cooking]] [[Recipe Ingredients|ingredient]].
{{EvolvedRecipesForItem|Soup=15|Stew=15|StirFry=15|Sandwich=10|Burger=10|Salad=15|RoastedVegetables=15|Taco=10|Burrito=10|}}
{{EvolvedRecipesForItem|Soup=15|Stew=15|StirFry=15|Sandwich=10|Burger=10|Salad=15|RoastedVegetables=15|Taco=10|Burrito=10|}}
===Sack of Cabbage===
{{Crafting header|ing=1}}
{{Crafting general|051|ing=1}}
|}


==Distribution==
==Distribution==
Cabbage is often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]].
Cabbage is often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]].
Sacks of cabbage can be found in grocery stores and warehouses.


===Farming===
===Farming===
Line 80: Line 87:


==Code==
==Code==
'''''From farming.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|[[File:Cabbage.png]] {{ID|Base.Cabbage}}<br>
{{Retrieved|version=41|incver=73}}
{{CodeSnip
<pre>
  | lang = java
  item Cabbage
  | line = true
        DisplayCategory = Food,
  | start = 117
  | source = farming.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
    item Cabbage
{
    DisplayCategory = Food,
Type = Food,
Type = Food,
DisplayName = Cabbage,
DisplayName = Cabbage,
Icon = Cabbage,
Icon = Cabbage,
Weight = 0.2,
Weight = 0.2,
HungerChange         = -24,
HungerChange = -24,
ThirstChange         = -15,
ThirstChange = -15,
DaysFresh = 2,
DaysFresh = 2,
DaysTotallyRotten         = 4,
DaysTotallyRotten = 4,
EvolvedRecipe      =      Soup:12;Stew:12;Stir fry Griddle Pan:12;Stir fry:12;Sandwich:6;Sandwich Baguette:6;Burger:6;Salad:12;Roasted Vegetables:12;Taco:6;Burrito:6,
EvolvedRecipe      =      Soup:12;Stew:12;Stir fry Griddle Pan:12;Stir fry:12;Sandwich:6;Sandwich Baguette:6;Burger:6;Salad:12;Roasted Vegetables:12;Taco:6;Burrito:6,
ThirstChange = -10,
ThirstChange = -10,
FoodType    =  Vegetables,
FoodType    =  Vegetables,
                Carbohydrates = 41.41,
        Carbohydrates = 41.41,
                Proteins = 9.14,
        Proteins = 9.14,
                Lipids = 0.71,
        Lipids = 0.71,
                Calories = 178,
        Calories = 178,
                StaticModel = RoundFood_Green,
        StaticModel = RoundFood_Green,
                WorldStaticModel = Cabbage_Ground,
        WorldStaticModel = Cabbage_Ground,
</pre>
}
}}
 
[[File:Sandbag.png]] {{ID|Base.SackProduce_Cabbage}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 8057
  | source = items_food.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
item SackProduce_Cabbage
{
DisplayName = Sack of Cabbages,
DisplayCategory = Food,
Type = Food,
Weight = 2,
Icon = Sandbag,
CantEat = TRUE,
DaysFresh = 2,
DaysTotallyRotten = 4,
WorldStaticModel = SandBag,
}
}}
}}


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

Revision as of 13:26, 14 January 2024

Cabbage
Cabbage
Cabbage Cabbage (Rotten)
General
Category Food
Encumbrance
Heavy Load
0.2
Days until stale 2 days
Days until rotten 2 days
Nutrition
Hunger
Hunger
-25
Thirst
Thirst
-15
Calories
Calories
178
Carbohydrates
Carbohydrates
41.41
Proteins
Proteins
9.14
Fat
Fat
0.71
Technical details
Item ID farming.Cabbage

Cabbage is a perishable food item.

Usage

Trapping

Main article: Trapping

Cabbage can be used as bait in traps to capture rabbits.

Consumable properties

Cabbage can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.

Fresh Stale Rotten

Cabbage.png
Hunger: -24


Cabbage.png
Hunger: -18
Boredom: +10
Unhappiness: +10

Cabbage Rotten.png
Hunger: -10
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

Cabbage can be preserved to extend its lifespan by using a jar.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4 Ingredient 5 Ingredient 6
JarGreen.png
Jar of Cabbage
2.5 Cooking none JarEmpty2.png
Jar
(consumed)
Jar Lid
Jar Lid
(consumed)
Cabbage.png
Cabbage x3
(consumed)
WaterDrop.png
Water
(10 units)

(consumed)
Vinegar.png
Vinegar
(2 units)

(consumed)

(1 unit)

(consumed)

Evolved recipes

Cabbage is a cooking ingredient.

Product Nutrition
Soup
Soup
15
Stew
Stew
15
Salad
Salad
15
Stir Fry
Stir Fry
15
Roasted Vegetables
Roasted Vegetables
15
Sandwich
Sandwich
10
Burger
Burger
10
Taco
Taco
10
Burrito
Burrito
10

Sack of Cabbage

Product XP gained Skill(s) Recipe Ingredient 1
Cabbage.png
Cabbage x12
0 XP none Sandbag.png
Sack of Cabbage
(consumed)

Distribution

Cabbage is often found in refrigerators and grocery displays.

Sacks of cabbage can be found in grocery stores and warehouses.

Farming

Cabbage can be grown by farming with cabbage seeds.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
Cabbage CropB.png
Cabbages
0 XP none Plowed land.png
Plowed Land
(consumed)
TZ CabbageLettuceSeeds.png
Cabbage Seeds x9
(consumed)
WaterDrop.png
Water
(85+ units)

(consumed)

Gallery

Code

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

Cabbage.png Base.Cabbage
Source: ProjectZomboid\media\scripts\farming.txt

Retrieved: Build 41.78.16
item Cabbage
	{
	    DisplayCategory = Food,
		Type				=		Food,
		DisplayName			=		Cabbage,
		Icon				=		Cabbage,
		Weight				=		0.2,
		HungerChange 		=		-24,
		ThirstChange		=		-15,
		DaysFresh 			=		2,
		DaysTotallyRotten 	=	 	4,
		EvolvedRecipe       =       Soup:12;Stew:12;Stir fry Griddle Pan:12;Stir fry:12;Sandwich:6;Sandwich Baguette:6;Burger:6;Salad:12;Roasted Vegetables:12;Taco:6;Burrito:6,
		ThirstChange	=	-10,
		FoodType    =   Vegetables,
        Carbohydrates = 41.41,
        Proteins = 9.14,
        Lipids = 0.71,
        Calories = 178,
        StaticModel = RoundFood_Green,
        WorldStaticModel = Cabbage_Ground,
	}

Sandbag.png Base.SackProduce_Cabbage
Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item SackProduce_Cabbage
	{
		DisplayName = Sack of Cabbages,
		DisplayCategory = Food,
		Type = Food,
		Weight = 2,
		Icon = Sandbag,
		CantEat = TRUE,
		DaysFresh = 2,
		DaysTotallyRotten = 4,
		WorldStaticModel = SandBag,
	}

See also