{{redirect|Dungeons|the action-adventure RPG|Minecraft Dungeons}}
{{Infobox structure
| image = Monster Room (Dungeon).png
| biome = Any biomes in the Overworld
| blocks = * {{BlockSprite|cobblestone}} [[Cobblestone]]
* {{BlockSprite|mossy cobblestone}} [[Mossy cobblestone]]
* {{BlockSprite|monster spawner}} [[Monster spawner]]
* {{BlockSprite|chest}} Loot [[chest]]
|canspawn=No
}}

A '''monster room'''<ref group="fn"><code>monster_room</code> is the in-game structure ID {{in|java}}.</ref> is a [[feature]] found underground in the [[Overworld]]. It consists of a room with [[cobblestone]] walls and a floor made of cobblestone mixed with [[mossy cobblestone]]. A [[monster spawner]] that produces either [[zombie]]s, [[skeleton]]s, or [[spider]]s is found in the middle.

== Generation ==
Monster rooms generate uncommonly in the [[Overworld]] in any [[biome]] and always nearby [[carver cave]]s, [[canyon]]s, [[mineshaft]]s, and [[stronghold]]s. Each [[chunk]] has fourteen attempts to generate monster rooms underground within y-coordinates 0 to 320 or -58 to -1, each [[altitude]] range with different uniformity. For the higher altitude Y levels 0 to 320, up to 10 monster rooms can generate, while up to 4 monster rooms can generate in lower altitude Y levels -58 to -1. It is possible, though unlikely, for multiple attempts to succeed. {{IN|bedrock}}, monster rooms can generate as underground structures above sea level.

Monster rooms are a [[feature]] instead of a [[structure]], so they generate regardless of whether the "Generate structures" world creation option has been toggled off for said world.<ref>{{bug|MC-77787||Dungeons still generate when generate structures option is turned off|WF}}</ref> They also cannot be searched by the {{cmd|locate}} command.<ref>{{bug|MC-107829|||WAI}}</ref>

For each attempt, a location (the position for monster spawner) and size (an open area with a width and length of 7 or 9 and a height of 6) is chosen. The attempt succeeds if the following conditions are met:
* Blocks in the floor area (including under the walls) of the potential monster room must be [[solid]].
* Blocks in the ceiling area (including over the walls) of the potential monster room must be solid. The ceiling blocks may be gravity-affected such as [[gravel]] or [[sand]], which fall if disturbed by the player.
* The walls of the potential monster room must have 1–5 openings (2-high air blocks) at floor level. Monster rooms are always connected to a [[carver cave]] or other hollow structure, although it is possible for the monster room itself to overwrite most of a tiny cave.

If the location passes, [[air]] and [[cobblestone]] are placed, then 3 attempts are made to generate each of two [[chest]]s. To generate a chest, the chosen block must be empty and must have a solid block on exactly one of its four sides. The [[monster spawner]] is placed at the center of the monster room.

The monster spawner has a 50% chance of producing [[zombie]]s, a 25% chance of producing [[skeleton]]s, and a 25% chance of producing [[spider]]s. A zombie monster spawner {{in|bedrock}} also has the same chance (5%) of producing [[zombie villager]]s as in natural generation.

Cobblestone has a 75% chance to be [[mossy cobblestone|mossy]] when it is on the floor of the monster room.

The [[command]] <code>/place feature minecraft:monster_room ~ ~ ~</code> can be used to generate a monster room only when the player is under the specific location where the monster room could be found naturally.

{{Calculator|chunkbase|pois=D|zoom=0.75}}

== Construction ==
{{main|Monster Room/Structure}}

