Snare Trap: Difference between revisions
m (Automated {{Languages}} removal.) |
m (Automated Formatting) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Header | {{Header|Project Zomboid|Items|Trapping}} | ||
{{Page version|41.78.16}} | {{Page version|41.78.16}} | ||
{{Infobox tile | {{Infobox tile | ||
Line 28: | Line 28: | ||
|item_id=Base.TrapSnare | |item_id=Base.TrapSnare | ||
|tile_id=constructedobjects_01_16 | |tile_id=constructedobjects_01_16 | ||
}}A '''snare trap''' is a medium-sized trap used by novice trappers. | }} | ||
A '''snare trap''' is a medium-sized trap used by novice trappers. | |||
==Usage== | ==Usage== | ||
Line 48: | Line 49: | ||
===Trapping=== | ===Trapping=== | ||
{{Main|Trapping}} | {{Main|Trapping}} | ||
{{Crafting | {{Crafting/sandbox2 | ||
|snare_trap | |||
}} | |||
==Code== | ==Code== | ||
{{CodeBox| | {{CodeBox| | ||
===Item=== | ===Item=== | ||
{{CodeSnip | {{CodeSnip | ||
| lang = java | | lang = java | ||
| line = | | line = true | ||
| start = 2291 | |||
| source = newitems.txt | | source = newitems.txt | ||
| retrieved = true | | retrieved = true | ||
| version = 41.78.16 | | version = 41.78.16 | ||
| code = | | code = | ||
item TrapSnare | |||
{ | { | ||
DisplayCategory = Trapping, | DisplayCategory = Trapping, | ||
Line 71: | Line 74: | ||
Trap = true, | Trap = true, | ||
} | } | ||
}} | |||
===Tile=== | ===Tile=== | ||
{{CodeSnip | {{CodeSnip | ||
Line 97: | Line 101: | ||
*[[Stick Trap]] | *[[Stick Trap]] | ||
{{Navbox | {{Navbox items|survival}} |
Latest revision as of 12:12, 14 April 2024
A snare trap is a medium-sized trap used by novice trappers.
Usage
A snare trap is one of several traps used in trapping to catch a variety of wildlife.
Trapping
- Main article: Trapping
Snare traps can be used to catch rabbits and squirrels.
30% | |
30% |
Crafting
To craft a snare trap, the player must have picked either the "Park Ranger" occupation or "Hunter" trait during character creation. Otherwise, it will be learned after reaching trapping level 1, or reading The Hunter Magazine Vol.1
Trapping
- Main article: Trapping
Product | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Snare Trap |
Plank ×1 Twine ×2 unit(s) |
Saw (tag) |
Trapping 1 (and) The Hunter Magazine Vol.1 |
none | 0.25 Carpentry |
Code
Item
Source: ProjectZomboid\media\scripts\newitems.txt
item TrapSnare
{
DisplayCategory = Trapping,
Weight = 0.5,
Type = Normal,
DisplayName = Snare Trap,
Icon = TrapSnare,
Trap = true,
}
Tile
Source: ProjectZomboid\media\lua\server\Traps\TrapDefinition.lua
local snareTrap = {};
snareTrap.type = "Base.TrapSnare";
snareTrap.sprite = "constructedobjects_01_16";
snareTrap.closedSprite = "constructedobjects_01_17";
snareTrap.trapStrength = 10;
snareTrap.destroyItem = { "Base.UnusableWood", "Base.Twine", "Base.Twine" };
table.insert(Traps, snareTrap);