Shelves: Difference between revisions

From PZwiki
mNo edit summary
m (Automated Formatting)
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Tiles|Container tiles}}
{{header|The Game World|Tiles|Furniture|Container|type=Furniture|version=Version 40|incver=43}}
{{Page version|41.78.16}}
{{Stub}}
{{Infobox tile
{{Infobox furniture
|name=Crafted Wall Shelves
|display_name = Crafted Wall Shelves
|model=Shelves_Carpentry.png
|name_colour = Furniture
|icon=Shelves_Carpentry.png
|name_text_colour = Furniture
|category=Movable
|image = Shelves_Carpentry.png
|weight=7.5
|image_width = 128px
|size=1
|category = Movable
|weight = 7.5
|size = 1
<!--Properties-->
<!--Properties-->
|type = Container
|type=Container
|container = Shelf
|container=Shelf
|function =
|capacity=10
|capacity = 10
<!--Build-->
<!--Build-->
|build_skill = [[Carpentry]]
|build_skill=[[Carpentry]]
|build_level = 2
|build_level=2
|build_tool = <small>[[File:Hammer.png|20px|link=Hammer]] [[Hammer]]<br>[[File:HammerStone.png|20px|link=Stone Hammer]] [[Stone Hammer]]</small>
|build_tool_tag=Hammer
|ingredients = <small>1 × [[File:Plank.png|20px|link=Plank]] [[Plank]]<br>2 × [[File:Nails.png|20px|link=Nails]] [[Nails]]</small>
|ingredients=<small>1 × [[File:Plank.png|20px|link=Plank]] [[Plank]]<br>2 × [[File:Nails.png|20px|link=Nails]] [[Nails]]</small>
<!--Move-->
<!--Move-->
|move_skill = [[Carpentry]]
|move_skill=[[Carpentry]]
|move_level = 0
|move_level=0
|move_tool = <small>[[File:Hammer.png|20px|link=Hammer]] [[Hammer]]<br>[[File:HammerStone.png|20px|link=Stone Hammer]] [[Stone Hammer]]</small>
|move_tool_tag=Hammer
<!--Disassemble-->
<!--Disassemble-->
|disassemble_skill = [[Carpentry]]
|disassemble_skill=[[Carpentry]]
|disassemble_level = 0
|disassemble_level=0
|disassemble_tool = <small>[[File:Hammer.png|20px|link=Hammer]] [[Hammer]]<br>[[File:HammerStone.png|20px|link=Stone Hammer]] [[Stone Hammer]]
|disassemble_tool_tag=Hammer
----
|disassemble_tool_tag2=Saw
[[File:Saw.png|20px|link=Saw]] [[Saw]]</small>
|products =
<!--Technical details-->
<!--Technical details-->
|class_name = Base.Movable
|item_id=Movables.{TileID}
}}{{quote|text=Basic shelves for loot and item storage.|author=In-game description}}
|tile_id=carpentry_02_68
}}
{{Quote|text=Basic shelves for loot and item storage.|author=In-game description}}
'''Shelves''' are a [[Crafting|craftable]] [[Containers|container]].
'''Shelves''' are a [[Crafting|craftable]] [[Containers|container]].


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


== Crafting ==
==Crafting==
Crafting requires a [[Skills|carpentry skill]] of 2.
===Carpentry===
===Carpentry===
{{Main|Carpentry}}
{{Main|Carpentry}}
{{Crafting header|ing=3}}
{{Crafting/sandbox2
{{Crafting carpentry|313|ing=3}}
|shelves
|}
}}
 
==Code==
{{CodeBox|
{{CodeSnip
  | lang = java
  | line = true
  | start = 1515
  | retrieved = true
  | version = 41.78.16
  | code =
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
}}
}}
 


{{clear}}
==See also==
==See also==
*[[Carpentry Guide]]
*[[Carpentry]]
*[[Containers]]
*[[Containers]]
*[[Furniture]]
*[[Furniture]]
*[[Double Shelves]]


{{Navbox/Construction}}
{{Navbox construction|carpentry}}


[[Category:Carpentry]]
[[Category:Carpentry]]
[[Category:Spiffo's Construction Crew (Project)]]
[[Category:Spiffo's Construction Crew (Project)]]
[[Category:Seat Yourself Furniture (Project)]]
[[Category:Seat Yourself Furniture (Project)]]

Latest revision as of 12:00, 14 April 2024

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 Ingredients Tools Requirements Workstation XP
Shelves Carpentry.png
Shelves
Plank.png Plank ×1
Nails.png Nails ×2

Hammer.png
Hammer (tag)
Carpentry 2 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.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