Monster rooms are small rooms made of [[cobblestone]] and [[mossy cobblestone]] that contain a [[monster spawner]] and up to 2 [[chest]]s. Finding a monster room without a chest is unlikely but possible. Additionally, there is a rare chance of a monster room being found without a monster spawner. Occasionally, a monster room generates with its chests in such a way as to create a double chest. Monster rooms generate with either a [[zombie]] (50% chance), [[skeleton]] (25% chance), or [[spider]] (25% chance) monster spawner. The monster spawner is always in the center of the monster room, with chests located around the walls of the room (large chests can connect with the short side against the wall). Each block of the floor has a 25% chance of being cobblestone and a 75% chance of being mossy cobblestone.

Because the horizontal range for spawning mobs is 4 blocks from the monster spawner, it is possible for mobs to be spawned outside the walls of a 5×5 monster room that is surrounded by air outside the walls.

== Loot ==
[[File:Example monster room loot.png|thumb|An example of monster room chest loot in ''Java Edition''.]]
{{see also|Chest loot}}
{{LootChest|monster room}}

== Data values ==
=== ID ===
{{el|je}}:
{{ID table
|firstcolumnname=Feature type
|displayname=[No displayed name]
|spritename=monster room
|spritetype=env
|nameid=monster_room
|foot=1}}

{{ID table
|firstcolumnname=Configured feature
|displayname=[No displayed name]
|spritename=monster room
|spritetype=env
|nameid=monster_room
|foot=1}}

{{el|be}}:
{{ID table
|firstcolumnname=Feature
|displayname=[No displayed name]
|spritename=monster room
|spritetype=env
|nameid=[No ID]
|foot=1}}

=== Config ===

{{main|Configured feature}}
{{el|java}}:
{{/Config}}

{{Collapse|title=An example|outerstyle=margin: 0.5rem 0|head=1}}
<syntaxhighlight lang="json">
{
  "type": "minecraft:monster_room",
  "config": {}
}
</syntaxhighlight>
{{Collapse|tail=1}}

