Door Hinge: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎Code: Codebox Update)
Line 29: Line 29:


==Code==
==Code==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=65}}
| {{CodeSnip
<pre>
  | lang = java
item Hinge
  | line = true
{
  | start = 0
        DisplayCategory  =     Material,
  | source = items.txt
Weight         = 0.3,
  | retrieved = true
Type         = Normal,
  | version = 41
DisplayName = Door Hinge,
  | incver = 65
Icon         = Doorhinge,
  | code =
MetalValue      =     10,
item Hinge
WorldStaticModel =     DoorHinge,
{
}
    DisplayCategory  = Material,
</pre>
    Weight           = 0.3,
    Type             = Normal,
    DisplayName     = Door Hinge,
    Icon             = Doorhinge,
    MetalValue      = 10,
    WorldStaticModel = DoorHinge,
}
  }}
}}


==See also==
==See also==

Revision as of 05:37, 13 January 2024

Project ZomboidItemsDoor Hinge
Door Hinge
DoorHinge Model.png
General
Category
Material
Encumbrance
Moodle Icon HeavyLoad.png
0.3
Function
Properties
Material
Metal
Metal quantity
10
Technical
Item ID
Base.Hinge

A door hinge is an item used in carpentry.

Usage

Door hinges are required to craft a door.

Crafting

To craft a door, see crafting recipe found below.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4 Ingredient 5
WoodenDoor Carpentry.gif
Door
0.75 Carpentry Carpentry 3 Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank x4
(consumed)
Nails.png
Nails x4
(consumed)
Doorhinge.png
Door Hinge x2
(consumed)
DoorKnob.png
Doorknob x1
(consumed)
DoubleWoodenDoor Carpentry.png
Double Wooden Door
6 Carpentry Carpentry 6 Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank x12
(consumed)
Nails.png
Nails x12
(consumed)
Doorhinge.png
Door Hinge x4
(consumed)
DoorKnob.png
Doorknob x2
(consumed)

Distribution

Door hinges are obtained by destroying a door or by looting the dropped items in the hardware store.

Code

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

Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.65
item Hinge
{
    DisplayCategory  = Material,
    Weight           = 0.3,
    Type             = Normal,
    DisplayName      = Door Hinge,
    Icon             = Doorhinge,
    MetalValue       = 10,
    WorldStaticModel = DoorHinge,
}

See also