Stick Trap: Difference between revisions

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


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


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

Revision as of 11:03, 31 January 2024

Project ZomboidItemsStick Trap
Stick Trap
StickTrapAnim.gif
Stick Trap
General
Category Item
Encumbrance
Heavy Load
0.5
Strength 15
Catchable animals Bird.png
Technical details
Ingredients 4 × Sturdy Stick
1 × Twine
Item ID Base.TrapStick

A stick trap is a small sized trap used by beginner trappers.

Usage

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

To place the trap, unpack it to your main inventory, right click on the ground, and click "Place trap > Stick trap"

Trapping

Main article: Trapping

Stick traps can be used to catch small birds.

Catch chance:
Small Bird 40%

Crafting

To craft a stick trap, the player must have picked either the "Park Ranger" occupation or "Hunter" trait during character creation. Otherwise, it will be available after reading The Hunter Magazine Vol.2

Trapping

Main article: Trapping
Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
TrapStick.png
Stick Trap
0 XP none The Hunter Magazine Vol. 2 TZ WoodenStick.png
Sturdy Stick x4
(consumed)
Twine.png
Twine
(2 units)

(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 TrapStick
{
    Weight              = 0.5,
    Type                = Normal,
    DisplayName         = Stick Trap,
    Icon                = TrapStick,
    Trap                = true,
}

See also