Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Trapped Chest: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 1: Line 1:
{{MC/Distinguish|Locked chest}}
{{Distinguish|Locked chest}}
{{Infobox block
{{Infobox block
| group1 = Trapped Chest
| group1 = Trapped Chest
Line 21: Line 21:
=== Breaking ===
=== Breaking ===
Trapped chests can be broken with any [[Minecraft:tool]], but [[Minecraft:axe]]s are the fastest. Items contained in the chest are dropped when the chest is broken. If one half of a large trapped chest is destroyed, the corresponding items from the destroyed trapped chest are dropped and the remaining trapped chest continues to function as a small trapped chest.
Trapped chests can be broken with any [[Minecraft:tool]], but [[Minecraft:axe]]s are the fastest. Items contained in the chest are dropped when the chest is broken. If one half of a large trapped chest is destroyed, the corresponding items from the destroyed trapped chest are dropped and the remaining trapped chest continues to function as a small trapped chest.
{{MC/Breaking row|horizontal=1|Trapped Chest|Axe|foot=1}}
{{breaking row|horizontal=1|Trapped Chest|Axe|foot=1}}


=== Natural generation ===
=== Natural generation ===
Trapped chests naturally generate in "fake end portal rooms" in woodland mansions. They always contain two ender pearls and activate the two nearby [[Minecraft:TNT]] blocks when opened.
Trapped chests naturally generate in "fake end portal rooms" in [[Minecraft:woodland mansion]]s. They always contain two [[Minecraft:ender pearl]]s and activate the two nearby [[Minecraft:TNT]] blocks when opened.


=== Crafting ===
=== Crafting ===
Line 35: Line 35:


== Usage ==
== Usage ==
Trapped chests can be used as containers and as redstone components.
Trapped chests can be used as containers and as [[Minecraft:redstone component]]s.


To place a trapped chest, {{MC/Control|place}} the face of a block adjacent to the space the trapped chest should occupy.
To place a trapped chest, {{control|place}} the face of a block adjacent to the space the trapped chest should occupy.


Placing two adjacent trapped chests side-by-side typically joins them to create a large trapped chest. To avoid them joining and instead place two single trapped chests side by side, a player may {{MC/Control|sneak}} while placing the second trapped chest{{only|java}}, or place the second trapped chest facing a different direction from the first one. Alternately, normal [[Minecraft:chest]]s do not combine with trapped chests.
Placing two adjacent trapped chests side-by-side typically joins them to create a large trapped chest. To avoid them joining and instead place two single trapped chests side by side, a player may {{control|sneak}} while placing the second trapped chest{{only|java}}, or place the second trapped chest facing a different direction from the first one. Alternately, normal [[Minecraft:chest]]s do not combine with trapped chests.


Trapped chests can be moved by pistons.{{only|bedrock}} [[Minecraft:Water]] and [[Minecraft:lava]] flow around without affecting them. Lava can create fire in air blocks next to trapped chests as if they were flammable, but the chests do not burn (and cannot be burned by other methods either).
Trapped chests can be moved by pistons.{{only|bedrock}} [[Minecraft:Water]] and [[Minecraft:lava]] flow around without affecting them. Lava can create fire in air blocks next to trapped chests as if they were flammable, but the chests do not burn (and cannot be burned by other methods either).
Line 51: Line 51:
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.
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 {{MC/Control|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. To exit the trapped chest GUI, use the {{MC/Key|Esc}} control.
To open the trapped chest GUI, use the {{control|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. To exit the trapped chest GUI, use the {{key|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 [[Minecraft:anvil]] before placing it, or by using the {{MC/Cmd|data}} command{{only|java}} (for example, to label a trapped chest at (0,64,0) "Loot!", use <code>/data merge block 0 64 0 {CustomName:'"Loot!"'}</code>). If half of a large trapped chest is renamed, that name is used to label the GUI of the entire large trapped chest, but if the named half is destroyed, the other half reverts to the default label. If both halves of a large trapped chest have different names, the GUI label takes 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).
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 [[Minecraft:anvil]] before placing it, or by using the {{cmd|data}} command{{only|java}} (for example, to label a trapped chest at (0,64,0) "Loot!", use <code>/data merge block 0 64 0 {CustomName:'"Loot!"'}</code>). If half of a large trapped chest is renamed, that name is used to label the GUI of the entire large trapped chest, but if the named half is destroyed, the other half reverts to the default label. If both halves of a large trapped chest have different names, the GUI label takes 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 <code>lock</code> tag. If a trapped chest's <code>lock</code> tag is not blank, the trapped chest cannot be opened except by players holding an item with the same name as the <code>lock</code> tag's text. A trapped chest's <code>lock</code> tag can be set or unset with the [[Minecraft:Commands/data|data]] 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 <code>data merge block 0 64 0 {lock:{components:{"custom_name":"Alice's Key"}}}</code>.
A trapped chest can be "locked" by setting the trapped chest's <code>lock</code> tag. If a trapped chest's <code>lock</code> tag is not blank, the trapped chest cannot be opened except by players holding an item with the same name as the <code>lock</code> tag's text. A trapped chest's <code>lock</code> tag can be set or unset with the [[Minecraft:Commands/data|data]] 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 <code>data merge block 0 64 0 {lock:{components:{"custom_name":"Alice's Key"}}}</code>.
Line 59: Line 59:
=== Redstone component ===
=== Redstone component ===
[[File:Chest-Comparsion.png|thumb|Chests (''left'') and trapped chests (''right'') can be placed next to each other. [[Redstone dust]] configures itself to point toward trapped chests, but not toward regular chests.]]
[[File:Chest-Comparsion.png|thumb|Chests (''left'') and trapped chests (''right'') can be placed next to each other. [[Redstone dust]] configures itself to point toward trapped chests, but not toward regular chests.]]
{{MC/See also|Redstone circuit}}
{{see also|Redstone circuit}}


Trapped chests can be used to detect when they have been opened by players or copper golems.
Trapped chests can be used to detect when they have been opened by players or [[Minecraft:copper golem]]s.


A trapped chest is inactive while not being accessed, but activates when accessed by a player or copper golem. Accessing either part of a large trapped chest activates both halves of the large trapped chest. Other [[Minecraft:mob]]s cannot access/activate trapped chests, and trapped chest is not activated by items moving into or out of it by [[Minecraft:dropper]]s or [[Minecraft:hopper]]s.
A trapped chest is inactive while not being accessed, but activates when accessed by a player or copper golem. Accessing either part of a large trapped chest activates both halves of the large trapped chest. Other [[Minecraft:mob]]s cannot access/activate trapped chests, and trapped chest is not activated by items moving into or out of it by [[Minecraft:dropper]]s or [[Minecraft:hopper]]s.


While active, a trapped chest:
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 or copper golems accessing the trapped chest at once (maximum 15)
* powers any adjacent [[Minecraft:redstone dust]], including beneath the trapped chest, to a [[Minecraft:Redstone circuit#Power|power level]] equal to the number of players or copper golems accessing the trapped chest at once (maximum 15)
* powers any adjacent redstone repeaters facing away from the trapped chest to power level 15
* powers any adjacent [[Minecraft:redstone repeater]]s 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 or copper golems accessing the trapped chest (maximum 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 or copper golems accessing the trapped chest (maximum 15)
* activates any adjacent [[Minecraft:Redstone components#Mechanism components|mechanism components]], including above or below, such as [[Minecraft:piston]]s, redstone lamps, etc. Due to hoppers being locked by redstone activation, hoppers below a trapped chest do not take items from it while it is open.
* activates any adjacent [[Minecraft:Redstone components#Mechanism components|mechanism components]], including above or below, such as [[Minecraft:piston]]s, [[Minecraft:redstone lamp]]s, etc. Due to hoppers being locked by redstone activation, hoppers below a trapped chest do not take items from it while it is open.


An active trapped chest does ''not'' power any adjacent redstone comparators facing away from it. Redstone comparators can 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) can power redstone comparators normally.
An active trapped chest does ''not'' power any adjacent [[Minecraft:redstone comparator]]s facing away from it. Redstone comparators can [[Minecraft:Redstone comparator#Measure block state|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) can power redstone comparators normally.


=== Piglins ===
=== Piglins ===
Line 77: Line 77:


=== Fuel ===
=== Fuel ===
Trapped chests can be used as a fuel in [[Minecraft:furnace]]s, smelting 1.5 items per chest.
Trapped chests can be used as a [[Minecraft:fuel]] in [[Minecraft:furnace]]s, smelting 1.5 items per chest.


=== Note blocks ===
=== Note blocks ===
Trapped chests can be placed under note blocks to produce "bass" sound.
Trapped chests can be placed under [[Minecraft:note block]]s to produce "bass" sounds.


== Christmas chest ==
== Christmas chest ==
{{MC/Anchor|Xmas chest}}
{{anchor|Xmas chest}}
{{MC/Exclusive|Java|section=1}}
{{exclusive|Java|section=1}}
<!--is this entire section neccessary?-->
<!--is this entire section neccessary?-->
As with normal chests, on December 24, 25, and 26, trapped chests and large trapped chests have their textures changed to Christmas chests that look like presents. This makes normal and trapped chests impossible to identify unless a player places redstone dust or uses the debug screen.
As with normal chests, on December 24, 25, and 26, trapped chests and large trapped chests have their textures changed to Christmas chests that look like presents. This makes normal and trapped chests impossible to identify unless a player places [[Minecraft:redstone dust]] or uses the [[Minecraft:debug screen]].


<gallery mode="packed">
<gallery mode="packed">
Line 95: Line 95:
== Sounds ==
== Sounds ==
=== Generic ===
=== Generic ===
{{MC/Sound table/Block/Wood}}
{{Sound table/Block/Wood}}


=== Unique ===
=== Unique ===
{{MC/Edition|java}}
{{edition|java}}
{{SoundTable
{{SoundTable
| type = java
| type = java
Line 128: Line 128:
|subtitle=Chest locked<ref group=sound name=lock>{{Bug|MC-98316||Wrong subtitles caused by missing distinction}}</ref>
|subtitle=Chest locked<ref group=sound name=lock>{{Bug|MC-98316||Wrong subtitles caused by missing distinction}}</ref>
|source=block
|source=block
|description=When a player attempts to open a trapped chest locked using the {{MC/Nbt|compound|lock}} tag
|description=When a player attempts to open a trapped chest locked using the {{nbt|compound|lock}} tag
|id=block.chest.locked|idnote=<ref group=sound name=lock/>
|id=block.chest.locked|idnote=<ref group=sound name=lock/>
|translationkey=subtitles.block.chest.locked|translationkeynote=<ref group=sound name=lock/>
|translationkey=subtitles.block.chest.locked|translationkeynote=<ref group=sound name=lock/>
Line 137: Line 137:
}}
}}


{{MC/Edition|bedrock}}:
{{edition|bedrock}}:
{{SoundTable
{{SoundTable
| type = bedrock
| type = bedrock
Line 159: Line 159:
== Data values ==
== Data values ==
=== ID ===
=== ID ===
{{MC/Edition|java}}:
{{edition|java}}:
{{ID table
{{ID table
|edition=java
|edition=java
Line 177: Line 177:
|foot=1}}
|foot=1}}


{{MC/Edition|bedrock}}:
{{edition|bedrock}}:
{{ID table
{{ID table
|edition=bedrock
|edition=bedrock
Line 199: Line 199:


=== Block states ===
=== Block states ===
{{MC/See also|Block states}}
{{see also|Block states}}


{{#lst:Chest|block states}}
{{#lst:Chest|block states}}
Line 206: Line 206:
Every trapped chest has a [[Minecraft:block entity]] associated with it that holds additional data about the trapped chest.
Every trapped chest has a [[Minecraft:block entity]] associated with it that holds additional data about the trapped chest.


{{MC/El|java}}:
{{el|java}}:
{{MC/See also|Block entity format}}
{{see also|Block entity format}}
{{#lst:Chest|block data}}
{{#lst:Chest|block data}}


{{MC/El|bedrock}}:
{{el|bedrock}}:
: See [[Minecraft:Bedrock Edition level format/Block entity format]].
: See [[Minecraft:Bedrock Edition level format/Block entity format]].


== Videos ==
== Videos ==
<div style="text-align:center">{{MC/Yt|EU7VmXeutc0}}</div>
<div style="text-align:center">{{yt|EU7VmXeutc0}}</div>


== History ==
== History ==
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{MC/HistoryLine||1.5|dev=13w01a|[[File:Trapped Chest.gif|30px]] [[File:Trapped Large Chest.gif|32px]]<br>[[File:Trapped Chest (N) JE1 BE1.png|32px]] [[File:Trapped Chest (E) JE1 BE1.png|32px]] [[File:Trapped Chest (S) JE1 BE1.png|32px]] [[File:Trapped Chest (W) JE1 BE1.png|32px]] Added trapped chests.}}
|{{HistoryLine||1.5|dev=13w01a|[[File:Trapped Chest.gif|30px]] [[File:Trapped Large Chest.gif|32px]]<br>[[File:Trapped Chest (N) JE1 BE1.png|32px]] [[File:Trapped Chest (E) JE1 BE1.png|32px]] [[File:Trapped Chest (S) JE1 BE1.png|32px]] [[File:Trapped Chest (W) JE1 BE1.png|32px]] Added trapped chests.}}
|{{MC/HistoryLine|||dev=13w02a|Trapped chests have been moved from the Redstone section to the Decoration Blocks section in the [[Minecraft:Creative inventory]].}}
|{{HistoryLine|||dev=13w02a|Trapped chests have been moved from the Redstone section to the Decoration Blocks section in the [[Minecraft:Creative inventory]].}}
|{{MC/HistoryLine|||dev=13w02b|Trapped chests now strongly power a block beneath them.}}
|{{HistoryLine|||dev=13w02b|Trapped chests now strongly power a block beneath them.}}
|{{MC/HistoryLine||1.8|dev=14w29a|Trapped chests now show the cracking animation.}}
|{{HistoryLine||1.8|dev=14w29a|Trapped chests now show the cracking animation.}}
|{{MC/HistoryLine||1.8.9|[[File:Xmas Chest.png|32px]] [[File:Xmas Large Chest.png|32px]] Trapped chests now look like presents between December 24 and 26 to suit Christmas.}}
|{{HistoryLine||1.8.9|[[File:Xmas Chest.png|32px]] [[File:Xmas Large Chest.png|32px]] Trapped chests now look like [[Minecraft:wikipedia:Gift|presents]] between December 24 and 26 to suit [[Minecraft:wikipedia:Christmas|Christmas]].}}
|{{MC/HistoryLine||1.9|dev=15w31a|Trapped chests now have their item model rotated, to have the front face in view of the player.}}
|{{HistoryLine||1.9|dev=15w31a|Trapped chests now have their item model rotated, to have the front face in view of the player.}}
|{{MC/HistoryLine|||dev=15w43a|Loot tables have been added; trapped chests now can use loot tables.}}
|{{HistoryLine|||dev=15w43a|[[Minecraft:Loot table]]s have been added; trapped chests now can use loot tables.}}
|{{MC/HistoryLine|||dev=15w49a|Trapped chests have been moved from the Decoration Blocks section to the Redstone section in the [[Minecraft:Creative inventory]], like they were in 13w01a.}}
|{{HistoryLine|||dev=15w49a|Trapped chests have been moved from the Decoration Blocks section to the Redstone section in the [[Minecraft:Creative inventory]], like they were in [[Minecraft:13w01a]].}}
|{{HistoryLine|||dev=16w05a|The [[Minecraft:crafting]] recipe for trapped chests is now shapeless.
|{{HistoryLine|||dev=16w05a|The [[Minecraft:crafting]] recipe for trapped chests is now shapeless.
{{{!}} class{{=}}"collapsible collapsed" data-description{{=}}"Old recipe"
{{{!}} class{{=}}"collapsible collapsed" data-description{{=}}"Old recipe"
Line 239: Line 239:
}}
}}
{{!}}} }}
{{!}}} }}
|{{MC/HistoryLine||1.11|dev=16w39a|Trapped chests now generate in woodland mansions.}}
|{{HistoryLine||1.11|dev=16w39a|Trapped chests now generate in [[Minecraft:woodland mansion]]s.}}
|{{MC/HistoryLine||1.13|dev=17w47a|Trapped chests can now be put directly next to their large variant instead of requiring one block between them.
|{{HistoryLine||1.13|dev=17w47a|Trapped chests can now be put directly next to their large variant instead of requiring one block between them.
|Crouching while placing a trapped chest now makes it try to connect only to the clicked block.}}
|[[Minecraft:Crouching]] while placing a trapped chest now makes it try to connect only to the clicked block.}}
|{{MC/HistoryLine|||dev=18w10c|[[Minecraft:Water]] can now be placed on the same block as trapped chests.}}
|{{HistoryLine|||dev=18w10c|[[Minecraft:Water]] can now be placed on the same block as trapped chests.}}
|{{MC/HistoryLine||1.15|dev=19w39a|The trapped chest texture layout has been changed.}}
|{{HistoryLine||1.15|dev=19w39a|The trapped chest texture layout has been changed.}}
}}
}}


=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|pocket alpha}}
|{{HistoryLine|pocket alpha}}
|{{MC/HistoryLine||v0.13.0|dev=build 1|[[File:Trapped Chest.gif|32px]] Added trapped chests.}}
|{{HistoryLine||v0.13.0|dev=build 1|[[File:Trapped Chest.gif|32px]] Added trapped chests.}}
|{{MC/HistoryLine||v0.14.0|dev=build 1|[[File:Trapped Large Chest.gif|32px]] Trapped chests can now form large trapped chests.}}
|{{HistoryLine||v0.14.0|dev=build 1|[[File:Trapped Large Chest.gif|32px]] Trapped chests can now form large trapped chests.}}
|{{MC/HistoryLine||v0.15.0|dev=build 1|Trapped chests can now be moved by [[Minecraft:piston]]s.}}
|{{HistoryLine||v0.15.0|dev=build 1|Trapped chests can now be moved by [[Minecraft:piston]]s.}}
|{{MC/HistoryLine|pocket}}
|{{HistoryLine|pocket}}
|{{MC/HistoryLine||1.1.0|dev=alpha 1.1.0.0|Trapped chests now naturally generate in woodland mansions.}}
|{{HistoryLine||1.1.0|dev=alpha 1.1.0.0|Trapped chests now naturally generate in [[Minecraft:woodland mansion]]s.}}
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine|bedrock}}
|{{MC/HistoryLine||1.4.0|[[Minecraft:Water]] can now be placed on the same [[Minecraft:block]] as trapped chests.}}
|{{HistoryLine||1.4.0|[[Minecraft:Water]] can now be placed on the same [[Minecraft:block]] as trapped chests.}}
}}
}}


=== Legacy Console Edition ===
=== Legacy Console Edition ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|console}}
|{{HistoryLine|console}}
|{{MC/HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|[[File:Trapped Chest.gif|30px]] [[File:Trapped Large Chest.gif|32px]] Added trapped chests.}}
|{{HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|[[File:Trapped Chest.gif|30px]] [[File:Trapped Large Chest.gif|32px]] Added trapped chests.}}
|{{MC/HistoryLine||xbox=TU32|xbone=CU20|ps3=1.23|psvita=1.23|ps4=1.23|wiiu=Patch 3|Trapped chests now display a cracking animation.}}
|{{HistoryLine||xbox=TU32|xbone=CU20|ps3=1.23|psvita=1.23|ps4=1.23|wiiu=Patch 3|Trapped chests now display a cracking animation.}}
|{{MC/HistoryLine||xbox=TU54|xbone=CU44|ps3=1.52|psvita=1.52|ps4=1.52|wiiu=Patch 24|switch=1.0.4|Trapped chests now generate in woodland mansions.}}
|{{HistoryLine||xbox=TU54|xbone=CU44|ps3=1.52|psvita=1.52|ps4=1.52|wiiu=Patch 24|switch=1.0.4|Trapped chests now generate in [[Minecraft:woodland mansion]]s.}}
|{{MC/HistoryLine||xbox=TU62|xbone=CU52|ps3=1.66|psvita=1.66|ps4=1.66|wiiu=Patch 31|switch=1.0.12|[[Minecraft:Piston]]s can now move small trapped chests but only if the new position would have been valid for players to place a new chest. This limitation can however be bypassed by moving the chests simultaniously.}}
|{{HistoryLine||xbox=TU62|xbone=CU52|ps3=1.66|psvita=1.66|ps4=1.66|wiiu=Patch 31|switch=1.0.12|[[Minecraft:Piston]]s can now move small trapped chests but only if the new position would have been valid for players to place a new chest. This limitation can however be bypassed by moving the chests simultaniously.}}
|{{MC/HistoryLine||xbox=TU63|xbone=CU53|ps3=1.67|psvita=1.67|ps4=1.67|wiiu=Patch 32|switch=1.0.13|Trapped chests can no longer be opened when an entity is standing on top of it.}}
|{{HistoryLine||xbox=TU63|xbone=CU53|ps3=1.67|psvita=1.67|ps4=1.67|wiiu=Patch 32|switch=1.0.13|Trapped chests can no longer be opened when an entity is standing on top of it.}}
}}
}}


=== ''New Nintendo 3DS Edition'' ===
=== ''New Nintendo 3DS Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|new 3ds}}
|{{HistoryLine|new 3ds}}
|{{MC/HistoryLine||0.1.0|[[File:Trapped Chest.gif|30px]] [[File:Trapped Large Chest.gif|32px]] Added trapped chests.}}
|{{HistoryLine||0.1.0|[[File:Trapped Chest.gif|30px]] [[File:Trapped Large Chest.gif|32px]] Added trapped chests.}}
}}
}}


Line 277: Line 277:
==== ''Java Edition'' ====
==== ''Java Edition'' ====
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{MC/HistoryLine||1.13|dev=17w47a|Prior to ''The Flattening'', this block's numeral ID was 146.
|{{HistoryLine||1.13|dev=17w47a|Prior to [[Minecraft:1.13/Flattening|''The Flattening'']], this block's numeral ID was 146.
|Trapped chests now have the block entity ID <code>trapped_chest</code>.}}
|Trapped chests now have the block entity ID <code>trapped_chest</code>.}}
|{{MC/HistoryLine|||dev=17w47b|Trapped chests now have the block entity ID <code>chest</code> again.}}
|{{HistoryLine|||dev=17w47b|Trapped chests now have the block entity ID <code>chest</code> again.}}
|{{MC/HistoryLine||?|Trapped chests now have the block entity ID <code>trapped_chest</code> again.}}
|{{HistoryLine||?|Trapped chests now have the block entity ID <code>trapped_chest</code> again.}}
}}
}}


