Trap Crate: Difference between revisions

From PZwiki
(Add distro table)
 
(23 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Trapping}}
{{header|The Game World|Items|type=Trap|version=Version 40|incver=43}}{{Infobox trap
{{Page version|41.78.16}}
| display_name = Trap Crate
{{Infobox tile
| name_colour = Trap
|name=Trap Crate
| name_text_colour = Trap
|image=CrateTrapAnim.gif
| image = CrateTrapAnim.gif
|icon=TrapCrate.png
| image_width =
|icon_name=Crate Trap
| alternate_image = TrapCrate.png
<!--General-->
| alternate_name = Crate Trap
|category=Trapping
| alternate_link =
|weight=1.0
| category = Item
|size=1
| weight = 1.0
|function=Catch [[animals]]
| strength = 15
<!--Properties-->
| animals = [[File:Rabbit.png|link=Rabbit]] [[File:Squirrel.png|link=Squirrel]]
|health=50
| placement =  
|strength=15
| ingredients = 3 × {{T|Plank}}<br>5 × {{T|Nails}}
|animals=[[File:Rabbit.png|link=Rabbit]] [[File:Squirrel.png|link=Squirrel]]
| class_name = Base.TrapCrate
<!--Build-->
}}A '''trap crate''' is a medium sized trap used by beginner trappers.
|crafting=true
|build_skill=[[The Hunter Magazine|The Hunter Magazine Vol. 2]]
|build_tool_tag=Saw
|ingredients=[[Plank]] × 3<br>[[Nails]] × 5
<!--Disassemble-->
|destroy=true
|products=[[Scrap Wood]]<br>[[Nails]]
<!--Technical-->
|item_id=Base.TrapCrate
|tile_id=constructedobjects_01_3
}}
A '''trap crate''' is a medium-sized trap used by beginner trappers.


==Usage==
==Usage==
A trap crate is one of several traps used in {{T|trapping}} to catch a variety of {{T|animals|wildlife}}.
A trap crate is one of several traps used in [[trapping]] to catch a variety of [[animals|wildlife]].
 
===Trapping===
===Trapping===
{{Main|Trapping}}
{{Main|Trapping}}
Trap crates can be used to catch {{T|rabbit}}s and {{T|squirrel}}s.
Trap crates can be used to catch [[rabbit]]s and [[squirrel]]s.
{| width="100px" style="text-align:left;"
{| width="100px" style="text-align:left;"
|+ '''''Catch chance:'''''
|+ '''''Catch chance:'''''
Line 30: Line 42:
|}
|}


== Crafting ==
==Crafting==
To craft a trap crate, the player must read ''{{T|Recipe Magazines|The Hunter Magazine Vol.2}}'' or have picked the [[Occupation|"Park Ranger" occupation]] or {{T|Traits|"Hunter" trait}} during character creation. After crafting it, you can right click on ground and use Place Trap option to place it.
To craft a trap crate, the player requires no [[Skills|skill]] but must read ''[[The Hunter Magazine|The Hunter Magazine Vol.2]]'' or have picked the [[Occupation|"Park Ranger" occupation]] or [[Traits|"Hunter" trait]] during character creation. After crafting it, you can right-click on ground and use Place Trap option to place it.
{{Crafting table header}}
 
{{RecipeLookup|6000}}
===Trapping===
{{Crafting table footer}}
{{Main|Trapping}}
{{Crafting/sandbox2
|trap_crate
}}
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|TrapCrate|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>TrapCrate distribution
        <span class="mw-customtoggle-togglebox-TrapCrate" 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-TrapCrate">
    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
    |-
    | closet
    | {{ll|crate}}
    | 23.28%
    |-
    | garagestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | storageunit
    | {{ll|crate}}
    | 23.28%
    |}
</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
    |-
    | Hunter
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Ranger
    | {{ll|Truck Bed}}
    | 10.78%
    |}
</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
    |-
    | ---
    | 8
    | DeepForest  1
    | -
    | -
    | -
    | -
    | -
    | -
    | -
    |}
    </div></div><div class="toggle large mw-customtoggle-togglebox-TrapCrate" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|TrapCrate|41.78.16-->


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|
{{Retrieved|version=41|incver=50}}
 
