Cockroach: Difference between revisions

From PZwiki
m (Update links)
m (Distribution table fix)
 
(33 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|Project Zomboid|Items|Food|Non-Perishable Food|type=Food|version=Version 41|incver=68}}{{Infobox food
{{Header|Project Zomboid|Items|Food|Protein|Insects}}
|display_name=Cockroach
{{Page version|41.78.16}}
|name_colour=Food
{{Infobox item
|name_text_colour=Food
|name=Cockroach
|image=Cockroach Model.png
|model=Cockroach_Model.png
|image_width=300px
|icon=Cockroach.png
|alternate_image=Cockroach.png
|icon_name=Cockroach
|alternate_name=Cockroach
|alternate_link=
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
Line 13: Line 11:
|function=&bull; Bait in [[Fishing]]
|function=&bull; Bait in [[Fishing]]
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-11
|hunger_change=-5
|calories=30
|calories=30
|lipids=3.9
|lipids=3.9
Line 24: Line 22:
|burn_minutes=25
|burn_minutes=25
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Cockroach
|item_id=Base.Cockroach
}}A '''cockroach''' is a [[Food#Non-Perishable|non-perishable]] food used in [[fishing]].
}}
A '''cockroach''' is a non-perishable [[food]] used in [[fishing]].


==Usage==
==Usage==
===Fishing===
===Fishing===
{{Main|Fishing}}
{{Main|Fishing}}
A cockroach can be used as bait for [[Fishing|fishing]] to catch [[bass]], [[catfish]], [[crappie]], [[perch]], [[sunfish]] and [[trout]].
A cockroach can be used as bait for [[fishing]] to catch [[bass]], [[catfish]], [[crappie]], [[perch]], [[sunfish]], and [[trout]].
 
===Trapping===
{{Main|Trapping}}
 
A cockroach can be used as bait for [[trapping]] to catch a [[Dead Bird|small bird]] in a [[Stick Trap|stick trap]].


===Consumable properties===
===Consumable properties===
Cockroaches can be consumed, reducing [[Moodles#Hungry|hunger]] at the cost of a lot of [[Moodles#Unhappiness|unhappiness]]. They can be cooked to reduce more hunger, however the unhappiness effect will remain.  
Cockroaches can be consumed, reducing [[Hungry|hunger]] at the cost of a lot of [[unhappiness]]. They can be cooked to reduce more hunger, however the unhappiness effect will remain.
{{Consumables2
{{Consumables
  |position = left
  |position = left
  |image = Cockroach.png
  |image = Cockroach.png
Line 41: Line 44:
  |burned image = Cockroach.png
  |burned image = Cockroach.png
  |cookable = 1
  |cookable = 1
  |hunger = -11
  |hunger = -5
  |unhappiness = +20
  |unhappiness = +20
  |cooked hunger = -14
  |cooked hunger = -7
  |cooked unhappiness = +20
  |cooked unhappiness = +20
  |cooked boredom = 0
  |cooked boredom = 0
  |burned hunger = -3
  |burned hunger = -2
  |burned boredom = +20
  |burned boredom = +20
  |burned unhappiness = +40
  |burned unhappiness = +40
Line 52: Line 55:


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|Cockroach|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Cockroach distribution
        <span class="mw-customtoggle-togglebox-Cockroach" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Cockroach">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | all
    | {{ll|bin}}
    | 6.29%
    |-
    | bar
    | {{ll|bin}}
    | 6.29%
    |-
    | barkitchen
    | {{ll|bin}}
    | 6.29%
    |-
    | barstorage
    | {{ll|bin}}
    | 6.29%
    |-
    | beergarden
    | {{ll|bin}}
    | 6.29%
    |-
    | garagestorage
    | {{ll|crate}}
    | 15.1%
    |-
    | motelroomoccupied
    | {{ll|bin}}
    | 6.29%
    |-
    | storageunit
    | {{ll|crate}}
    | 15.1%
    |}
</div>
    </div><div style="clear: both;"></div>
    {| class="wikitable theme-red" style="width: 98%;"
    |+ {{ll|Foraging}}
    ! rowspan="2" | Amount
    ! rowspan="2" | Skill level
    ! rowspan="2" | Biomes
    ! colspan="4" style="text-align: center;" | Weather modifiers
    ! colspan="3" style="text-align: center;" | Month modifiers
    |-
    ! Snow
    ! Rain
    ! Day
    ! Night
    ! Months available
    ! Bonus months
    ! Malus months
    |-
    | ---
    | 0
    | Forest  10<br> DeepForest  10<br> Vegitation  10<br> FarmLand  10<br> Farm  10<br> TrailerPark  10<br> TownZone  10<br> Nav  10
    | -20
    | -
    | -
    | -
    | -
    | -
    | March<br>April
    |}
    </div></div><div class="toggle large mw-customtoggle-togglebox-Cockroach" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Cockroach|41.78.16-->


===Building===
===Building===
Line 58: Line 141:
===Foraging===
===Foraging===
{{Main|Foraging}}
{{Main|Foraging}}
When foraging (investigating area), cockroaches can be found on <code>natural_exterior</code> [[Tiles|tiles]], such as: grass, sand and gravel. They're most commonly found in forests and vegetation areas, however cannot be found during [[Weather#Winter|winter]] or the snow.  
When foraging (investigating area), cockroaches can be found on <code>natural_exterior</code> [[tiles]], such as: grass, sand and gravel. They're most commonly found in forests and vegetation areas, however cannot be found during [[Weather#Winter|winter]] or the snow.


Having the [[Occupation#Fisherman|fisherman occupation]] or [[Traits#Hobbies|angler trait]] will increase the [[player|player's]] ability to find cockroaches.
Having the [[Occupation#Fisherman|fisherman occupation]] or [[Traits#Hobbies|angler trait]] will increase the [[player|player's]] ability to find cockroaches.


Cockroaches are part of the "Animals" loot category.  
Cockroaches are part of the "Animals" loot category.
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 4244
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Cockroach
{
DisplayName = Cockroach,
DisplayCategory = Food,
Type = Food,
Weight = 0.1,
Icon = Cockroach,
FishingLure = true,
IsCookable = TRUE,
MinutesToCook = 5,
MinutesToBurn = 25,
HungerChange = -5,
UnhappyChange = 20,
Calories = 30,
Carbohydrates = 1.27,
Lipids = 3.9,
Proteins = 7.41,
WorldStaticModel = Cockroach_Ground,
}
}}
}}


==See also==
==See also==
Line 69: Line 184:
*[[Worm]]
*[[Worm]]


{{Navbox food}}
{{Navbox items|meat}}
 


[[Category:Animal]]
[[Category:Non-perishable food]]

Latest revision as of 19:04, 30 April 2024

Project ZomboidItemsFoodProteinInsectsCockroach
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Cockroach
Cockroach Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Function
• Bait in Fishing
Nutrition
HungerMoodle Icon Hungry.png
-5
CaloriesCalories
30
CarbohydratesCarbohydrates
1.27
ProteinsProteins
7.41
FatFat
3.9
Effect
UnhappinessMoodle Icon Unhappy.png
+20
Cooking
Time until cooked
5 minutes
Time until burned
25 minutes
Technical
Item ID
Base.Cockroach

A cockroach is a non-perishable food used in fishing.

Usage

Fishing

Main article: Fishing

A cockroach can be used as bait for fishing to catch bass, catfish, crappie, perch, sunfish, and trout.

Trapping

Main article: Trapping

A cockroach can be used as bait for trapping to catch a small bird in a stick trap.

Consumable properties

Cockroaches can be consumed, reducing hunger at the cost of a lot of unhappiness. They can be cooked to reduce more hunger, however the unhappiness effect will remain.

Uncooked Cooked Burned

Cockroach.png
Hunger: -5

Unhappiness: +20

Cockroach.png
Hunger: -7

Unhappiness: +20

Cockroach.png
Hunger: -2
Boredom: +20
Unhappiness: +40
Dangerous, will cause sickness.

Distribution

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

Cockroach distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
all bin 6.29%
bar bin 6.29%
barkitchen bin 6.29%
barstorage bin 6.29%
beergarden bin 6.29%
garagestorage crate 15.1%
motelroomoccupied bin 6.29%
storageunit crate 15.1%
Foraging
Amount Skill level Biomes Weather modifiers Month modifiers
Snow Rain Day Night Months available Bonus months Malus months
--- 0 Forest 10
DeepForest 10
Vegitation 10
FarmLand 10
Farm 10
TrailerPark 10
TownZone 10
Nav 10
-20 - - - - - March
April

Building

Cockroaches can be found in bins and crates of spoiled food.

Foraging

Main article: Foraging

When foraging (investigating area), cockroaches can be found on natural_exterior tiles, such as: grass, sand and gravel. They're most commonly found in forests and vegetation areas, however cannot be found during winter or the snow.

Having the fisherman occupation or angler trait will increase the player's ability to find cockroaches.

Cockroaches are part of the "Animals" loot category.

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.78.16
item Cockroach
	{
		DisplayName = Cockroach,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.1,
		Icon = Cockroach,
		FishingLure = true,
		IsCookable = TRUE,
		MinutesToCook = 5,
		MinutesToBurn = 25,
		HungerChange = -5,
		UnhappyChange = 20,
		Calories = 30,
		Carbohydrates = 1.27,
		Lipids = 3.9,
		Proteins = 7.41,
		WorldStaticModel = Cockroach_Ground,
	}

See also