==== ''Bedrock Edition'' ====
==== ''Bedrock Edition'' ====
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine|bedrock}}
|{{MC/HistoryLine||1.20.40|dev=Preview 1.20.40.20|Trapped chests now use the <code>minecraft:cardinal_direction</code> block state instead of <code>facing_direction</code>.}}
|{{HistoryLine||1.20.40|dev=Preview 1.20.40.20|Trapped chests now use the <code>minecraft:cardinal_direction</code> [[Minecraft:block state]] instead of <code>facing_direction</code>.}}
}}
}}


== Issues ==
== Issues ==
{{MC/Issue list}}
{{Issue list}}


== Trivia ==
== Trivia ==
Line 297: Line 297:


== References ==
== References ==
{{MC/Reflist}}
{{Reflist}}


== External links ==
== External links ==
Line 303: Line 303:


== Navigation ==
== Navigation ==
{{MC/Navbox redstone|components}}
{{Navbox redstone|components}}
{{MC/Navbox blocks|Utility}}
{{Navbox blocks|Utility}}


[[Category:Block entities]]
[[Category:Block entities]]
Line 315: Line 315:
[[Category:Readable by comparators]]
[[Category:Readable by comparators]]


cs:Nástražná truhla
[[Minecraft:cs:Nástražná truhla]]
de:Redstone-Truhe
[[Minecraft:de:Redstone-Truhe]]
es:Cofre trampa
[[Minecraft:es:Cofre trampa]]
fr:Coffre piégé
[[Minecraft:fr:Coffre piégé]]
it:Baule trappola
[[Minecraft:it:Baule trappola]]
ja:トラップチェスト
[[Minecraft:ja:トラップチェスト]]
ko:덫 상자
[[Minecraft:ko:덫 상자]]
nl:Kist met valstrik
[[Minecraft:nl:Kist met valstrik]]
pl:Skrzynia-pułapka
[[Minecraft:pl:Skrzynia-pułapka]]
pt:Baú com Armadilha
[[Minecraft:pt:Baú com Armadilha]]
ru:Сундук-ловушка
[[Minecraft:ru:Сундук-ловушка]]
uk:Скриня-пастка
[[Minecraft:uk:Скриня-пастка]]
zh:陷阱箱
[[Minecraft:zh:陷阱箱]]

