Spruce shelf
How to Craft / Obtain
Uses for this Item (Recipes Including This)
This item is not used as an ingredient in any known crafting recipes.
About
A shelf is a versatile storage block capable of holding and displaying up to three item stacks directly in front of it in a manner similar to an item frame. Players can easily break shelves by hand, though using an axe provides the fastest mining speed. Each of the three available slots can accommodate a full stack of any stackable item or a single unit of a non-stackable item without displaying the numeric count. In Java Edition, shelves cannot be moved by pistons, and overworld shelves can serve as furnace fuel to smelt one and a half items each, whereas nether shelves cannot be used as fuel.
Interacting with any of the three slots normally swaps the player's main hand item with the contents of that specific slot. When powered by redstone, however, a shelf changes its front texture and combines its slots together to allow rapid hotbar management. Up to three adjacent powered shelves can connect to one another, prioritizing connections to shelves on the left, which enables players to swap six or nine items simultaneously. Interacting with a single powered shelf swaps its contents with the three rightmost slots in the hotbar, while interacting with two or three connected shelves swaps items with six or all nine hotbar slots respectively.
Redstone comparators can read the contents of a shelf when positioned so that the back of the shelf faces the comparator. Items placed in the left, middle, or right slots emit redstone power levels of 1, 2, and 4 respectively. If multiple slots contain items simultaneously, the comparator outputs the combined sum of their power values up to a maximum signal strength of 7 when all three slots are completely filled.
Automation and item sorting are also fully supported through hoppers and droppers. Hoppers and droppers can fill shelves automatically, and hoppers placed underneath a shelf can extract items from it. Items are added and removed in a strict sequence from left to right, automatically stacking any stackable items into one slot until that designated slot reaches full capacity before moving on to the next.
Regarding audio design, shelves utilize the chiseled bookshelf sound type for their generic sound effects. In Java Edition, specific resource locations also exist for block.shelf.break, block.shelf.place, block.shelf.hit, block.shelf.fall, and block.shelf.step. These blocks maintain associated block entities that store additional data regarding their stored items and inventory states across both Java Edition and Bedrock Edition worlds.