Mouse Trap: Difference between revisions

From PZwiki
m (Automated template formatting)
m (Automated Formatting)
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Items|Trapping}}
{{Header|Project Zomboid|Items|type=Trap|version=Version 40|incver=43}}
{{Page version|41.78.16}}
{{Infobox trap
{{Infobox tile
|display_name=Mouse Trap
|name=Mouse Trap
|name_colour=Trap
|name_text_colour=Trap
|image=MouseTrap.png
|image=MouseTrap.png
|image_width=
|icon=Mousetrap.png
|alternate_image=Mousetrap.png
|icon_name=Mouse Trap
|alternate_name=Mouse Trap
|alternate_link=
|category=Item
|category=Item
|weight=0.3
|weight=0.3
|size=1
|function=Catch [[animals]]
<!--Properties-->
|health=50
|strength=50
|strength=50
|animals=[[File:Mouse.png|link=Mouse]] [[File:Rat.png|link=Rat]]
|animals=[[File:Mouse.png|link=Mouse]] [[File:Rat.png|link=Rat]]
|placement=
<!--Disassemble-->
|ingredients=
|destroy=true
|class_name=Base.TrapMouse
|products=[[Scrap Wood]]
}}A '''mouse trap''' is a small sized trap used by beginner trappers.
<!--Technical-->
|item_id=Base.TrapMouse
|tile_id=constructedobjects_01_18
}}
A '''mouse trap''' is a small-sized trap used by beginner trappers.


==Usage==
==Usage==
A mouse trap is one of several traps used in {{T|trapping}} to catch a variety of {{T|animals|wildlife}}. However, it is the only trap that cannot be crafted.
A mouse trap is one of several traps used in [[trapping]] to catch a variety of [[animals|wildlife]]. However, it is the only trap that cannot be crafted.


===Trapping===
===Trapping===
{{Main|Trapping}}
{{Main|Trapping}}
Cage traps can be used to catch {{T|mouse|mice}} and {{T|rat}}s.
Cage traps can be used to catch [[mouse|mice]] and [[rat]]s.
{| width="100px" style="text-align:left;"
{| width="100px" style="text-align:left;"
|+ '''''Catch chance:'''''
|+ '''''Catch chance:'''''
Line 32: Line 36:
|}
|}


{{clear}}
==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
The loot distributions can be found in the table(s) below.
Line 39: Line 42:
! colspan="4" | Containers
! colspan="4" | Containers
|-
|-
!Building/Room
! Building/Room
!Container
! Container
! style="width: 3.2em;" |Rolls
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" |Chance
! style="width: 3.2em;" | Chance
|-
|-
| rowspan="1"|gardenstore
|closet
| [[counter]]  
|[[crate]]
| 4  
|4
| 8
|1
|-
|-
| rowspan="1"|gasstorage
|gardenstore
| [[counter]]  
|[[counter]]
| 4  
|4
| 1
|8
|-
|-
| rowspan="1"|kitchen
|gasstorage
| [[counter]]  
|[[counter]]
| 4  
|4
| 8
|1
|-
|-
| rowspan="1"|toolstore  
|kitchen
| [[counter]]  
|[[counter]]
| 4  
|4
| 4
|8
|-
|toolstore
|[[counter]]
|4
|4
|}
|}


==Code==
==Code==
{{CodeBox
{{CodeBox|
| {{CodeSnip
 
===Item===
{{CodeSnip
   | lang = java
   | lang = java
   | line = false
   | line = true
  | start = 2312
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
   | version = 41
   | version = 41.78.16
  | incver = 50
   | code =
   | code =
item TrapMouse
item TrapMouse
{
    {
    Weight     = 0.3,
        DisplayCategory = Trapping,
    Type       = Normal,
        Weight = 0.3,
    DisplayName = Mouse Trap,
        Type = Normal,
    Icon       = Mousetrap,
        DisplayName = Mouse Trap,
    Trap       = true,
        Icon = Mousetrap,
    MetalValue = 2,
        Trap   =   true,
}
        MetalValue = 2,
    }
}}
 
===Tile===
{{CodeSnip
  | lang = lua
  | line = false
  | path = ProjectZomboid\media\lua\server\Traps
  | source = TrapDefinition.lua
  | retrieved = true
  | version = 41.78.16
  | code =
local mouseTrap = {};
mouseTrap.type = "Base.TrapMouse";
mouseTrap.sprite = "constructedobjects_01_18";
mouseTrap.closedSprite = "constructedobjects_01_19";
mouseTrap.trapStrength = 50;
mouseTrap.destroyItem = "Base.UnusableWood";
table.insert(Traps, mouseTrap);
   }}
   }}
}}
}}


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


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

Revision as of 10:24, 14 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Mouse Trap
MouseTrap.png
[[File:{{{icon2}}}|Mouse Trap|]]
[[File:{{{icon3}}}|Mouse Trap|]]
[[File:{{{icon4}}}|Mouse Trap|]]
[[File:{{{icon5}}}|Mouse Trap|]]
General
Category
Item
EncumbranceMoodle Icon HeavyLoad.png
0.3
Size
1 tile
Function
Catch animals
Properties
Health
50
Strength
50
Animals
Mouse.png Rat.png
Destroy
Products
Technical
Item ID(s)
Base.TrapMouse
Tile ID(s)
constructedobjects_01_18

A mouse trap is a small-sized trap used by beginner trappers.

Usage

A mouse trap is one of several traps used in trapping to catch a variety of wildlife. However, it is the only trap that cannot be crafted.

Trapping

Main article: Trapping

Cage traps can be used to catch mice and rats.

Catch chance:
Mouse 30%
Rat 25%

Distribution

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

Containers
Building/Room Container Rolls Chance
closet crate 4 1
gardenstore counter 4 8
gasstorage counter 4 1
kitchen counter 4 8
toolstore counter 4 4

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 TrapMouse
    {
        DisplayCategory = Trapping,
        Weight	=	0.3,
        Type	=	Normal,
        DisplayName	=	Mouse Trap,
        Icon	=	Mousetrap,
        Trap    =   true,
        MetalValue = 2,
    }

Tile

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

Retrieved: Build 41.78.16
local mouseTrap = {};
mouseTrap.type = "Base.TrapMouse";
mouseTrap.sprite = "constructedobjects_01_18";
mouseTrap.closedSprite = "constructedobjects_01_19";
mouseTrap.trapStrength = 50;
mouseTrap.destroyItem = "Base.UnusableWood";
table.insert(Traps, mouseTrap);

See also