Shelves

From PZwiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Crafted Wall Shelves
Shelves Carpentry.png
[[File:{{{icon2}}}|Crafted Wall Shelves|]]
[[File:{{{icon3}}}|Crafted Wall Shelves|]]
[[File:{{{icon4}}}|Crafted Wall Shelves|]]
[[File:{{{icon5}}}|Crafted Wall Shelves|]]
General
Category
Movable
EncumbranceMoodle Icon HeavyLoad.png
7.5
Size
1 tile
Properties
TypeShelf
Container
Capacity
10
Build
Skill (level)
Tool(s)
Ingredients
1 × Plank.png Plank
2 × Nails.png Nails
Move
Skill (level)
Tool(s)
Disassemble
Skill (level)
Tool(s)
Technical
Item ID(s)
Movables.{TileID}
Tile ID(s)
carpentry_02_68
Basic shelves for loot and item storage.
— In-game description

Shelves are a craftable container.

Usage

Shelves can be used to store up to 10 weight worth of items. Due to it's minimal storage, this container is used more for aesthetic purposes than practical reasons.

Crafting

Carpentry

Main article: Carpentry
Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
Shelves Carpentry.png
Shelves
0.75 Carpentry Carpentry 2 Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank x1
(consumed)
Nails.png
Nails x2
(consumed)

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide
Retrieved: Build 41.78.16
ISBuildMenu.onShelve = function(worldobjects, square, sprite, player)
    -- name, sprite, northSprite
    local furniture = ISSimpleFurniture:new("Shelves", sprite.sprite, sprite.northSprite);
    furniture.isContainer = true;
    furniture.needToBeAgainstWall = true;
	furniture.buildLow = false;
    furniture.blockAllTheSquare = false;
    furniture.isWallLike = true
    furniture.containerType = "shelves";
    furniture.modData["xp:Woodwork"] = 3;
    furniture.modData["need:Base.Plank"] = "1";
    furniture.modData["need:Base.Nails"] = "2";
    furniture.player = player
    furniture.completionSound = "BuildWoodenStructureSmall";
    getCell():setDrag(furniture, player);
end


See also