Small Bookcase: Difference between revisions
(Version update, add code, see also, infobox) |
m (Infobox update) |
||
Line 29: | Line 29: | ||
|products = | |products = | ||
<!--Technical details--> | <!--Technical details--> | ||
|item_id = Movables.{TileID} | |||
|tile_id = furniture_shelving_01_23 | |tile_id = furniture_shelving_01_23 | ||
}} | }} |
Revision as of 08:36, 12 March 2024
Small Bookcase
[[File:{{{icon2}}}|Small Bookcase|]]
[[File:{{{icon3}}}|Small Bookcase|]]
[[File:{{{icon4}}}|Small Bookcase|]]
[[File:{{{icon5}}}|Small Bookcase|]]
Move
Skill (level)
None
Tool(s)
None
Technical
Item ID(s)
Movables.{TileID}
Tile ID(s)
furniture_shelving_01_23
“
Show off your reading loot with pride.
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 |
---|---|---|---|---|---|---|
Small Bookcase |
0.75 Carpentry | Carpentry 3 | Hammer (tag) (keep) |
Plank x3 (consumed) |
Nails x3 (consumed) |
Code
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