Snare Trap: Difference between revisions

From PZwiki
(Created page with "(v30.12) Rabbit - base chance 20% Squirrel - base chance 20% Trap strength of 10 {| class="wikitable sortable" style="text-align:center;" |- ! Output ! class="unsortabl...")
 
(Add distro table)
 
(31 intermediate revisions by 12 users not shown)
Line 1: Line 1:
(v30.12)
{{Header|Project Zomboid|Items|Trapping}}
{{Page version|41.78.16}}
{{Infobox tile
|name=Snare Trap
|image=SnareTrapAnim.gif
|icon=TrapSnare.png
|icon_name=Snare Trap
<!--General-->
|category=Trapping
|weight=0.5
|size=1
|function=Catch [[animals]]
<!--Properties-->
|health=50
|strength=10
|animals=[[File:Rabbit.png|link=Rabbit]] [[File:Squirrel.png|link=Squirrel]]
<!--Build-->
|crafting=true
|build_skill=[[The Hunter Magazine|The Hunter Magazine Vol. 1]]
|build_skill2=[[Trapping]]
|build_level2=1
|build_tool_tag=Saw
|ingredients=[[Plank]]<br>[[Twine]] (2 units)
<!--Disassemble-->
|destroy=true
|products=[[Scrap Wood]]<br>[[Twine]] (2 units)
<!--Technical-->
|item_id=Base.TrapSnare
|tile_id=constructedobjects_01_16
}}
A '''snare trap''' is a medium-sized trap used by novice trappers.


Rabbit - base chance 20%
==Usage==
A snare trap is one of several traps used in [[trapping]] to catch a variety of [[animals|wildlife]].


Squirrel - base chance 20%
===Trapping===
{{Main|Trapping}}
Snare traps can be used to catch [[rabbit]]s and [[squirrel]]s.
{| width="100px" style="text-align:left;"
|+ '''''Catch chance:'''''
| [[File:Rabbit.png|32px|link=Dead Rabbit|Rabbit]] || 30%
|-
| [[File:Squirrel.png|32px|link=Dead Squirrel|Squirrel]] || 30%
|}
 
==Crafting==
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===
{{Main|Trapping}}
{{Crafting/sandbox2
|snare_trap
}}
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|TrapSnare|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>TrapSnare distribution
        <span class="mw-customtoggle-togglebox-TrapSnare" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-TrapSnare">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis: 30%;">
    {| class="wikitable theme-red sortable" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | closet
    | {{ll|crate}}
    | 23.28%
    |-
    | garagestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | storageunit
    | {{ll|crate}}
    | 23.28%
    |}
</div>
<div id="vehicles" style="flex-basis: 30%;">
    {| class="wikitable theme-red sortable" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Vehicles}}
    ! Type
    ! Container
    ! Effective chance
    |-
    | Hunter
    | {{ll|Truck Bed}}
    | 10.78%
    |-
    | Ranger
    | {{ll|Truck Bed}}
    | 10.78%
    |}
</div>
    </div><div style="clear: both;"></div>
    {| class="wikitable theme-red" style="width: 98%;"
    |+ {{ll|Foraging}}
    ! rowspan="2" | Amount
    ! rowspan="2" | Skill level
    ! rowspan="2" | Biomes
    ! colspan="4" style="text-align: center;" | Weather modifiers
    ! colspan="3" style="text-align: center;" | Month modifiers
    |-
    ! Snow
    ! Rain
    ! Day
    ! Night
    ! Months available
    ! Bonus months
    ! Malus months
    |-
    | ---
    | 8
    | DeepForest  1
    | -
    | -
    | -
    | -
    | -
    | -
    | -
    |}
    </div></div><div class="toggle large mw-customtoggle-togglebox-TrapSnare" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|TrapSnare|41.78.16-->
 
==Code==
{{CodeBox|
 
===Item===
{{CodeSnip
  | lang = java
  | line = true
  | start = 2291
  | source = newitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item TrapSnare
    {
        DisplayCategory = Trapping,
        Weight = 0.5,
        Type = Normal,
        DisplayName = Snare Trap,
        Icon = TrapSnare,
        Trap    =  true,
    }
}}


Trap strength of 10
===Tile===
{{CodeSnip
  | lang = lua
  | line = false
  | path = ProjectZomboid\media\lua\server\Traps
  | source = TrapDefinition.lua
  | retrieved = true
  | version = 41.78.16
  | code =
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);
  }}
}}


==See also==
*[[Cage Trap]]
*[[Trap Crate]]
*[[Trap Box]]
*[[Stick Trap]]


{| class="wikitable sortable" style="text-align:center;"
{{Navbox items|survival}}
|-
! Output
! class="unsortable" | Ingredients
! class="unsortable" | Description
! Skill Level
{{RecipeLookup|6002}}
|}

Latest revision as of 05:50, 5 May 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Snare Trap
SnareTrapAnim.gif
[[File:{{{icon2}}}|Snare Trap|]]
[[File:{{{icon3}}}|Snare Trap|]]
[[File:{{{icon4}}}|Snare Trap|]]
[[File:{{{icon5}}}|Snare Trap|]]
General
Category
Trapping
EncumbranceMoodle Icon HeavyLoad.png
0.5
Size
1 tile
Function
Catch animals
Properties
Health
50
Strength
10
Animals
Rabbit.png Squirrel.png
Crafting
Tool(s)
Ingredients
Plank
Twine (2 units)
Destroy
Products
Scrap Wood
Twine (2 units)
Technical
Item ID(s)
Base.TrapSnare
Tile ID(s)
constructedobjects_01_16

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.

Catch chance:
Rabbit 30%
Squirrel 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
TrapSnare.png
Snare Trap
Plank.png Plank ×1
Twine.png Twine ×2 unit(s)

Handsaw.png
Saw (tag)
Trapping 1
(and)
MagazineHunting.png
The Hunter Magazine Vol.1
none 0.25 Carpentry

Distribution

The loot distributions can be found in the table(s) below.

TrapSnare distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
closet crate 23.28%
garagestorage crate 23.28%
storageunit crate 23.28%
Vehicles
Type Container Effective chance
Hunter Trunk 10.78%
Ranger Trunk 10.78%
Foraging
Amount Skill level Biomes Weather modifiers Month modifiers
Snow Rain Day Night Months available Bonus months Malus months
--- 8 DeepForest 1 - - - - - - -

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Item

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
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

Retrieved: Build 41.78.16
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);

See also