Snare Trap: Difference between revisions
m (Automated Formatting for Infobox and Section Headers) |
m (Automated Formatting) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 29: | Line 29: | ||
|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. | ||
Line 50: | 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 73: | Line 74: | ||
Trap = true, | Trap = true, | ||
} | } | ||
}} | |||
===Tile=== | ===Tile=== | ||
{{CodeSnip | {{CodeSnip | ||
Line 99: | 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);