NPK Fertilizer: Difference between revisions

From PZwiki
(→‎Code: added source and retrieved)
(Add distro table)
 
(25 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{languages|NPK_Fertilizer}}
{{Header|Project Zomboid|Items|Materials|Farming materials}}
{{header|The Game World|Items|Farming|type=Farming|version=Version 39|incver=67.5}}{{Infobox drainable
{{Page version|41.78.16}}
|display_name=NPK Fertilizer
{{Infobox item
|name_colour = Farming
|name=NPK Fertilizer
|name_text_colour = Farming
|model=NPKFertilizer_Model.png
|image=TZ_IndieStoneNPK.png
|icon=TZ_IndieStoneNPK.png
|weight=4
|icon_name=NPK Fertilizer
|primary_use = [[Farming]]
|icon2=TZ_IndieStoneNPK.png
|icon_name2=Empty Fertilizer
|weight=2
|primary_use=[[Farming]]
|max_units=4
|max_units=4
|contents=Fertilizer
|contents=Fertilizer
|class_name=Base.Fertilizer
|item_id=Base.Fertilizer<br>Base.FertilizerEmpty
}}{{quote|text=Used on crops to increase growth speed and harvest.|author=In-game tooltip}}
}}
{{Quote|text=Used on crops to increase growth speed and harvest.|author=In-game tooltip}}
'''NPK fertilizer''' is a drainable item used in [[farming]].
'''NPK fertilizer''' is a drainable item used in [[farming]].


==Usage==
==Usage==
===Farming===
===Farming===
:''For main article, see: [[Farming]]''
{{Main|Farming}}
A single full bag contains four uses which are used with planted crops to increase the speed of growth for that particular plant.
A single full bag contains four uses which are used with planted crops to increase the speed of growth for that particular plant, it will remove 20 hours from the current growth cycle of the plant. If there are less than 20 hours remaining on that growth cycle, it will immediately proceed to the next level and the extra hours will be lost. Fertilizing a plant 5 times in total will kill it instantly.


