Trap Crate: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎Code: CodeBox update)
Line 41: Line 41:
|}
|}


==Code==
== Code ==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=50}}
| {{CodeSnip
<pre>
  | lang = java
item TrapCrate
  | line = false
Weight = 1,
  | source = newitems.txt
Type = Normal,
  | retrieved = true
DisplayName = Trap Crate,
  | version = 41
Icon = TrapCrate,
  | incver = 50
Trap   = true,
  | code =
</pre>
item TrapCrate
{
    Weight       = 1,
    Type         = Normal,
    DisplayName = Trap Crate,
    Icon         = TrapCrate,
    Trap         = true,
}
  }}
}}


==See also==
==See also==

Revision as of 11:35, 31 January 2024

Project ZomboidItemsTrap Crate
Trap Crate
CrateTrapAnim.gif
Crate Trap
General
Category Item
Encumbrance
Heavy Load
1.0
Strength 15
Catchable animals Rabbit.png Squirrel.png
Technical details
Ingredients 3 × Plank
5 × Nails
Item ID Base.TrapCrate

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 XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
TrapCrate.png
Trap Crate
0.75 Carpentry none The Hunter Magazine Vol. 2
One of:
Hacksaw.png Saw
Handsaw.png Garden Saw

(keep)
Plank.png
Plank x3
(consumed)
Nails.png
Nails x5
(consumed)

Code

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

Source: ProjectZomboid\media\scripts\newitems.txt

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

See also