Latest revision as of 11:14, 13 April 2026

Template:Distinguish Template:Infobox block A trapped chest is a type of Minecraft:chest that functions almost identically, but has a red-tinted latch and produces Minecraft:redstone power while open.

Like normal chests, two trapped chests can merge into a large trapped chest if placed next to each other.

Obtaining

Breaking

Trapped chests can be broken with any Minecraft:tool, but Minecraft:axes are the fastest. Items contained in the chest are dropped when the chest is broken. If one half of a large trapped chest is destroyed, the corresponding items from the destroyed trapped chest are dropped and the remaining trapped chest continues to function as a small trapped chest. Template:Breaking row

Natural generation

Trapped chests naturally generate in "fake end portal rooms" in Minecraft:woodland mansions. They always contain two Minecraft:ender pearls and activate the two nearby Minecraft:TNT blocks when opened.

Crafting

Template:Crafting

Usage

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

To place a trapped chest, Template:Control the face of a block adjacent to the space the trapped chest should occupy.

Placing two adjacent trapped chests side-by-side typically joins them to create a large trapped chest. To avoid them joining and instead place two single trapped chests side by side, a player may Template:Control while placing the second trapped chestTemplate:Only, or place the second trapped chest facing a different direction from the first one. Alternately, normal Minecraft:chests do not combine with trapped chests.