==Distribution==
==Distribution==
NPK fertilizer can be found in sheds and [[Containers#Crates|crates]] of warehouse type buildings.
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|Fertilizer|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Fertilizer distribution
        <span class="mw-customtoggle-togglebox-Fertilizer" 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-Fertilizer">
    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 sortable" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | Farmer
    | {{ll|crate}}
    | 6.29%
    |-
    | Farmer
    | {{ll|crate}}
    | 23.28%
    |-
    | Farmer
    | {{ll|crate}}
    | 41.14%
    |-
    | Farmer
    | {{ll|crate}}
    | 76.55%
    |-
    | Farmer
    | {{ll|metal_shelves}}
    | 6.29%
    |-
    | Farmer
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | Farmer
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | Farmer
    | {{ll|metal_shelves}}
    | 76.55%
    |-
    | all
    | {{ll|crate}}
    | 1.61%
    |-
    | closet
    | {{ll|crate}}
    | 6.29%
    |-
    | factory
    | {{ll|crate}}
    | 6.29%
    |-
    | factory
    | {{ll|metal_shelves}}
    | 6.29%
    |-
    | farmstorage
    | {{ll|crate}}
    | 6.29%
    |-
    | farmstorage
    | {{ll|crate}}
    | 23.28%
    |-
    | farmstorage
    | {{ll|crate}}
    | 41.14%
    |-
    | farmstorage
    | {{ll|crate}}
    | 76.55%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 6.29%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 76.55%
    |-
    | garagestorage
    | {{ll|crate}}
    | 6.29%
    |-
    | garagestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | garagestorage
    | {{ll|crate}}
    | 41.14%
    |-
    | garagestorage
    | {{ll|crate}}
    | 76.55%
    |-
    | gardenstore
    | {{ll|crate}}
    | 23.28%
    |-
    | gardenstore
    | {{ll|crate}}
    | 41.14%
    |-
    | gardenstore
    | {{ll|crate}}
    | 76.55%
    |-
    | generalstore
    | {{ll|metal_shelves}}
    | 6.29%
    |-
    | generalstore
    | {{ll|shelves}}
    | 6.29%
    |-
    | generalstorestorage
    | {{ll|metal_shelves}}
    | 6.29%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 6.29%
    |-
    | gigamart
    | {{ll|shelves}}
    | 6.29%
    |-
    | shed
    | {{ll|crate}}
    | 6.29%
    |-
    | shed
    | {{ll|crate}}
    | 23.28%
    |-
    | shed
    | {{ll|crate}}
    | 41.14%
    |-
    | shed
    | {{ll|crate}}
    | 76.55%
    |-
    | storageunit
    | {{ll|crate}}
    | 6.29%
    |-
    | storageunit
    | {{ll|crate}}
    | 23.28%
    |-
    | storageunit
    | {{ll|crate}}
    | 41.14%
    |-
    | storageunit
    | {{ll|crate}}
    | 76.55%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 6.29%
    |-
    | toolstore
    | {{ll|metal_shelves}}
    | 6.29%
    |-
    | toolstore
    | {{ll|shelves}}
    | 6.29%
    |-
    | toolstorestorage
    | {{ll|metal_shelves}}
    | 6.29%
    |-
    | warehouse
    | {{ll|crate}}
    | 6.29%
    |-
    | warehouse
    | {{ll|metal_shelves}}
    | 6.29%
    |}
</div>
<div id="vehicles" style="flex-basis: 30%;">
    {| class="wikitable theme-red sortable" 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-Fertilizer" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Fertilizer|41.78.16-->


==Trivia==
==Trivia==
*The letters "NPK" represents the atomic symbol for Nitrogen (N), Phosphorous (P) and Potassium (K), which are vital to plant health and growth.
*The letters "NPK" represents the atomic symbol for Nitrogen (N), Phosphorous (P) and Potassium (K), which are vital to plant health and growth.


== Code ==
==Code==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''


''NPK Fertilizer'' [[File:NPK Fertilizer.png]]
{{CodeBox|[[File:Fertilizer.png]] {{ID|Base.Fertilizer}}<br>
{{Retrieved|version=39|incver=67.5}}
{{CodeSnip
<pre> item Fertilizer
  | lang = java
Type = Drainable,
  | line = true
DisplayName = NPK Fertilizer,
  | start = 1274
Icon = TZ_IndieStoneNPK,
  | source = items.txt
Weight = 2.0,
  | retrieved = true
UseDelta = 0.25,
  | version = 41.78.16
UseWhileEquipped = false,
  | code =
Tooltip = Tooltip_Fertilizer,</pre>
item Fertilizer
    {
        DisplayCategory = Gardening,
        Type = Drainable,
        DisplayName = NPK Fertilizer,
        Icon = TZ_IndieStoneNPK,
        Weight = 2.0,
        UseDelta = 0.25,
        UseWhileEquipped =     false,
        Tooltip = Tooltip_Fertilizer,
        WeightEmpty = 0.1,
        WorldStaticModel = Fertilizer_Ground,
    }
}}


''Empty Fertilizer'' [[File:NPK Fertilizer.png]]
[[File:Fertilizer.png]] {{ID|Base.FertilizerEmpty}}<br>
{{Retrieved|version=39|incver=67.5}}
{{CodeSnip
<pre> item FertilizerEmpty
  | lang = java
Type = Normal,
  | line = true
DisplayName = Empty Fertilizer,
  | start = 1288
Icon = TZ_IndieStoneNPK,
  | source = items.txt
Weight = 0.001</pre>
  | retrieved = true
  | version = 41.78.16
  | code =
item FertilizerEmpty
    {
        DisplayCategory = Gardening,
        Type = Normal,
        DisplayName = Empty Fertilizer,
        Icon = TZ_IndieStoneNPK,
        Weight = 0.001,
        WorldStaticModel = Fertilizer_Ground,
    }
}}
}}


==See also==
==See also==
*[[Farming]]
*[[Compost Bag]]
*[[Compost Bag]]
{{Navbox items|farming_materials}}

Latest revision as of 16:07, 4 May 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
NPK Fertilizer
NPKFertilizer Model.png
Empty Fertilizer
General
Encumbrance
Moodle Icon HeavyLoad.png
2
Function
Properties
Contents
Fertilizer
Capacity
4 units
Technical
Item ID
Base.Fertilizer
Base.FertilizerEmpty
Used on crops to increase growth speed and harvest.
— In-game tooltip

NPK fertilizer is a drainable item used in farming.

Usage

Farming

Main article: Farming

A single full bag contains four uses which are used with planted crops to increase the speed of growth for that particular plant, it will remove 20 hours from the current growth cycle of the plant. If there are less than 20 hours remaining on that growth cycle, it will immediately proceed to the next level and the extra hours will be lost. Fertilizing a plant 5 times in total will kill it instantly.

Distribution

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

Fertilizer 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 6.29%
Farmer crate 23.28%
Farmer crate 41.14%
Farmer crate 76.55%
Farmer metal_shelves 6.29%
Farmer metal_shelves 23.28%
Farmer metal_shelves 41.14%
Farmer metal_shelves 76.55%
all crate 1.61%
closet crate 6.29%
factory crate 6.29%
factory metal_shelves 6.29%
farmstorage crate 6.29%
farmstorage crate 23.28%
farmstorage crate 41.14%
farmstorage crate 76.55%
farmstorage metal_shelves 6.29%
farmstorage metal_shelves 23.28%
farmstorage metal_shelves 41.14%
farmstorage metal_shelves 76.55%
garagestorage crate 6.29%
garagestorage crate 23.28%
garagestorage crate 41.14%
garagestorage crate 76.55%
gardenstore crate 23.28%
gardenstore crate 41.14%
gardenstore crate 76.55%
generalstore metal_shelves 6.29%
generalstore shelves 6.29%
generalstorestorage metal_shelves 6.29%
generalstorestorage shelves 6.29%
gigamart shelves 6.29%
shed crate 6.29%
shed crate 23.28%
shed crate 41.14%
shed crate 76.55%
storageunit crate 6.29%
storageunit crate 23.28%
storageunit crate 41.14%
storageunit crate 76.55%
storageunit metal_shelves 6.29%
toolstore metal_shelves 6.29%
toolstore shelves 6.29%
toolstorestorage metal_shelves 6.29%
warehouse crate 6.29%
warehouse metal_shelves 6.29%
Vehicles
Type Container Effective chance
Farmer Trunk 23.28%

Trivia

  • The letters "NPK" represents the atomic symbol for Nitrogen (N), Phosphorous (P) and Potassium (K), which are vital to plant health and growth.

Code

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

Fertilizer.png Base.Fertilizer
Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item Fertilizer
    {
        DisplayCategory = Gardening,
        Type				=		Drainable,
        DisplayName			=		NPK Fertilizer,
        Icon				=		TZ_IndieStoneNPK,
        Weight				=		2.0,
        UseDelta			=		0.25,
        UseWhileEquipped	=	    false,
        Tooltip = Tooltip_Fertilizer,
        WeightEmpty = 0.1,
        WorldStaticModel = Fertilizer_Ground,
    }

Fertilizer.png Base.FertilizerEmpty
Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item FertilizerEmpty
    {
        DisplayCategory = Gardening,
        Type				=		Normal,
        DisplayName			=		Empty Fertilizer,
        Icon				=		TZ_IndieStoneNPK,
        Weight				=		0.001,
        WorldStaticModel = Fertilizer_Ground,
    }

See also