Compost Bag: Difference between revisions

From PZwiki
(Created page with "{{languages|Compost Bag}} {{Underconstruction}} {{header|The Game World|Items|Farming|type=Farming|version=Version 41|incver=50}} {{Infobox drainable |display_name=Compost Bag...")
 
m (Distribution table fix)
 
(30 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{languages|Compost Bag}}
{{Header|Project Zomboid|Items|Materials|Farming materials}}
{{Underconstruction}}
{{Page version|41.78.16}}
{{header|The Game World|Items|Farming|type=Farming|version=Version 41|incver=50}}
{{Infobox item
{{Infobox drainable
|name=Compost Bag
|display_name=Compost Bag
|model=Compost_Model.png
|name_colour=Drainable
|icon=Compost.png
|name_text_colour=Drainable
|icon_name=Compost Bag
|image=Compost.png
|image_width=120px
|weight=2.0
|weight=2.0
|primary_use=Fertilizing crops
|primary_use=Fertilizing crops
|max_units=4.0
|max_units=4.0
|contents=Compost
|contents=Compost
|class_name=CompostBag
|item_id=CompostBag
}}
}}
A '''compost bag''' is a drainable item that can be used to fertilize player grown crops.
A '''compost bag''' is a drainable item that can be used to fertilize player grown crops. A compost bag can be used 4 times before it is drained. Once the compost bag is drained, an empty [[Sack]] is left. The sack can be used to create another Compost Bag from a [[composter]] as long as the Composter is at least 10% full.


== Usage ==
==Usage==
'''TODO'''
The player can use a compost bag to fertilize crops to increase the rate at which crops grow. The player can fertilize a crop multiple times, but if fertilized too many times, the plant may rot.


== Code ==
It is possible to use the empty [[sack]] as a container afterward.
{{Retrieved|version=41|incver=50}}
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
<pre> item CompostBag
Type = Drainable,
DisplayName = Compost Bag,
Icon = Compost,
Weight = 2.0,
UseDelta = 0.25,
UseWhileEquipped = false,
ReplaceOnDeplete = EmptySandbag,
Tooltip = Tooltip_Fertilizer,
SurvivalGear = TRUE,
ReplaceInSecondHand = Bag_Sandbag_LHand holdingbagleft,
ReplaceInPrimaryHand = Bag_Sandbag_RHand holdingbagright,
</pre>


== See Also ==
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|CompostBag|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>CompostBag distribution
        <span class="mw-customtoggle-togglebox-CompostBag" 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-CompostBag">
    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
    |-
    | Farmer
    | {{ll|crate}}
    | 3.98%
    |-
    | Farmer
    | {{ll|metal_shelves}}
    | 3.98%
    |-
    | closet
    | {{ll|crate}}
    | 3.98%
    |-
    | factory
    | {{ll|crate}}
    | 3.98%
    |-
    | factory
    | {{ll|metal_shelves}}
    | 3.98%
    |-
    | farmstorage
    | {{ll|crate}}
    | 3.98%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 3.98%
    |-
    | garagestorage
    | {{ll|crate}}
    | 3.98%
    |-
    | generalstore
    | {{ll|metal_shelves}}
    | 3.98%
    |-
    | generalstore
    | {{ll|shelves}}
    | 3.98%
    |-
    | generalstorestorage
    | {{ll|metal_shelves}}
    | 3.98%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 3.98%
    |-
    | gigamart
    | {{ll|shelves}}
    | 3.98%
    |-
    | shed
    | {{ll|crate}}
    | 3.98%
    |-
    | storageunit
    | {{ll|crate}}
    | 3.98%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 3.98%
    |-
    | toolstore
    | {{ll|metal_shelves}}
    | 3.98%
    |-
    | toolstore
    | {{ll|shelves}}
    | 3.98%
    |-
    | toolstorestorage
    | {{ll|metal_shelves}}
    | 3.98%
    |-
    | warehouse
    | {{ll|crate}}
    | 3.98%
    |-
    | warehouse
    | {{ll|metal_shelves}}
    | 3.98%
    |}
</div>
<div id="vehicles" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Vehicles}}
    ! Type
    ! Container
    ! Effective chance
    |-
    | Farmer
    | {{ll|Truck Bed}}
    | 23.28%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-CompostBag" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|CompostBag|41.78.16-->
 
==Code==
 
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 2172
  | source = newitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item CompostBag
    {
        DisplayCategory = Gardening,
        Type = Drainable,
        DisplayName = Compost Bag,
        Icon = Compost,
        Weight = 2.0,
        UseDelta = 0.25,
        UseWhileEquipped =     false,
        ReplaceOnDeplete = EmptySandbag,
        Tooltip = Tooltip_Fertilizer,
        SurvivalGear = TRUE,
        ReplaceInSecondHand = Bag_Sandbag_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_Sandbag_RHand holdingbagright,
        WorldStaticModel = CompostBag,
    }
}}
}}
 
==See also==
*[[NPK Fertilizer]]
*[[NPK Fertilizer]]
{{Navbox items|farming_materials}}

Latest revision as of 19:05, 30 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]
Compost Bag
Compost Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
2.0
Function
Fertilizing crops
Properties
Contents
Compost
Capacity
4.0 units
Technical
Item ID
CompostBag

A compost bag is a drainable item that can be used to fertilize player grown crops. A compost bag can be used 4 times before it is drained. Once the compost bag is drained, an empty Sack is left. The sack can be used to create another Compost Bag from a composter as long as the Composter is at least 10% full.

Usage

The player can use a compost bag to fertilize crops to increase the rate at which crops grow. The player can fertilize a crop multiple times, but if fertilized too many times, the plant may rot.

It is possible to use the empty sack as a container afterward.

Distribution

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

CompostBag 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
Farmer crate 3.98%
Farmer metal_shelves 3.98%
closet crate 3.98%
factory crate 3.98%
factory metal_shelves 3.98%
farmstorage crate 3.98%
farmstorage metal_shelves 3.98%
garagestorage crate 3.98%
generalstore metal_shelves 3.98%
generalstore shelves 3.98%
generalstorestorage metal_shelves 3.98%
generalstorestorage shelves 3.98%
gigamart shelves 3.98%
shed crate 3.98%
storageunit crate 3.98%
storageunit metal_shelves 3.98%
toolstore metal_shelves 3.98%
toolstore shelves 3.98%
toolstorestorage metal_shelves 3.98%
warehouse crate 3.98%
warehouse metal_shelves 3.98%
Vehicles
Type Container Effective chance
Farmer Trunk 23.28%

Code

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

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item CompostBag
    {
        DisplayCategory = Gardening,
        Type				=		Drainable,
        DisplayName			=		Compost Bag,
        Icon				=		Compost,
        Weight				=		2.0,
        UseDelta			=		0.25,
        UseWhileEquipped	=	    false,
        ReplaceOnDeplete	=	EmptySandbag,
        Tooltip = Tooltip_Fertilizer,
        SurvivalGear = TRUE,
        ReplaceInSecondHand = Bag_Sandbag_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_Sandbag_RHand holdingbagright,
        WorldStaticModel = CompostBag,
    }

See also