Double Shelves: Difference between revisions
m (Automated navbox update) |
(Page version, rm stub, infobox, add code, see also) |
||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Tiles|Container tiles}} | {{Header|Project Zomboid|Tiles|Container tiles}} | ||
{{Page version| | {{Page version|41.78.16}} | ||
{{Infobox tile | {{Infobox tile | ||
|name = Hardwood Wall Shelves | |name = Hardwood Wall Shelves | ||
Line 30: | Line 29: | ||
|products = | |products = | ||
<!--Technical details--> | <!--Technical details--> | ||
| | |item_id = Movables.{TileID} | ||
|tile_id = furniture_shelving_01_2 | |||
}} | }} | ||
Line 37: | Line 37: | ||
==Usage== | ==Usage== | ||
Double shelves can be used to store up to 15 weight worth of [[items]]. | Double shelves can be used to store up to 15 weight worth of [[items]]. Due to it's minimal storage, this [[Containers|container]] is used more for aesthetic purposes than practical reasons. | ||
==Crafting== | ==Crafting== | ||
===Carpentry=== | ===Carpentry=== | ||
{{Main|Carpentry}} | {{Main|Carpentry}} | ||
Line 47: | Line 45: | ||
{{Crafting carpentry|314|ing=3}} | {{Crafting carpentry|314|ing=3}} | ||
|} | |} | ||
==Code== | |||
{{CodeBox| | |||
{{CodeSnip | |||
| lang = lua | |||
| line = true | |||
| start = 1545 | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
ISBuildMenu.onDoubleShelve = function(worldobjects, square, sprite, player) | |||
-- name, sprite, northSprite | |||
local furniture = ISSimpleFurniture:new("Double 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"] = 5; | |||
furniture.modData["need:Base.Plank"] = "2"; | |||
furniture.modData["need:Base.Nails"] = "4"; | |||
furniture.player = player | |||
furniture.completionSound = "BuildWoodenStructureSmall"; | |||
getCell():setDrag(furniture, player); | |||
end | |||
}} | |||
}} | |||
==See also== | ==See also== |
Revision as of 08:17, 12 March 2024
Hardwood Wall Shelves
[[File:{{{icon2}}}|Hardwood Wall Shelves|]]
[[File:{{{icon3}}}|Hardwood Wall Shelves|]]
[[File:{{{icon4}}}|Hardwood Wall Shelves|]]
[[File:{{{icon5}}}|Hardwood Wall Shelves|]]
Technical
Item ID(s)
Movables.{TileID}
Tile ID(s)
furniture_shelving_01_2
“
What's better than one shelf? Two at the same time!
Double shelves are a craftable container.
Usage
Double shelves can be used to store up to 15 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 |
---|---|---|---|---|---|---|
Double Shelves |
1.25 Carpentry | Carpentry 2 | Hammer (tag) (keep) |
Plank x2 (consumed) |
Nails x4 (consumed) |
Code
Code snippet! This section contains source code from Project ZomboidShow / Hide
Retrieved: Build 41.78.16
ISBuildMenu.onDoubleShelve = function(worldobjects, square, sprite, player)
-- name, sprite, northSprite
local furniture = ISSimpleFurniture:new("Double 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"] = 5;
furniture.modData["need:Base.Plank"] = "2";
furniture.modData["need:Base.Nails"] = "4";
furniture.player = player
furniture.completionSound = "BuildWoodenStructureSmall";
getCell():setDrag(furniture, player);
end