Snare Trap: Difference between revisions
(update to 41.78.16: new header, infobox, code) |
m (remove use of {{T}}) |
||
Line 29: | Line 29: | ||
|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== | ||
A snare trap is one of several traps used in | A snare trap is one of several traps used in [[trapping]] to catch a variety of [[animals|wildlife]]. | ||
===Trapping=== | ===Trapping=== | ||
{{Main|Trapping}} | {{Main|Trapping}} | ||
Snare traps can be used to catch | Snare traps can be used to catch [[rabbit]]s and [[squirrel]]s. | ||
{| width="100px" style="text-align:left;" | {| width="100px" style="text-align:left;" | ||
|+ '''''Catch chance:''''' | |+ '''''Catch chance:''''' | ||
Line 45: | Line 45: | ||
==Crafting== | ==Crafting== | ||
To craft a snare trap, the player must have picked either the | To craft a snare trap, the player must have picked either the [[Occupation#Park Ranger|"Park Ranger" occupation]] or [[Traits|"Hunter" trait]] during character creation. Otherwise, it will be learned after reaching trapping level 1, or reading ''[[The Hunter Magazine|The Hunter Magazine Vol.1]]'' | ||
===Trapping=== | ===Trapping=== | ||
Line 54: | Line 54: | ||
==Code== | ==Code== | ||
{{CodeBox | {{CodeBox| | ||
===Item=== | |||
{{CodeSnip | |||
| lang = java | | lang = java | ||
| line = false | | line = false | ||
Line 98: | Line 99: | ||
{{Navbox equipment}} | {{Navbox equipment}} | ||
Revision as of 12:46, 19 February 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 | XP gained | Skill(s) | Recipe | Ingredient 1 | Ingredient 2 | Ingredient 3 |
---|---|---|---|---|---|---|
Snare Trap |
0.25 Carpentry | Trapping 1 | (keep) |
Plank (consumed) |
Twine (2 units) (consumed) |
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);