Chest

A chest is a block that stores items.

Obtaining
Chests can be obtained by crafting, or by breaking previously-placed chests, generated chests, or minecarts with chests.

Breaking
A chest can be broken using anything, but an axe is the fastest.

If the chest contains items, the items will also be dropped when it is broken. If one half of a large chest is destroyed, the corresponding items from the destroyed chest will be dropped and the remaining chest will continue to function as a small chest.

Crafting
To make a large chest, place two chests next to each other on the floor.

An even larger chest can be made when standing next to the side of a large chest and running the command /setblock ~ ~ ~ chest, however it will be invisible and you can only only use the third chest's storage when opening the middle chest. The formatting for the third chest place will also be off slightly.

Natural generation
Chests are naturally generated in dungeons, strongholds, jungle temples, desert temples, nether fortresses, villages, and as of 1.9, end cities and end ships. Minecarts with chests, which when broken will drop a chest, a minecart, and any contents of the chest, are naturally generated in abandoned mine shafts.

Bonus chest


A bonus chest will generate in the player's spawn if the "Bonus Chest" option is enabled in the World Options menu. The bonus chest can't be enabled in hardcore mode.

The bonus chest acts as a starter kit. It generates once in newly created worlds in which it was enabled and is filled with basic items that may help the player survive early on, getting them started gathering resources, and making the objective of building a shelter a lot easier.

Up to four torches will spawn around the chest in adjacent horizontal and vertical squares.

Each seed's Bonus Chest will always contain the same items, except in the console edition, where the loot is generated separately.

The bonus chest in the console edition may contain any of the above items, except acacia wood. It also may contain the following items:

Usage
Chests can be used as containers and as crafting ingredients.

To place a chest, use the control on the face of a block adjacent to the space the chest should occupy.

Two adjacent chests will join to create a "large chest" (aka "double chest"). Chests cannot be placed in a way that causes a large chest to be next to another chest horizontally (for example, placing a chest next to a large chest and placing a chest in between two chests), but chests can be placed above or below a large chest. A trapped chest or large trapped chest can be placed next to a large chest without restriction, allowing close-packing of alternating single or large chests and trapped chests.

Chests cannot be moved by pistons, and water and lava will flow around chests without affecting them. Lava can create fire in air blocks next to chests as if the chests were flammable, but the chests will not burn up (and can't be burned by other methods either).

Container


A single chest has 27 slots of inventory space, and a large chest has 54 slots of inventory space. In a large chest, the top three rows in the interface correspond to the western or northern chest block and the bottom three to the southern or eastern chest block.

To open the chest GUI, use the control. To move items between the chest inventory and the player inventory or hotbar while the chest GUI is open, drag or shift-click the items. By holding and double-clicking while holding an item, all items of a type clicked on will be moved in or out of the chest. To exit the chest GUI, use the control.

A chest will not open if there is an opaque block or ocelot above it. Since chests are transparent, they can be stacked on top of one another while still allowing the chests to open.

By default, the GUI of a chest is labeled "Chest" and the GUI of a large chest is labeled "Large Chest". A chest's GUI label can be changed by naming the chest in an anvil before placing it, or by using the blockdata command (for example, to label a chest at (0,64,0) "Loot!", use ). If only half of a large chest is renamed, that name will be used to label the GUI of the entire large chest, but if the named half is destroyed the other half will revert to the default label. If both halves of a large chest have different names, the GUI will be labeled with the name of the northernmost or westernmost half of the large chest depending on its orientation (the half with the lowest coordinate in the appropriate axis).

A chest can be "locked" by setting the chest's  tag. If a chest's  tag is not blank, the chest cannot be opened except by players holding an item with the same name as the   tag's text. A chest's  tag can be set or unset with the blockdata command. For example, to lock a chest at (0,64,0) so that only players holding an item named "Player's Key" can open the chest, use.

Donkey or mule pack
A chest can be added to a donkey or a mule by pressing on a donkey or mule.

A chest attached to a donkey or mule has only 15 slots, and cannot be removed except by killing the carrier. The chest can be opened by holding and pressing, or by riding the carrier and pressing.

Christmas chest
On December 24, 25, and 26, chests and large chests have their textures changed to Christmas chests which look like presents. However, Trapped Chests will remain unchanged.

Data values
Every chest has an ID name of  and is further defined by its block data and block entity. A chest also has a block state which is expected to replace the functionality of block data in a future version.

Block data
A chest's block data stores its facing:

Block entity
Every chest has a Chest block entity associated with it that holds additional data about the chest.