Trapped Chest

From Minecraft Wiki
Jump to: navigation, search
Trapped Chest
Trapped Chest.gif
Trapped Double Chest.gif

Type

Block Entity

Physics

No

Transparency

Yes

Luminance

No

Blast resistance

12.5

Hardness

2.5

Tool

This block can be broken with any tool, but an axe is the quickest

Renewable

Yes

Stackable

Yes (64)

Flammable

No, but catches fire from lava

First appearances

See History

Drops

  • Trapped Chest
    (1) plus contents
Block Entity ID

Chest

Data value

dec: 146 hex: 92 bin: 10010010

Name

trapped_chest

A trapped chest is a block that stores items and which produces redstone power when opened. It can be visually distinguished from normal chests by a red coloration around the latch.

Obtaining[edit | edit source]

Trapped chests can be obtained by crafting, or by breaking previously-placed trapped chests.

Breaking[edit | edit source]

To remove a trapped chest, mine it. Trapped chests can be broken using anything, but an axe is the fastest.

Block
Trapped Chest
Hardness 2.5
Tool
Breaking time[note 1]
Hand 3.75
Wooden 1.9
Stone 0.95
Iron 0.65
Diamond 0.5
Golden 0.35
  1. Times are for unenchanted tools in seconds.

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

Crafting[edit | edit source]

Ingredients Crafting recipe
Tripwire Hook +
Chest












Natural generation[edit | edit source]

Trapped chests naturally generate in woodland mansions.

Usage[edit | edit source]

Trapped chests can be used as containers and as redstone components.

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

Two adjacent trapped chests will join to create a "large trapped chest". Trapped chests cannot be placed horizontally next to a large trapped chest, or where they would create a large trapped chest next to a single trapped chest (for example, a trapped chest cannot be placed horizontally between two other trapped chests), but trapped chests can be placed above or below a large trapped chest. A regular chest or large chest can be placed next to a large trapped chest without restriction, allowing close-packing of alternating single or large chests and trapped chests.

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

Container[edit | edit source]

The default GUI of a large trapped chest, showing the large trapped chest's contents above the player's own inventory and hotbar.

A single trapped chest has 27 slots of inventory space, and a large trapped chest has 54 slots of inventory space. In a large trapped 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 trapped chest GUI, use the Use Item control. To move items between the trapped chest inventory and the player inventory or hotbar while the trapped chest GUI is open, drag or shift-click the items. By holding ⇧ Shift and double-clicking while holding an item, all items of a type clicked on will be moved into or out of the chest. To exit the trapped chest GUI, use the Esc control.

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

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

Redstone component[edit | edit source]

Chests (left) and trapped chests (right) can be placed next to each other. Redstone dust will configure itself to point towards trapped chests, but not towards regular chests.
See also: Redstone circuit

Trapped chests can be used to detect when their inventory is accessed by players.

A trapped chest is inactive while not being accessed, but activates when accessed by a player (see above). Accessing either part of a large trapped chest activates both halves of the large trapped chest. Mobs cannot access/activate a trapped chest, and a trapped chest is not activated by items moving into or out of it by droppers or hoppers.

While active, a trapped chest:

  • powers any adjacent redstone dust, including beneath the trapped chest, to a power level equal to the number of players accessing the trapped chest (maximum 15)
  • powers any adjacent redstone repeaters facing away from the trapped chest to power level 15
  • strongly powers any full solid opaque block (stone, dirt, block of gold, etc.) beneath the trapped chest to a power level equal to the number of players accessing the trapped chest (maximum 15)
  • activates any adjacent mechanism components, including above or below, such as pistons, redstone lamps, etc.

An active trapped chest will not power any adjacent redstone comparators facing away from it. Redstone comparators can only measure the block state of the trapped chest, producing a power level from 0 to 15 proportional to how full the trapped chest is. Anything else powered by an active trapped chest (including a block beneath it) will power redstone comparators normally.

Fuel[edit | edit source]

Trapped chests can be used as a fuel in furnaces, smelting 1.5 items per chest.

Christmas chest[edit | edit source]

On December 24, 25, and 26, chests and large chests have their textures changed to Christmas chests which look like presents.

Data values[edit | edit source]

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

Block data[edit | edit source]

A trapped chest's block data stores its facing:

Bits Values
0x1
0x2
0x4

A three-bit field storing a value from 2 to 5:

  • 2: Trapped chest facing north
  • 3: Trapped chest facing south
  • 4: Trapped chest facing west
  • 5: Trapped chest facing east

Invalid values default to 2.

0x8 Unused.

Block entity[edit | edit source]

See also: Block entity format

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


  • Block entity data
    • Tags common to all block entities see Template:Nbt inherit/blockentity/template

    •  CustomName: Optional. The name of this container, which will display in its GUI where the default name ordinarily is.

    •  Lock: Optional. When not blank, prevents the container from being opened unless the opener is holding an item whose name matches this string.

    •  Items: List of items in the container.

    •  LootTable: Optional. Loot table to be used to fill the chest when it is next opened, or the items are otherwise interacted with.[note 1]

    •  LootTableSeed: Optional. Seed for generating the loot table. 0 or omitted will use a random seed.[note 1]
  1. a b Both loot table tags will be removed once the items have been generated.

Block state[edit | edit source]

See also: Block states
Name Value Description

 facing
north
south
east
west
The direction the chest's latch is on.
Opposite from the direction the player faces when placing a chest.

Video[edit | edit source]

History[edit | edit source]

Official release
1.5 13w01a Added trapped chests.
13w02a Trapped chest moved from Redstone to Decoration Blocks section in the creative mode inventory.
13w02b Trapped chests now strongly power a block beneath them.
1.8.9 Trapped chests now look like presents around Christmas time.
1.9 15w31a Now have their item model rotated, to have the front face in view of the player.
15w43a Loot tables are added; trapped chests now can use loot tables.
15w49a Trapped chests moved from Decoration Blocks to the Redstone section in the creative inventory, like it was in 13w01a.
16w05a The crafting recipe for trapped chests is now shapeless.
1.11 16w39a Trapped chests now generate in woodland mansions.
Pocket Edition Alpha
0.13.0 build 1 Added trapped chests.
0.14.0 build 1 Trapped chests now form double trapped chests.
0.15.0 build 1 Trapped chests can now be moved by pistons.
? Trapped chest custom name now shows in the GUI.
Console Edition
TU19 CU7 1.12 Patch 1 Added trapped chests.

Issues[edit | edit source]

Issues relating to “Trapped Chest” are maintained on the issue tracker. Report issues there.