Metal Shelves: Difference between revisions

From PZwiki
(category added)
m (Automated Formatting)
 
(22 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Tiles|Container tiles}}
{{header|The Game World|Tiles|Furniture|Container|type=Furniture|version=Version 40|incver=43}}
{{Page version|41.78.16}}
{{VersionNotice|version=Version 40.43}}
{{Infobox tile
{{Infobox furniture
|name=Metal Shelves
|display_name = Metal Shelves
|model=MetalShelves_Small.gif
|name_colour = Furniture
|icon=MetalShelves Small.gif
|name_text_colour = Furniture
|category=Furniture
|image = MetalShelves Small.gif
|weight=7.5
|image_width = 128px
|size=1
|alternate_image = MetalShelves Small.gif{{!}}32px
|alternate_name = Metal Shelves
|alternate_link =
|category = Furniture
|weight = 7.5
|size = 1
<!--Properties-->
<!--Properties-->
|type = Container
|type=Container
|container = Shelf
|container=Shelf
|function = Item Storage
|function=Item Storage
|capacity = 30
|capacity=30
<!--Build-->
<!--Build-->
|build_skill = [[Metalworking]]
|build_skill=[[Metalworking]]
|build_level = 2
|build_level=2
|build_tool = <small>[[File:BlowTorch.png|20px|link=Propane_Torch]] [[Propane Torch]]<br>[[File:WeldingMask.png|20px|link=Welder_Mask]] [[Welder Mask]]<br>[[File:WeldingRods.png|20px|link=Welding_Rods]] [[Welding Rods]]</small>
|build_tool=<small>[[File:BlowTorch.png|20px|link=Propane_Torch]] [[Propane Torch]]<br>[[File:WeldingMask.png|20px|link=Welder_Mask]] [[Welder Mask]]<br>[[File:WeldingRods.png|20px|link=Welding_Rods]] [[Welding Rods]]</small>
|ingredients = <small>2 × [[File:MetalTube.png|20px|link=Metal Pipe]] [[Metal Pipe]]<br>1 × [[File:MetalSheetSmall.png|20px|link=Small_Metal_Sheet]] [[Small Metal Sheet]]<br>1 × [[File:ScrapMetal.png|20px|link=Scrap_Metal]] [[Scrap Metal]]</small>
|ingredients=<small>2 × [[File:MetalTube.png|20px|link=Metal Pipe]] [[Metal Pipe]]<br>1 × [[File:MetalSheetSmall.png|20px|link=Small_Metal_Sheet]] [[Small Metal Sheet]]<br>1 × [[File:ScrapMetal.png|20px|link=Scrap_Metal]] [[Scrap Metal]]</small>
<!--Move-->
<!--Move-->
|move_skill = [[Carpentry]]
|move_skill=None
|move_level = 1
|move_tool=None
|move_tool = <small>[[File:Hammer.png|20px|link=Hammer]] [[Hammer]]<br>[[File:HammerStone.png|20px|link=Stone Hammer]] [[Stone Hammer]]</small>
<!--Disassemble-->
<!--Disassemble-->
|disassemble_skill = [[Metalworking]]
|disassemble_skill=[[Metalworking]]
|disassemble_level = 0
|disassemble_level=0
|disassemble_tool = <small>[[File:BlowTorch.png|20px|link=Propane_Torch]] [[Propane Torch]]<br>[[File:WeldingMask.png|20px|link=Welder_Mask]] [[Welder Mask]]</small>
|disassemble_tool=<small>[[File:BlowTorch.png|20px|link=Propane_Torch]] [[Propane Torch]]<br>[[File:WeldingMask.png|20px|link=Welder_Mask]] [[Welder Mask]]</small>
|products =
<!--Technical details-->
<!--Technical details-->
|class_name =  
|item_id=Movables.{TileID}
|tile_id=furniture_shelving_01_29
}}
}}
'''Metal shelves''' is a [[Crafting|craftable]] [[containers|container]] that can also be generated in houses.
'''Metal shelves''' is a [[Crafting|craftable]] [[containers|container]] that can also be found in houses.


==Usage==
==Usage==
Metal shelves are used for storing items, with a maximum capacity of {{Tooltip|30|Or 39 with the Organized trait.}}.
Metal shelves are used for storing items, with a weight capacity of 30. They are useful to store items in areas where a [[Wooden Crate|crate]] would not be possible.