Trapped chests can be moved by pistons.Template:Only Minecraft:Water and Minecraft:lava flow around without affecting them. Lava can create fire in air blocks next to trapped chests as if they were flammable, but the chests do not burn (and cannot be burned by other methods either).

Trapped chests can also activate buried Minecraft:TNT, destroying themselves, their contents and any Minecraft:mobs or players near them. They need to be opened twice for the TNT to be activated.

Container

File:Chest GUI.png
The GUI of a trapped chest.
File:Large Chest GUI.png
The GUI of a large trapped chest.

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 Template:Control 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. To exit the trapped chest GUI, use the Template:Key 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 Minecraft:anvil before placing it, or by using the Template:Cmd commandTemplate:Only (for example, to label a trapped chest at (0,64,0) "Loot!", use /data merge block 0 64 0 {CustomName:'"Loot!"'}). If half of a large trapped chest is renamed, that name is used to label the GUI of the entire large trapped chest, but if the named half is destroyed, the other half reverts to the default label. If both halves of a large trapped chest have different names, the GUI label takes 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 data 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 data merge block 0 64 0 {lock:{components:{"custom_name":"Alice's Key"}}}.

Redstone component

File:Chest-Comparsion.png
Chests (left) and trapped chests (right) can be placed next to each other. Redstone dust configures itself to point toward trapped chests, but not toward regular chests.

