Apple: Difference between revisions

From PZwiki
m (Minor)
m (Automated Formatting)
(27 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Items|Food|Fruit}}
{{Header|Project Zomboid|Items|Food|Perishable Food|Fruit|type=Food|version=Version 41|incver=73}}
{{Page version|41.78.16}}
{{Infobox food
{{Infobox item
|display_name=Apple
|name=Apple
|name_colour=Food
|model=Apple_Model.png
|name_text_colour=Food
|icon=Apple.png
|image=Apple_Model.png
|icon_name=Apple
|alternate_image=Apple.png
|model2=AppleRotten_Model.png|Rotten apple model when placed in the world.
|alternate_name=Apple
|icon2=AppleRotten.png
|alternate_image2=AppleRotten.png
|icon_name2=Apple (Rotten)
|alternate_name2=Apple (Rotten)
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
Line 23: Line 22:
|carbohydrates=25.13
|carbohydrates=25.13
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Apple
|item_id=Base.Apple
}}
}}
'''Apple''' is a [[Food#Perishable|perishable]] food [[item]].  
An '''apple''' is a perishable [[food]] [[Items|item]].


==Usage==
==Usage==
===Trapping===
===Trapping===
{{Main|Trapping}}
{{Main|Trapping}}
Apple can be used as bait in [[Trapping|traps]] to capture [[Dead_Rabbit|rabbits]], [[Dead Mouse|mice]], [[Dead_Rat|rats]] and [[Dead_Squirrel|squirrels]].
Apple can be used as bait in [[Trapping|traps]] to capture [[Dead Rabbit|rabbits]], [[Dead Mouse|mice]], [[Dead_Rat|rats]], and [[Dead Squirrel|squirrels]].


===Consumable properties===
===Consumable properties===
Apple can be eaten, providing the player with some positive effects, however, these will become negative the longer it's left to perish.  
Apple can be eaten, providing the player with some positive effects, however, these will become negative the longer it's left to perish.
{{Consumables2
{{Consumables
|image = Apple.png
|image = Apple.png
|hunger = -16
|hunger = -16
Line 55: Line 54:


===Evolved recipes===
===Evolved recipes===
Apple is a [[cooking]] [[Recipe Ingredients|ingredient]].
Apple is a [[cooking]] [[Recipe ingredients|ingredient]].
{{EvolvedRecipesForItem|Cake=16|FruitSalad=8|Pancakes=8|Waffles=8|Muffin=8|Pie=16|Oatmeal=4|Salad=8|}}
{{EvolvedRecipesForItem
|cake=16
|fruitsalad=8
|pancakes=8
|waffles=8
|muffin=8
|pie=16
|oatmeal=4
|salad=8
}}
 
===Sack of Apples===
{{Crafting/sandbox2
|apple
}}


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|rowspan="3"|all
|[[fridge]]
|4
|2
|-
|[[fridge]]
|4
|2
|-
|[[fridge]]
|4
|2
|-
|bakery
|[[fridge]]
|4
|8
|-
|breakroom
|[[fridge]]
|4
|8
|-
|cafe
|[[fridge]]
|4
|8
|-
|rowspan="2"|gigamart
|[[grocerstand]]
|4
|1
|-
|[[grocerstand]]
|4
|2
|-
|kitchen_crepe
|[[fridge]]
|4
|8
|}
Apple is often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]]. As of build 41, they can also be found while foraging.
Apple is often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]]. As of build 41, they can also be found while foraging.


==Gallery==
Sacks of apples can be found in grocery stores and warehouses.
<gallery>
Apple Model.png|Apple model when placed in the world.
AppleRotten Model.png|Rotten apple model when placed in the world.
</gallery>


==Code==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|[[File:Apple.png]] {{ID|Base.Apple}}<br>
{{Retrieved|version=41|incver=73}}
{{CodeSnip
<pre>
  | lang = java
item Apple
  | line = true
  | start = 1630
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Apple
{
DisplayName = Apple,
DisplayName = Apple,
DisplayCategory = Food,
DisplayCategory = Food,
Line 90: Line 158:
StaticModel = RoundFood_Red,
StaticModel = RoundFood_Red,
WorldStaticModel = Apple_Ground,
WorldStaticModel = Apple_Ground,
</pre>
}
}}
 
[[File:Sandbag.png]] {{ID|Base.SackProduce_Apple}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 8018
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item SackProduce_Apple
{
DisplayName = Sack of Apples,
DisplayCategory = Food,
Type = Food,
Weight = 2,
Icon = Sandbag,
CantEat = TRUE,
DaysFresh = 5,
DaysTotallyRotten = 8,
WorldStaticModel = SandBag,
}
}}
}}


==See also==
==See also==
Line 98: Line 191:
*[[Lemon]]
*[[Lemon]]


{{Navbox food}}
{{Navbox items|plants}}
 
 
[[Category:Perishable food]]

Revision as of 06:11, 14 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Apple
Apple Model.png
AppleRotten Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Days fresh
5 days
Days until rotten
8 days
Nutrition
HungerMoodle Icon Hungry.png
-16
ThirstMoodle Icon Thirsty.png
-7
CaloriesCalories
95
CarbohydratesCarbohydrates
25.13
ProteinsProteins
0.47
FatFat
0.31
Technical
Item ID
Base.Apple

An apple is a perishable food item.

Usage

Trapping

Main article: Trapping

Apple can be used as bait in traps to capture rabbits, mice, rats, and squirrels.

Consumable properties

Apple 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

Apple.png
Hunger: -16


Apple.png
Hunger: -12
Boredom: +10
Unhappiness: +10

AppleRotten.png
Hunger: -7
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

Main article: Cooking

Evolved recipes

Apple is a cooking ingredient.

Product Nutrition
Salad
Salad
8
Fruit Salad
Fruit Salad
8
Pie (savory)
Pie (savory)
16
Cake
Cake
16
Muffin
Muffin
8
Pancakes
Pancakes
8
Waffles
Waffles
8
Oatmeal
Oatmeal
4

Sack of Apples

Product Ingredients Tools Requirements Workstation XP
Apple.png
Apple ×12
Sandbag.png Sack of Apples ×1 none none none none

Distribution

The loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
all fridge 4 2
fridge 4 2
fridge 4 2
bakery fridge 4 8
breakroom fridge 4 8
cafe fridge 4 8
gigamart grocerstand 4 1
grocerstand 4 2
kitchen_crepe fridge 4 8

Apple is often found in refrigerators and grocery displays. As of build 41, they can also be found while foraging.

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

Code

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

Apple.png Base.Apple
Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item Apple
	{
		DisplayName = Apple,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.2,
		Icon = Apple,
		EvolvedRecipe = Cake:16;FruitSalad:8;Pancakes:8;Waffles:8;Muffin:8;PieSweet:16;Oatmeal:4;Salad:8,
		FoodType = Fruits,
		DaysFresh = 5,
		DaysTotallyRotten = 8,
		HungerChange = -16,
		ThirstChange = -7,
		Calories = 95,
		Carbohydrates = 25.13,
		Lipids = 0.31,
		Proteins = 0.47,
		CustomEatSound = EatingFruit,
		StaticModel = RoundFood_Red,
		WorldStaticModel = Apple_Ground,
	}

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

Retrieved: Build 41.78.16
item SackProduce_Apple
	{
		DisplayName = Sack of Apples,
		DisplayCategory = Food,
		Type = Food,
		Weight = 2,
		Icon = Sandbag,
		CantEat = TRUE,
		DaysFresh = 5,
		DaysTotallyRotten = 8,
		WorldStaticModel = SandBag,
	}

See also