== Crafting ==
==Crafting==
Crafting requires a [[Skills|metalworking skill]] of 2.
===Metalworking===
===Metalworking===
{{Main|Metalworking}}
{{Main|Metalworking}}
{{Crafting header|ing=6}}
{{Crafting/sandbox2
{{Crafting/core|ing=6
|metal_shelves
| product_image = [[File:MetalShelves Small.gif{{!}}60px|link=Metal Shelves|Metal Shelves]]      | product_name = [[Metal Shelves]]      | product_quantity =  
}}
| rec = Build Metal Shelves
 
| xp = 5 [[Metalworking|MW]]
==Code==
| sl = [[Metalworking|MW]] = 2
{{CodeBox|
| req = [[File:MagazineWelding2.png|link=Recipe Magazines|The Metalwork Magazine Vol.2]]
{{CodeSnip
| f1 = [[File:BlowTorch.png|link=Propane_Torch]]                          | i1 = [[Propane Torch]]                    | q1 = (7&nbsp;units)  | tag1 = (keep)
  | lang = java
| f2 = [[File:WeldingMask.png|link=Welder_Mask]]                          | i2 = [[Welder Mask]]                      | q2 =                 | tag2 = (keep)
  | line = true
| f3 = [[File:WeldingRods.png|link=Welding_Rods]]                        | i3 = [[Welding Rods]]                     | q3 = (3.5&nbsp;units) | tag3 = (consumed)
  | start = 990
| f4 = [[File:MetalTube.png|link=Metal_Pipe]]                             | i4 = [[Metal Pipe]]                       | q4 = x2              | tag4 = (consumed)
  | retrieved = true
| f5 = [[File:MetalSheetSmall.png|link=Small_Metal_Sheet]]                | i5 = [[Small Metal Sheet]]                | q5 = x1              | tag5 = (consumed)
  | version = 41.78.16
| f6 = <br><br><br><br>[[File:ScrapMetal.png|link=Scrap_Metal]]          | i6 = [[Scrap Metal]]                      | q6 = x1              | tag6 = (consumed)
  | code =
ISBlacksmithMenu.onMetalShelves = function(worldobjects, player, torchUse)
    local fence = ISSimpleFurniture:new("shelves", "furniture_shelving_01_29","furniture_shelving_01_28");
    fence.noNeedHammer = true;
    fence.needToBeAgainstWall = true;
    fence.buildLow = false;
    fence.isWallLike = true;
    fence.isContainer = true;
    fence.containerType = "shelves";
    fence.firstItem = "BlowTorch";
--    fence.firstPredicate = predicateDrainableUsesInt
--    fence.firstArg = tonumber(torchUse)
    fence.secondItem = "WeldingMask";
    fence.craftingBank = "BlowTorch";
    fence.modData["xp:MetalWelding"] = 20;
    fence.modData["need:Base.MetalPipe"]= "2";
    fence.modData["need:Base.SmallSheetMetal"]= "1";
    fence.modData["need:Base.ScrapMetal"]= "1";
    fence.modData["use:Base.BlowTorch"] = torchUse;
    fence.modData["use:Base.WeldingRods"] = ISBlacksmithMenu.weldingRodUses(torchUse);
    fence.player = player
    fence.completionSound = "BuildMetalStructureSmall";
    getCell():setDrag(fence, player);
end
}}
}}
}}
|}


==See also==
==See also==
*[[Metalworking|Metalworking]]
*[[Metalworking]]
*[[Containers]]
*[[Containers]]
*[[Furniture]]
*[[Furniture]]
*[[Shelves]]


{{Navbox/Construction}}
{{Navbox construction|metalworking}}


[[Category:Metalwork]]
[[Category:Metalwork]]
[[Category:Spiffo's Construction Crew (Project)]]

Latest revision as of 10:13, 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]
Metal Shelves
MetalShelves Small.gif
[[File:{{{icon2}}}|Metal Shelves|]]
[[File:{{{icon3}}}|Metal Shelves|]]
[[File:{{{icon4}}}|Metal Shelves|]]
[[File:{{{icon5}}}|Metal Shelves|]]
General
Category
Furniture
EncumbranceMoodle Icon HeavyLoad.png
7.5
Size
1 tile
Function
Item Storage
Properties
TypeShelf
Container
Capacity
30
Build
Skill (level)
Ingredients
Move
Skill (level)
None
Tool(s)
None
Disassemble
Skill (level)
Technical
Item ID(s)
Movables.{TileID}
Tile ID(s)
furniture_shelving_01_29

Metal shelves is a craftable container that can also be found in houses.

Usage

Metal shelves are used for storing items, with a weight capacity of 30. They are useful to store items in areas where a crate would not be possible.

Crafting

Metalworking

Main article: Metalworking
Product Ingredients Tools Requirements Workstation XP
MetalShelves Metalwork.png
Metal Shelves
MetalTube.png Metal Pipe ×2
MetalSheetSmall.png Small Metal Sheet ×1
ScrapMetal.png Scrap Metal ×1
BlowTorch.png
Propane Torch
2 unit(s)
  
(and)
WeldingMask.png
Welder Mask
(and)
WeldingRods.png
Welding Rods
1 unit(s)
  

MagazineWelding2.png
The Metalwork Magazine Vol.2
none 5 Metalworking

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide
Retrieved: Build 41.78.16
ISBlacksmithMenu.onMetalShelves = function(worldobjects, player, torchUse)
    local fence = ISSimpleFurniture:new("shelves", "furniture_shelving_01_29","furniture_shelving_01_28");
    fence.noNeedHammer = true;
    fence.needToBeAgainstWall = true;
    fence.buildLow = false;
    fence.isWallLike = true;
    fence.isContainer = true;
    fence.containerType = "shelves";
    fence.firstItem = "BlowTorch";
--    fence.firstPredicate = predicateDrainableUsesInt
--    fence.firstArg = tonumber(torchUse)
    fence.secondItem = "WeldingMask";
    fence.craftingBank = "BlowTorch";
    fence.modData["xp:MetalWelding"] = 20;
    fence.modData["need:Base.MetalPipe"]= "2";
    fence.modData["need:Base.SmallSheetMetal"]= "1";
    fence.modData["need:Base.ScrapMetal"]= "1";
    fence.modData["use:Base.BlowTorch"] = torchUse;
    fence.modData["use:Base.WeldingRods"] = ISBlacksmithMenu.weldingRodUses(torchUse);
    fence.player = player
    fence.completionSound = "BuildMetalStructureSmall";
    getCell():setDrag(fence, player);
end

See also