Template:See also

Trapped chests can be used to detect when they have been opened by players or Minecraft:copper golems.

A trapped chest is inactive while not being accessed, but activates when accessed by a player or copper golem. Accessing either part of a large trapped chest activates both halves of the large trapped chest. Other Minecraft:mobs cannot access/activate trapped chests, and trapped chest is not activated by items moving into or out of it by Minecraft:droppers or Minecraft:hoppers.

While active, a trapped chest:

  • powers any adjacent Minecraft:redstone dust, including beneath the trapped chest, to a power level equal to the number of players or copper golems accessing the trapped chest at once (maximum 15)
  • powers any adjacent Minecraft: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 or copper golems accessing the trapped chest (maximum 15)
  • activates any adjacent mechanism components, including above or below, such as Minecraft:pistons, Minecraft:redstone lamps, etc. Due to hoppers being locked by redstone activation, hoppers below a trapped chest do not take items from it while it is open.

An active trapped chest does not power any adjacent Minecraft:redstone comparators facing away from it. Redstone comparators can 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) can power redstone comparators normally.

Piglins

Minecraft:Piglins become hostile toward players who open, break or interact with trapped chests.

Fuel

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

Note blocks

Trapped chests can be placed under Minecraft:note blocks to produce "bass" sounds.

Christmas chest

