Stick Trap: Difference between revisions

From PZwiki
(Automated creation of distribution header)
Tag: Reverted
m (Automated CodeBox update)
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|Project Zomboid|Items|type=Trap|version=Version 40|incver=43}}{{Infobox trap
{{Header|Project Zomboid|Items|Trapping}}
|display_name=Stick Trap
{{Page version|41.78.16}}
|name_colour=Trap
{{Infobox tile
|name_text_colour=Trap
|name=Stick Trap
|image=StickTrapAnim.gif
|image=StickTrapAnim.gif
|image_width=
|icon=TrapStick.png
|alternate_image=TrapStick.png
|icon_name=Stick Trap
|alternate_name=Stick Trap
<!--General-->
|alternate_link=
|category=Trapping
|category=Item
|weight=0.5
|weight=0.5
|size=1
|function=Catch [[animals]]
<!--Properties-->
|health=50
|strength=15
|strength=15
|animals=[[File:Bird.png|link=Small Bird]]
|animals=[[File:Bird.png|link=Small Bird]]
|placement=
<!--Build-->
|ingredients=4 × {{T|Sturdy Stick}}<br> 1 × {{T|Twine}}
|crafting=true
|class_name=Base.TrapStick
|build_skill=[[The Hunter Magazine|The Hunter Magazine Vol. 2]]
}}A '''stick trap''' is a small sized trap used by beginner trappers.
|ingredients=[[Sturdy Stick]] × 4<br>[[Twine]] (1 unit)
<!--Disassemble-->
|destroy=true
|products=[[Scrap Wood]]<br>[[Twine]] (1 unit)
<!--Technical-->
|item_id=Base.TrapStick
|tile_id=constructedobjects_01_13
}}
 
A '''stick trap''' is a small-sized trap used by beginner trappers.


==Usage==
==Usage==
A stick trap is one of several traps used in {{T|trapping}} to catch a variety of {{T|animals|wildlife}}.
A stick trap is one of several traps used in [[trapping]] to catch a variety of [[animals|wildlife]].


To place the trap, unpack it to your main inventory, right click on the ground, and click "Place trap > Stick trap"
To place the trap, unpack it to your main inventory, right-click on the ground, and click "Place trap > Stick trap"


===Trapping===
===Trapping===
{{Main|Trapping}}
{{Main|Trapping}}
Stick traps can be used to catch {{T|Small Bird|small bird}}s.
Stick traps can be used to catch [[Small Bird|small bird]]s.
{| width="100px" style="text-align:left;"
{| width="100px" style="text-align:left;"
|+ '''''Catch chance:'''''
|+ '''''Catch chance:'''''
Line 31: Line 43:


==Crafting==
==Crafting==
To craft a stick trap, the player must have picked either the {{T|Occupation#Park Ranger|"Park Ranger" occupation}} or {{T|Traits|"Hunter" trait}} during character creation. Otherwise, it will be available after reading ''[[The Hunter Magazine|The Hunter Magazine Vol.2]]''
To craft a stick 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 available after reading ''[[The Hunter Magazine|The Hunter Magazine Vol.2]]''


===Trapping===
===Trapping===
Line 37: Line 49:
{{Crafting header|ing=2}}
{{Crafting header|ing=2}}
{{Crafting hunting|003|ing=2}}
{{Crafting hunting|003|ing=2}}
|}
{{clear}}
==Distribution==
The loot distributions can be found in the table(s) below.
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
!Building/Room
!Container
! style="width: 3.2em;" |Rolls
! style="width: 3.2em;" |Chance
|}
|}


==Code==
==Code==
{{CodeBox
{{CodeBox|
| {{CodeSnip
===Item===
{{CodeSnip
   | lang = java
   | lang = java
   | line = false
   | line = true
  | start = 2343
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
   | version = 41
   | version = 41.78.16
  | incver = 50
   | code =
   | code =
item TrapStick
item TrapStick
{
    {
    Weight             = 0.5,
        DisplayCategory = Trapping,
    Type               = Normal,
        Weight = 0.5,
    DisplayName         = Stick Trap,
        Type = Normal,
    Icon               = TrapStick,
        DisplayName = Stick Trap,
    Trap               = true,
        Icon = TrapStick,
}
        Trap   =   true,
    }  
}}
===Tile===
{{CodeSnip
  | lang = lua
  | line = false
  | path = ProjectZomboid\media\lua\server\Traps
  | source = TrapDefinition.lua
  | retrieved = true
  | version = 41.78.16
  | code =
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);
   }}
   }}
}}
}}


==See also==
==See also==
*{{T|Mouse Trap}}
*[[Mouse Trap]]
*{{T|Snare Trap}}
*[[Snare Trap]]
*{{T|Trap Crate}}
*[[Trap Crate]]
*{{T|Trap Box}}
*[[Trap Box]]
*{{T|Cage Trap}}
*[[Cage Trap]]
 
{{Navbox equipment}}


[[Category:Trapping]]
{{Navbox equipment|survival}}

Revision as of 13:44, 26 March 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Stick Trap
StickTrapAnim.gif
[[File:{{{icon2}}}|Stick Trap|]]
[[File:{{{icon3}}}|Stick Trap|]]
[[File:{{{icon4}}}|Stick Trap|]]
[[File:{{{icon5}}}|Stick Trap|]]
General
Category
Trapping
EncumbranceMoodle Icon HeavyLoad.png
0.5
Size
1 tile
Function
Catch animals
Properties
Health
50
Strength
15
Animals
Bird.png
Crafting
Ingredients
Sturdy Stick × 4
Twine (1 unit)
Destroy
Products
Technical
Item ID(s)
Base.TrapStick
Tile ID(s)
constructedobjects_01_13

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.

Catch chance:
Small Bird 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 XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
TrapStick.png
Stick Trap
0 XP none The Hunter Magazine Vol. 2 TZ WoodenStick.png
Sturdy Stick x4
(consumed)
Twine.png
Twine
(2 units)

(consumed)

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 TrapStick
    {
        DisplayCategory = Trapping,
        Weight	=	0.5,
        Type	=	Normal,
        DisplayName	=	Stick Trap,
        Icon	=	TrapStick,
        Trap    =   true,
    }

Tile

Source: ProjectZomboid\media\lua\server\Traps\TrapDefinition.lua

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

See also