Trap Crate: Difference between revisions
(→Code: CodeBox update) |
Tag: Undo |
||
(16 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Items|Trapping}} | |||
{{Header|Project Zomboid|Items| | {{Page version|41.78.16}} | ||
{{Infobox | {{Infobox tile | ||
| | |name=Trap Crate | ||
|image=CrateTrapAnim.gif | |image=CrateTrapAnim.gif | ||
| | |icon=TrapCrate.png | ||
|icon_name=Crate Trap | |||
| | <!--General--> | ||
|category=Trapping | |||
|category= | |||
|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]] | ||
| | <!--Build--> | ||
|ingredients=3 × | |crafting=true | ||
| | |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 | 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 | 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 33: | Line 43: | ||
==Crafting== | ==Crafting== | ||
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 | 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 | {{Crafting/sandbox2 | ||
|trap_crate | |||
}} | |||
== Code == | == Code == | ||
{{CodeBox | {{CodeBox| | ||
===Item=== | |||
{{CodeSnip | |||
| lang = java | | lang = java | ||
| line = | | line = true | ||
| start = 2333 | |||
| source = newitems.txt | | source = newitems.txt | ||
| retrieved = true | | retrieved = true | ||
| version = 41 | | version = 41.78.16 | ||
| code = | | code = | ||
item TrapCrate | 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== | ||
* | *[[Cage Trap]] | ||
* | *[[Trap Box]] | ||
* | *[[Snare Trap]] | ||
* | *[[Stick Trap]] | ||
{{Navbox items|survival}} |
Latest revision as of 06:50, 19 April 2024
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.
30% | |
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 |
---|---|---|---|---|---|
Trap Crate |
Plank ×3 Nails ×5 |
Saw (tag) |
none | none | 0.75 Carpentry |
Code
Item
Source: ProjectZomboid\media\scripts\newitems.txt
item TrapCrate
{
DisplayCategory = Trapping,
Weight = 1,
Type = Normal,
DisplayName = Trap Crate,
Icon = TrapCrate,
Trap = true,
}
Tile
Source: ProjectZomboid\media\lua\server\Traps\TrapDefinition.lua
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);