Small Bookcase: Difference between revisions

From PZwiki
m (Infobox update)
m (Automatic formatting)
Line 2: Line 2:
{{Page version|41.78.16}}
{{Page version|41.78.16}}
{{Infobox tile
{{Infobox tile
|name = Small Bookcase
|name=Small Bookcase
|model = SmallBookcase_Carpentry.png
|model=SmallBookcase_Carpentry.png
|icon = SmallBookcase_Carpentry.png
|icon=SmallBookcase_Carpentry.png
|category = Movable
|category=Movable
|weight = 10
|weight=10
|size = 1
|size=1
<!--Properties-->
<!--Properties-->
|type = Container
|type=Container
|container = Shelf
|container=Shelf
|function = Holds items
|function=Holds items
|capacity = 20
|capacity=20
<!--Build-->
<!--Build-->
|build_skill = [[Carpentry]]
|build_skill=[[Carpentry]]
|build_level = 3
|build_level=3
|build_tool_tag = Hammer
|build_tool_tag=Hammer
|ingredients = <small>3 × [[File:Plank.png|20px|link=Plank]] [[Plank]]<br>3 × [[File:Nails.png|20px|link=Nails]] [[Nails]]</small>
|ingredients=<small>3 × [[File:Plank.png|20px|link=Plank]] [[Plank]]<br>3 × [[File:Nails.png|20px|link=Nails]] [[Nails]]</small>
<!--Move-->
<!--Move-->
|move_skill = ''None''
|move_skill=''None''
|move_level =
|move_tool=''None''
|move_tool = ''None''
<!--Disassemble-->
<!--Disassemble-->
|disassemble_skill = [[Carpentry]]
|disassemble_skill=[[Carpentry]]
|disassemble level = 0
|disassemblelevel=0
|disassemble_tool_tag = Hammer
|disassemble_tool_tag=Hammer
|disassemble_tool_tag2 = Saw
|disassemble_tool_tag2=Saw
|products =
<!--Technical details-->
<!--Technical details-->
|item_id = Movables.{TileID}
|item_id=Movables.{TileID}
|tile_id = furniture_shelving_01_23
|tile_id=furniture_shelving_01_23
}}
}}



Revision as of 18:22, 25 March 2024

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 XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
SmallBookcase Carpentry.png
Small Bookcase
0.75 Carpentry Carpentry 3 Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank x3
(consumed)
Nails.png
Nails x3
(consumed)

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