Milk: Difference between revisions

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


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=40.7}}
| {{CodeSnip
<pre>
  | lang = java
item Milk
  | line = false
HungerChange = -10,
  | start =
Weight = 1.0,
  | source = newitems.txt
AlwaysWelcomeGift = true,
  | retrieved = true
Type = Food,
  | version = 40
ThirstChange = -100,
  | incver = 7
DisplayName = Milk,
  | code =
Icon = Milk,
item Milk
        DaysFresh = 4,
{
        DaysTotallyRotten = 7,
  HungerChange           = -10,
CustomContextMenu = Drink,
  Weight                 = 1.0,
CustomEatSound = PZ_DrinkingFromBottle,
  AlwaysWelcomeGift     = true,
      Carbohydrates = 13,
  Type                   = Food,
        Proteins = 8,
  ThirstChange           = -100,
        Lipids = 2.5,
  DisplayName           = Milk,
        Calories = 110,
  Icon                   = Milk,
        Packaged = TRUE,
  DaysFresh             = 4,
        CantBeFrozen = TRUE,
  DaysTotallyRotten     = 7,
</pre>
  CustomContextMenu     = Drink,
  CustomEatSound         = PZ_DrinkingFromBottle,
  Carbohydrates         = 13,
  Proteins               = 8,
  Lipids                 = 2.5,
  Calories               = 110,
  Packaged               = TRUE,
  CantBeFrozen           = TRUE,
}
  }}
}}


==Trivia==
==Trivia==

Revision as of 03:17, 1 February 2024

Template:Header/sandbox2

Spiffo controlyourself.png
This page was last updated for an older version (40.7).
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.
Milk
MilkCarton Model.png
Milk (Rotten)
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
1.0
Properties
Packaged
True
Days fresh
4 days
Days until rotten
7 days
Nutrition
HungerMoodle Icon Hungry.png
-10
ThirstMoodle Icon Thirsty.png
-100
CaloriesCalories
110
CarbohydratesCarbohydrates
13
ProteinsProteins
8
FatFat
2.5
Technical
Item ID
Base.Milk

Milk is a perishable food item used in cooking.

Usage

Consumable properties

Milk 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

Milk.png
Hunger: -10


Milk.png
Hunger: -7
Boredom: +10
Unhappiness: +10

MilkRotten.png
Hunger: -4
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

Farming

Main article: Farming

Milk is used to make mildew spray; a pesticide for combating the mildew plant disease.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
TZ GardeningSprayCan.png
Mildew Spray
0 XP none Farmer
OR
MagazineFish.png
Gardening Spray Can (Empty)
Gardening Spray Can (Empty)
(consumed)
Milk.png
Milk
(consumed)

Cooking

Main article: Cooking

Milk is a cooking ingredient.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4 Ingredient 5 Ingredient 6 Ingredient 7
CakeBatter.png
Cake Batter
2.5 Cooking none Chef
OR
Cook (trait)
OR
Good Cooking Magazine Vol. 1
Bowl.png
Bowl
(consumed)

(keep)

(1 unit)

(consumed)
Butter.png
Butter
(15 units)

(consumed)

(3 units)

(consumed)
One of:
Egg.png Egg
WildEggs.png Wild Eggs

(consumed)
Yeast.png
Yeast
(consumed)
Oatmeal.png
Bowl of Cereal
0.75 Cooking none Bowl.png
Bowl
(consumed)
Cereal.png
Cereal
(5 units)

(consumed)

(consumed)




Muffintray Batter.png
Muffin Baking Tray (Uncooked)
0.75 Cooking none
(keep)
Muffin Tray
Muffin Tray
(consumed)
Bowl.png
Empty Bowl
(keep)
One of:
Egg.png Egg x2
WildEggs.png Wild Eggs x2

(consumed)

(consumed)

(consumed)

(consumed)

Evolved recipes

Milk is a cooking ingredient.

Product Nutrition
Soup
Soup
5
Stew
Stew
5
Oatmeal
Oatmeal
5
Beverage
Beverage
5

Distribution

Milk is an uncommon item and can only be found inside refrigerators.

Code

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

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 40.7
item Milk
{
  HungerChange           = -10,
  Weight                 = 1.0,
  AlwaysWelcomeGift      = true,
  Type                   = Food,
  ThirstChange           = -100,
  DisplayName            = Milk,
  Icon                   = Milk,
  DaysFresh              = 4,
  DaysTotallyRotten      = 7,
  CustomContextMenu      = Drink,
  CustomEatSound         = PZ_DrinkingFromBottle,
  Carbohydrates          = 13,
  Proteins               = 8,
  Lipids                 = 2.5,
  Calories               = 110,
  Packaged               = TRUE,
  CantBeFrozen           = TRUE,
}

Trivia

  • The photo of the missing person on the milk carton is a reference to a method that was used in real life to put pictures of missing children on milk cartons so when someone saw them, one could call the authorities to notify. That method was used and started somewhere in December 1984 or January 1985 and was abandoned in 1996 for having little success and scaring the children who saw the photos of the missing children on the milk cartons every morning, see the Wikipedia article for more information.

See also