Template:Anchor Template:Exclusive As with normal chests, on December 24, 25, and 26, trapped chests and large trapped chests have their textures changed to Christmas chests that look like presents. This makes normal and trapped chests impossible to identify unless a player places Minecraft:redstone dust or uses the Minecraft:debug screen.

Sounds

Generic

Template:Sound table/Block/Wood

Unique

Template:Edition Template:SoundTable

Template:Edition: Template:SoundTable

Data values

ID

Template:Edition: Template:ID table Template:ID table

Template:Edition: Template:ID table Template:ID table

Block states

Template:See also

{{#lst:Chest|block states}}

Block data

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

Template:El: Template:See also {{#lst:Chest|block data}}

Template:El:

See Minecraft:Bedrock Edition level format/Block entity format.

Videos

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

Legacy Console Edition

Template:HistoryTable

New Nintendo 3DS Edition

Template:HistoryTable

Data history

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

Issues

Template:Issue list

Trivia

References

Template:Reflist

External links

Navigation

Template:Navbox redstone Template:Navbox blocks

Minecraft:cs:Nástražná truhla Minecraft:de:Redstone-Truhe Minecraft:es:Cofre trampa Minecraft:fr:Coffre piégé Minecraft:it:Baule trappola Minecraft:ja:トラップチェスト Minecraft:ko:덫 상자 Minecraft:nl:Kist met valstrik Minecraft:pl:Skrzynia-pułapka Minecraft:pt:Baú com Armadilha Minecraft:ru:Сундук-ловушка Minecraft:uk:Скриня-пастка Minecraft:zh:陷阱箱