Metal Shelves

From PZwiki
Revision as of 17:18, 25 March 2024 by CalvyBot (talk | contribs) (Automatic formatting)
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 XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4 Ingredient 5 Ingredient 6
MetalShelves Metalwork.png
Metal Shelves
5 Metalworking Metalworking 2 The Metalwork Magazine Vol.2 BlowTorch.png
Propane Torch
(2 units)

(keep)
WeldingMask.png
Welder Mask
(keep)
WeldingRods.png
Welding Rods
(1 units)

(consumed)
MetalTube.png
Metal Pipe x2
(consumed)
MetalSheetSmall.png
Small Metal Sheet x1
(consumed)
ScrapMetal.png
Scrap Metal x1
(consumed)

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