Stick Trap: Difference between revisions
m (Removing trailing whitespace(s)) |
m (Automated Formatting) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Items|Trapping}} | |||
{{Header | |||
{{Page version|41.78.16}} | {{Page version|41.78.16}} | ||
{{Infobox tile | {{Infobox tile | ||
Line 26: | Line 25: | ||
|item_id=Base.TrapStick | |item_id=Base.TrapStick | ||
|tile_id=constructedobjects_01_13 | |tile_id=constructedobjects_01_13 | ||
}}A '''stick trap''' is a small-sized trap used by beginner trappers. | }} | ||
A '''stick trap''' is a small-sized trap used by beginner trappers. | |||
==Usage== | ==Usage== | ||
Line 46: | Line 46: | ||
===Trapping=== | ===Trapping=== | ||
{{Main|Trapping}} | {{Main|Trapping}} | ||
{{Crafting | {{Crafting/sandbox2 | ||
|stick_trap | |||
}} | |||
==Code== | ==Code== | ||
{{CodeBox| | {{CodeBox| | ||
===Item=== | ===Item=== | ||
{{CodeSnip | {{CodeSnip | ||
| lang = java | | lang = java | ||
| line = | | line = true | ||
| start = 2343 | |||
| source = newitems.txt | | source = newitems.txt | ||
| retrieved = true | | retrieved = true | ||
| version = 41.78.16 | | version = 41.78.16 | ||
| code = | | code = | ||
item TrapStick | |||
{ | { | ||
DisplayCategory = Trapping, | DisplayCategory = Trapping, | ||
Line 69: | Line 71: | ||
Trap = true, | Trap = true, | ||
} | } | ||
}} | |||
===Tile=== | ===Tile=== | ||
{{CodeSnip | {{CodeSnip | ||
Line 96: | Line 99: | ||
*[[Cage Trap]] | *[[Cage Trap]] | ||
{{Navbox | {{Navbox items|survival}} |
Latest revision as of 12:25, 14 April 2024
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.
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 | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Stick Trap |
Sturdy Stick ×4 Twine ×2 unit(s) |
none | The Hunter Magazine Vol.2 |
none | none |
Code
Item
Source: ProjectZomboid\media\scripts\newitems.txt
item TrapStick
{
DisplayCategory = Trapping,
Weight = 0.5,
Type = Normal,
DisplayName = Stick Trap,
Icon = TrapStick,
Trap = true,
}
Tile
Source: ProjectZomboid\media\lua\server\Traps\TrapDefinition.lua
local stickTrap = {};
stickTrap.type = "Base.TrapStick";
stickTrap.sprite = "constructedobjects_01_13";
stickTrap.closedSprite = "constructedobjects_01_12";
stickTrap.trapStrength = 15;
stickTrap.destroyItem = { "Base.UnusableWood", "Base.Twine" };
table.insert(Traps, stickTrap);