Trap Crate: Difference between revisions

From PZwiki
m (remove use of {{T}})
m (remove more T)
Line 31: Line 31:
|item_id=Base.TrapCrate
|item_id=Base.TrapCrate
|tile_id=constructedobjects_01_3
|tile_id=constructedobjects_01_3
}}A '''trap crate''' is a medium sized trap used by beginner trappers.
}}A '''trap crate''' is a medium-sized trap used by beginner trappers.


==Usage==
==Usage==
Line 47: Line 47:


==Crafting==
==Crafting==
To craft a trap crate, the player requires no [[Skills|skill]] but must read ''[[The Hunter Magazine|The Hunter Magazine Vol.2]]'' or have picked the [[Occupation|"Park Ranger" occupation]] or {{T|Traits|"Hunter" trait}} during character creation. After crafting it, you can right click on ground and use Place Trap option to place it.
To craft a trap crate, the player requires no [[Skills|skill]] but must read ''[[The Hunter Magazine|The Hunter Magazine Vol.2]]'' or have picked the [[Occupation|"Park Ranger" occupation]] or [[Traits|"Hunter" trait]] during character creation. After crafting it, you can right-click on ground and use Place Trap option to place it.


===Trapping===
===Trapping===

Revision as of 12:42, 19 February 2024

Template:Header/sandbox2

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Trap Crate
CrateTrapAnim.gif
[[File:{{{icon2}}}|Trap Crate|]]
[[File:{{{icon3}}}|Trap Crate|]]
[[File:{{{icon4}}}|Trap Crate|]]
[[File:{{{icon5}}}|Trap Crate|]]
General
Category
Trapping
EncumbranceMoodle Icon HeavyLoad.png
1.0
Size
1 tile
Function
Catch animals
Properties
Health
50
Strength
15
Animals
Rabbit.png Squirrel.png
Crafting
Tool(s)
Ingredients
Plank × 3
Nails × 5
Destroy
Products
Technical
Item ID(s)
Base.TrapCrate
Tile ID(s)
constructedobjects_01_3

A trap crate is a medium-sized trap used by beginner trappers.

Usage

A trap crate is one of several traps used in trapping to catch a variety of wildlife.

Trapping

Main article: Trapping

Trap crates can be used to catch rabbits and squirrels.

Catch chance:
Rabbit 30%
Squirrel 30%

Crafting

To craft a trap crate, the player requires no skill but must read The Hunter Magazine Vol.2 or have picked the "Park Ranger" occupation or "Hunter" trait during character creation. After crafting it, you can right-click on ground and use Place Trap option to place it.

Trapping

Main article: Trapping
Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
TrapCrate.png
Trap Crate
0.75 Carpentry none The Hunter Magazine Vol. 2
One of:
Hacksaw.png Saw
Handsaw.png Garden Saw

(keep)
Plank.png
Plank x3
(consumed)
Nails.png
Nails x5
(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 TrapCrate
    {
        DisplayCategory = Trapping,
        Weight	=	1,
        Type	=	Normal,
        DisplayName	=	Trap Crate,
        Icon	=	TrapCrate,
        Trap    =   true,
    }

Tile

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

Retrieved: Build 41.78.16
local crateTrap = {};
crateTrap.type = "Base.TrapCrate";
crateTrap.sprite = "constructedobjects_01_3";
crateTrap.closedSprite = "constructedobjects_01_2";
crateTrap.trapStrength = 15;
crateTrap.destroyItem = { "Base.UnusableWood", "Base.Nails" };
table.insert(Traps, crateTrap);

See also