Small Bookcase

From PZwiki
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Small Bookcase
SmallBookcase Carpentry.png
[[File:{{{icon2}}}|Small Bookcase|]]
[[File:{{{icon3}}}|Small Bookcase|]]
[[File:{{{icon4}}}|Small Bookcase|]]
[[File:{{{icon5}}}|Small Bookcase|]]
General
Category
Movable
EncumbranceMoodle Icon HeavyLoad.png
10
Size
1 tile
Function
Holds items
Properties
TypeShelf
Container
Capacity
20
Build
Skill (level)
Tool(s)
Ingredients
3 × Plank.png Plank
3 × Nails.png Nails
Move
Skill (level)
None
Tool(s)
None
Disassemble
Skill (level)
Tool(s)
Technical
Item ID(s)
Movables.{TileID}
Tile ID(s)
furniture_shelving_01_23
Show off your reading loot with pride.
— In-game description

A small bookcase is a craftable container.

Usage

A small bookcase can be used to store up to 20 weight worth of items. It is mostly a decorative item, and can be found throughout Knox Country.

Crafting

Carpentry

Main article: Carpentry
Product Ingredients Tools Requirements Workstation XP
SmallBookcase Carpentry.png
Small Bookcase
Plank.png Plank ×3
Nails.png Nails ×3

Hammer.png
Hammer (tag)
Carpentry 3 none 0.75 Carpentry

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide
Retrieved: Build 41.78.16
ISBuildMenu.onSmallBookcase = function(worldobjects, square, sprite, player)
-- name, sprite, northSprite
    local furniture = ISSimpleFurniture:new("Small Bookcase", sprite.sprite, sprite.northSprite);
    furniture.canBeAlwaysPlaced = true;
    furniture.isContainer = true;
    furniture.containerType = "shelves";
    furniture.modData["xp:Woodwork"] = 3;
    furniture.modData["need:Base.Plank"] = "3";
    furniture.modData["need:Base.Nails"] = "3";
    -- our chair have 4 tiles (north, east, south and west)
    -- then we define our east and south sprite
    furniture:setEastSprite(sprite.eastSprite);
    furniture:setSouthSprite(sprite.southSprite);
    furniture.player = player
    furniture.completionSound = "BuildWoodenStructureMedium";
    getCell():setDrag(furniture, player);
end


See also