Trap Crate: Difference between revisions

From PZwiki
m (Cleanup)
(Undo revision 316517 by Sarah52 (talk))
Tag: Undo
 
(19 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|type=Trap|version=Version 40|incver=43}}{{Infobox trap
{{Header|Project Zomboid|Items|Trapping}}
|display_name=Trap Crate
{{Page version|41.78.16}}
|name_colour=Trap
{{Infobox tile
|name_text_colour=Trap
|name=Trap Crate
|image=CrateTrapAnim.gif
|image=CrateTrapAnim.gif
|image_width=
|icon=TrapCrate.png
|alternate_image=TrapCrate.png
|icon_name=Crate Trap
|alternate_name=Crate Trap
<!--General-->
|alternate_link=
|category=Trapping
|category=Item
|weight=1.0
|weight=1.0
|size=1
|function=Catch [[animals]]
<!--Properties-->
|health=50
|strength=15
|strength=15
|animals=[[File:Rabbit.png|link=Rabbit]] [[File:Squirrel.png|link=Squirrel]]
|animals=[[File:Rabbit.png|link=Rabbit]] [[File:Squirrel.png|link=Squirrel]]
|placement=
<!--Build-->
|ingredients=3 × {{T|Plank}}<br>5 × {{T|Nails}}
|crafting=true
|class_name=Base.TrapCrate
|build_skill=[[The Hunter Magazine|The Hunter Magazine Vol. 2]]
}}A '''trap crate''' is a medium sized trap used by beginner trappers.
|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 31: Line 43:


==Crafting==
==Crafting==
To craft a trap crate, the player requires no [[Skills|skill]] but 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.


===Trapping===
===Trapping===
{{Main|Trapping}}
{{Main|Trapping}}
{{Crafting header|ing=3}}
{{Crafting/sandbox2
{{Crafting hunting|005|ing=3}}
|trap_crate
|}
}}
 
== Code ==
{{CodeBox|
 
===Item===
{{CodeSnip
  | lang = java
  | line = true
  | start = 2333
  | 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,
    }
}}


==Code==
===Tile===
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeSnip
{{Retrieved|version=41|incver=50}}
  | lang = lua
<pre>
  | line = false
item TrapCrate
  | path = ProjectZomboid\media\lua\server\Traps
Weight = 1,
  | source = TrapDefinition.lua
Type = Normal,
  | retrieved = true
DisplayName = Trap Crate,
  | version = 41.78.16
Icon = TrapCrate,
  | code =
Trap    = true,
local crateTrap = {};
</pre>
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 equipment}}


[[Category:Trapping]]
{{Navbox items|survival}}

Latest revision as of 06:50, 19 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]
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

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