== History ==
{{HistoryTable
|{{HistoryLine|java infdev}}
|{{HistoryLine||20100625-1917|Added dungeons. The chests may contain gunpowder, strings, wheat, bread, iron ingots, buckets, saddles and rarely golden apples.}}
|{{HistoryLine|java alpha}}
|{{HistoryLine||v1.0.4|Added [[redstone dust]] to dungeon [[chest]]s, sometime between its introduction in [[Alpha v1.0.1]] and 1.0.4.{{check version|weird phrasing}}}}
|{{HistoryLine||v1.0.14|Added the newly introduced ''13'' and ''cat'' [[music disc]]s to dungeon chests.}}
|{{HistoryLine|java beta}}
|{{HistoryLine||1.4|Added [[cocoa beans]] to dungeon [[chest]]s.}}
|{{HistoryLine|java}}
|{{HistoryLine||1.4.6|dev=12w49a|Added [[enchanted book]]s to dungeon [[chest]]s.}}
|{{HistoryLine||1.6.1|dev=13w16b|Added [[name tag]]s to dungeon chests.}}
|{{HistoryLine|||dev=13w18a|Added [[horse armor]] to dungeon chests and removed cocoa beans. Probabilities have now also been adjusted.}}
|{{HistoryLine||1.7.2|dev=13w36a|Changes in [[carver cave]] generation now make dungeon considerably rarer.<ref>http://www.minecraftforum.net/topic/1981051-it-seems-that-the-underground-is-no-longer-swiss-cheese-anymore/page__view__findpost__p__25366047</ref>}}
|{{HistoryLine||1.8|dev=14w30a|The chances of [[music disc]]s in dungeon [[chest]]s have been reduced.}}
|{{HistoryLine||1.9|dev=15w44a|Added [[bone]]s, [[coal]], [[rotten flesh]], [[enchanted golden apple]]s, [[melon slice]]s, [[pumpkin]]s and [[beetroot seeds]] to dungeon [[chest]]s.
|The average yield of [[music disc]]s in dungeon chests has been increased.
|The average yield of [[enchanted book]]s, [[gunpowder]] and [[string]] in dungeon chests have been doubled.
|The average yield of normal [[golden apple]]s in dungeon [[chest]]s has been substantially increased.
|The average yield of iron [[horse armor]] in dungeon chests has been decreased.
|The average yields of [[name tag]]s, [[saddle]]s, [[wheat]] and [[bread]] in dungeon chests have been nearly halved.
|The average yields of [[iron ingot]]s and [[bucket]]s in dungeon [[chest]]s have been substantially decreased.}}
|{{HistoryLine||1.14|dev=18w43a|Renamed "Dungeon" to "Monster Room".
|[[Create New World]] screen still mentions it as "dungeon".}}
|{{HistoryLine||1.16|dev=?|As a result of a world generation bug fix, monster room positions have been shifted.}}
|{{HistoryLine||1.17|dev=?|Monster room generation has changed - it appears they are again capable of generating in open air areas such as cliffsides like they were prior to 1.7.2.}}
|{{HistoryLine||1.18|dev=21w40a|Monster rooms now generate more frequently, especially below Y{{=}}0.}}
|{{HistoryLine|||dev=21w42a|The "otherside" [[music disc]] can now be found in monster room chests.}}
|{{HistoryLine||1.18.2|dev=22w03a|Monster rooms can now be placed using {{cmd|placefeature}}.}}
|{{HistoryLine||1.19|dev=22w18a|Due to the removal of [[placefeature]] command, monster rooms are now placed using {{cmd|place}}.}}
|{{HistoryLine||1.19.4|dev=23w05a|Removed mentioning of monster rooms from the [[Create New World]] screen. Before this snapshot, a contradiction existed in ''Java Edition'' that even though the "Generate Structures" world creation option listed "dungeons" as an example structures that were supposed to generate only when the option was turned "ON", monster rooms generated even if the option was set to "OFF".}}

|{{HistoryLine|pocket alpha}}
|{{HistoryLine||v0.9.0|dev=build 1|Added dungeons.}}
|{{HistoryLine||v0.15.0|dev=build 1|Added [[name tag]]s, [[enchanted book]]s and [[horse armor]] to dungeon [[chest]]s.}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.2.0|dev=beta 1.2.0.2|Added [[music disc]]s to dungeon [[chest]]s.}}
|{{HistoryLine||1.17.0|dev=?|The probability of dungeons had been changed to less common to match ''Java Edition''.}}
|{{HistoryLine||1.18.0|dev=beta 1.18.0.21|Dungeons now generate more frequently, especially below Y{{=}}0.}}

|{{HistoryLine|console}}
|{{HistoryLine||xbox=TU1|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Added dungeons.}}
|{{HistoryLine|new 3ds}}
|{{HistoryLine||0.1.0|Added dungeons.}}
}}

== Issues ==
{{issue list|Monster Room|Dungeon}}

== Gallery ==
=== Screenshots ===
<gallery>
File:Gravel fallen into monster room.png|A [[gravel]] [[Ore (feature)|ore feature]] fallen into a monster room.
File:Monster room generated in midair.png|A rare instance of a monster room generating in midair.
File:Spider monster room.png|A [[spider]] monster room.
File:Carrot in a monster room.jpg|A [[zombie]] monster room.
File:Monster room chest contents 2.png|Loot reveal.
File:Monster room in a cave.png|A monster room next to a cave.
File:Skeleton spawner in badlands mineshaft.png|Skeleton monster spawner in badlands mineshaft.
File:Unarmed Skeletons.png|A monster room full of skeletons without bows.
File:Ulraf spawner example.jpg|A monster room with a torch.
File:Ulraf lit spawner example.jpg|A monster room with zombies.
File:Caved-in monster room.png|A caved-in surface monster room.
File:Monster room in a cliff.png|A surface monster room.
File:Monster room on the surface.png|Monster rooms can rarely be found open to the surface.
File:Monster room under ice.png|A monster room found underneath [[ice]].
File:Underwater monster room.png|A monster room found underneath [[water]].
File:Two monster rooms on the surface.png|Two surface monster rooms right next to each other.
File:PCG excavated monster room.png|A surface monster room in the [[PC Gamer Demo]].
File:Partially caved-in monster room.png|Monster rooms generated underneath sand tend to cause cave-ins.
File:Zombie monster room at ground level.png|A zombie monster room at ground level.
File:Monster room under beach overhang.png|A monster room on the surface.
File:Seven natural spawners in close proximity.png|Five monster rooms and 2 [[cave spider]] spawners close together in a [[mineshaft]], cleared to show all 7 spawners.
File:Two Spawners.png|A double monster room, the wall of the first acting as the entrance of the second.
File:Monster room with three chests.png|A double monster room with three [[chest]]s.
File:Triple monster room.png|A triple monster room.
File:Vertically stacked monster rooms.png|Extremely rare double-decker monster room.
File:Small double monster room.png|A monster room in a monster room.
File:Three monster rooms.png|Three monster rooms in close proximity
File:Monster room and mineshaft spawners.png|A monster room intersecting with a mineshaft.
File:Monster room outside of end portal room.png|A monster room found by an [[end portal]] room in a [[stronghold]].
File:Monster room in desert pyramid treasure room.png|Monster room generated aside the [[chest]] chamber of a [[desert pyramid]]. One chest was overwritten by the monster room wall.
File:Monster room in desert pyramid main room.png|A monster room in the upper room of a desert pyramid.
File:Lava flowing into monster room.png|A monster room with [[lava]] spilling into it from a [[spring]].
File:Monster room in the middle of a cave.png|A monster room distorted by a [[carver cave]].
File:Monster room flooded by river.png|A monster room that has become flooded because of falling gravel on the bottom of a [[river]].
File:Monster room in igloo basement.png|A monster room partially replacing the basement section of an [[igloo]].
File:Monster room at bedrock level.png|A monster room intersecting with a [[mineshaft]] at [[bedrock]] level.
File:Monster room at end of mineshaft corridor.png|A monster room connected to a dead end of a mineshaft.
File:Water flowing into monster room.png|A monster room with a waterfall flowing into it.
File:Empty quarter monster room in desert pyramid.png|A monster room generating without the spawner and the chests in a [[desert pyramid]].
File:Monster room with no chests.png|A monster room with no chests.
File:Monster room with two touching chests.png|A double chest monster room.
File:Monster room plus mineshaft.png|A monster room intersecting a mineshaft.
File:Monster room in stronghold.png|A zombie monster room that generated in a stronghold.
File:3inone.png|A monster room, [[mineshaft]] and [[stronghold]] are in one area.
File:Monster room with broken floor.png|Floating monster room without a floor.
File:Monster room intersecting a geode.png|Monster room with an [[amethyst geode]] underneath it, causing the chest to generate on the top of [[smooth basalt]].
File:Minecart with chest in a monster room.png|A monster room that spawned intersecting a mineshaft, where one of the chests has been replaced with a [[minecart with chest]].
File:Mineshaft intersecting monster room.png|A monster room next to a mineshaft.
File:Monster room at mineshaft corner.png|Another monster room next to a mineshaft.
File:Monster room connecting to mineshaft corridor.png|Zombie monster room connected to a mineshaft.
File:Monster room in an ancient city.png|A zombie monster room intersecting with an [[ancient city]].
File:Monster room in a deep dark biome.png|A monster room in the [[deep dark]].
</gallery>

== Notes ==
{{fnlist}}

== References ==
{{reflist}}

== Navigation ==
{{Navbox generated features}}

[[de:Verlies]]
[[es:Sala de monstruos]]
[[fr:Donjon]]
[[it:Segreta]]
[[ja:ダンジョン]]
[[ko:던전]]
[[lzh:地牢]]
[[nl:Kerker]]
[[pl:Lochy]]
[[pt:Sala de monstros]]
[[ru:Сокровищница]]
[[uk:Скарбниця]]
[[zh:地牢]]
