Doorknob: Difference between revisions

From PZwiki
m (Fixed a display bug in the crafting section)
m (Automated Formatting)
 
(25 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{languages|Doorknob}}
{{Header|Project Zomboid|Items|Materials}}
{{header|The Game World|Items|type=Construction|version=Version 41|incver=39}}{{Infobox normal
{{Page version|41.78.16}}
|display_name = Doorknob
{{Infobox item
|name_colour = Construction
|name=Doorknob
|name_text_colour = Construction
|model=DoorKnob_Model.png
|image = DoorKnob.png
|icon=DoorKnob.png
|weight = 0.5
|icon_name=Door Knob
|primary_use = [[Crafting]]
<!--General-->
|class_name = Base.Doorknob
|category=Material
}}A '''doorknob''' is an item used in [[Carpentry Guide|carpentry]].
|weight=0.5
|function=[[Crafting]]
<!--Properties-->
|material=Metal
|material_value=10
<!--Technical-->
|item_id=Base.Doorknob
}}
A '''doorknob''' is an item used in [[carpentry]].


==Usage==
==Usage==
The only purpose of the doorknob is to craft [[door]]s and [[drawer]]s.  
The only purpose of the doorknob is to craft [[door]]s and [[drawer]]s.


If the player uses the doorknob from a door they have the [[key]] to, crafting a new door can also be locked/unlocked with the same key.
If the player uses the doorknob from a door they have the [[key]] to, crafting a new door can also be locked/unlocked with the same key.


==Crafting==
==Crafting==
{{Crafting header|ing=5}}
{{Crafting/sandbox2
{{Crafting carpentry|004|ing=4}}
|drawer
{{Crafting carpentry|517|ing=5}}
|wooden_door
{{Crafting carpentry|518|ing=5}}
|double_wooden_door
|}
}}


==Distribution==
==Distribution==
It is found mainly in the hardware store, but a destroyed door will always yield a doorknob, along with some [[plank]]s and some [[Door Hinge|door hinges]].  
A destroyed door will always yield a doorknob, along with some [[plank]]s and some [[Door Hinge|door hinges]].


==Code==
==Code==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=65}}
| {{CodeSnip
<nowiki> item Doorknob
  | lang = java
  | line = true
  | start = 119
  | source = items.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Doorknob
{
{
        DisplayCategory =     Material,
    DisplayCategory = Material,
Weight         = 0.5,
Weight = 0.5,
Type         = Normal,
Type = Normal,
DisplayName = Doorknob,
DisplayName = Doorknob,
Icon         = DoorKnob,
Icon = DoorKnob,
MetalValue       =     10,
MetalValue = 10,
WorldStaticModel =     DoorKnob,
WorldStaticModel = DoorKnob,
}
}
</nowiki>
}}
}}


==See also==
==See also==
* [[Carpentry Guide]]
*[[Carpentry]]
 
*[[Door Hinge]]
{{Navbox/Construction}}


[[Category:Construction]]
[[Category:Construction]]
[[Category:Spiffo's Construction Crew (Project)]]
[[Category:Spiffo's Construction Crew (Project)]]
[[Category:Metal]]
[[Category:Carpentry materials]]
{{Navbox items|carpentry_materials}}

Latest revision as of 08:07, 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]
Doorknob
DoorKnob Model.png
General
Category
Material
Encumbrance
Moodle Icon HeavyLoad.png
0.5
Function
Properties
Material
Metal
Metal quantity
10
Technical
Item ID
Base.Doorknob

A doorknob is an item used in carpentry.

Usage

The only purpose of the doorknob is to craft doors and drawers.

If the player uses the doorknob from a door they have the key to, crafting a new door can also be locked/unlocked with the same key.

Crafting

Product Ingredients Tools Requirements Workstation XP
Drawer.png
Drawer
Plank.png Plank ×1
DoorKnob.png Doorknob ×1
Nails.png Nails ×1

Hammer.png
Hammer (tag)
none none 0.25 Carpentry
WoodenDoor Carpentry.gif
Door
Plank.png Plank ×4
Nails.png Nails ×4
Doorhinge.png Door Hinge ×2
DoorKnob.png Doorknob ×1

Hammer.png
Hammer (tag)
Carpentry 3 none 0.75 Carpentry
DoubleWoodenDoor Carpentry.png
Double Wooden Door
Plank.png Plank ×12
Nails.png Nails ×12
Doorhinge.png Door Hinge ×4
DoorKnob.png Doorknob ×2

Hammer.png
Hammer (tag)
Carpentry 6 none 6 Carpentry

Distribution

A destroyed door will always yield a doorknob, along with some planks and some door hinges.

Code

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

Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item Doorknob
	{
	    DisplayCategory = Material,
		Weight	=	0.5,
		Type	=	Normal,
		DisplayName	=	Doorknob,
		Icon	=	DoorKnob,
		MetalValue = 10,
		WorldStaticModel = DoorKnob,
	}

See also