<pre> item TrapCrate
===Item===
Weight = 1,
{{CodeSnip
Type = Normal,
  | lang = java
DisplayName = Trap Crate,
  | line = true
Icon = TrapCrate,
  | start = 2333
Trap   = true,</pre>
  | source = newitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item TrapCrate
    {
        DisplayCategory = Trapping,
        Weight = 1,
        Type = Normal,
        DisplayName = Trap Crate,
        Icon = TrapCrate,
        Trap   =   true,
    }
}}
 
===Tile===
{{CodeSnip
  | lang = lua
  | line = false
  | path = ProjectZomboid\media\lua\server\Traps
  | source = TrapDefinition.lua
  | retrieved = true
  | version = 41.78.16
  | code =
local crateTrap = {};
crateTrap.type = "Base.TrapCrate";
crateTrap.sprite = "constructedobjects_01_3";
crateTrap.closedSprite = "constructedobjects_01_2";
crateTrap.trapStrength = 15;
crateTrap.destroyItem = { "Base.UnusableWood", "Base.Nails" };
table.insert(Traps, crateTrap);
  }}
}}


==See also==
==See also==
*{{T|Cage Trap}}
*[[Cage Trap]]
*{{T|Trap Box}}
*[[Trap Box]]
*{{T|Snare Trap}}
*[[Snare Trap]]
*{{T|Stick Trap}}
*[[Stick Trap]]


{{Navbox/Tools}}
{{Navbox items|survival}}

Latest revision as of 05:49, 5 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]
Trap Crate
CrateTrapAnim.gif
[[File:{{{icon2}}}|Trap Crate|]]
[[File:{{{icon3}}}|Trap Crate|]]
[[File:{{{icon4}}}|Trap Crate|]]
[[File:{{{icon5}}}|Trap Crate|]]
General
Category
Trapping
EncumbranceMoodle Icon HeavyLoad.png
1.0
Size
1 tile
Function
Catch animals
Properties
Health
50
Strength
15
Animals
Rabbit.png Squirrel.png
Crafting
Tool(s)
Ingredients
Plank × 3
Nails × 5
Destroy
Products
Technical
Item ID(s)
Base.TrapCrate
Tile ID(s)
constructedobjects_01_3

A trap crate is a medium-sized trap used by beginner trappers.

Usage

A trap crate is one of several traps used in trapping to catch a variety of wildlife.

Trapping

Main article: Trapping

Trap crates can be used to catch rabbits and squirrels.

Catch chance:
Rabbit 30%
Squirrel 30%

Crafting

To craft a trap crate, the player requires no skill but must read The Hunter Magazine Vol.2 or have picked the "Park Ranger" occupation or "Hunter" trait during character creation. After crafting it, you can right-click on ground and use Place Trap option to place it.

Trapping

Main article: Trapping
Product Ingredients Tools Requirements Workstation XP
TrapCrate.png
Trap Crate
Plank.png Plank ×3
Nails.png Nails ×5

Handsaw.png
Saw (tag)
none none 0.75 Carpentry

Distribution

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

TrapCrate 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
closet crate 23.28%
garagestorage crate 23.28%
storageunit crate 23.28%
Vehicles
Type Container Effective chance
Hunter Trunk 10.78%
Ranger Trunk 10.78%
Foraging
Amount Skill level Biomes Weather modifiers Month modifiers
Snow Rain Day Night Months available Bonus months Malus months
--- 8 DeepForest 1 - - - - - - -

Code

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

Item

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item TrapCrate
    {
        DisplayCategory = Trapping,
        Weight	=	1,
        Type	=	Normal,
        DisplayName	=	Trap Crate,
        Icon	=	TrapCrate,
        Trap    =   true,
    }

Tile

Source: ProjectZomboid\media\lua\server\Traps\TrapDefinition.lua

Retrieved: Build 41.78.16
local crateTrap = {};
crateTrap.type = "Base.TrapCrate";
crateTrap.sprite = "constructedobjects_01_3";
crateTrap.closedSprite = "constructedobjects_01_2";
crateTrap.trapStrength = 15;
crateTrap.destroyItem = { "Base.UnusableWood", "Base.Nails" };
table.insert(Traps, crateTrap);

See also