Structure

Every specific group of blocks purposefully formed in Minecraft based on coding is part of a natural structure.

The Overworld
The Overworld contains numerous generated structures, at a wide variety of scales.

Terrain
Biomes dictate the shape and height of the world. At this stage, the ground is made entirely of stone, with water filling in any empty space below layer 63, with exception for structures.

Mountain
Mountains are hills with extreme slopes and cliffs. Mountains can sometimes have caves through them. On an amplified, mountains are extremely common in all biomes except ocean and swamp biomes.

Floating "island"
Floating "islands" are structures that float in midair that are not connected to the ground, the sea, hills or cliffs. Floating "islands" are normally just random pieces of floating dirt and stone found near cliffs, but on rare occasions they can be large, floating structures that even have springs and trees on them. Floating Islands are most frequently found in the extreme hills, ice plains, ice mountains and mushroom island biomes, but can be found anywhere. Floating Islands are very common in an amplified world.

Hollows
Hollows are the opposite of floating islands. They look like caves, but they have nothing to do with cave generation. When there are many overhangs, they close together and create a hollow. They have exactly the same floor as the terrain above, depending on the biome that they are located in, unlike caves. Caves have no specific floor. Grass can generate inside too. When they generate under the sea level, the water generates inside them. They are extremely rare in the default world, but can be found in the customized world.

Hill
Hills are randomly generated pieces of land in the map. Like stairs, hills are always traverse-able to their lowest point by virtue of the algorithm which generates them; there is almost always a place on each level from where the next level can be accessed, meaning that the player can climb a hill one level at a time until they reach the top. Cases where this is not true are rare.

Beach
Beaches usually generate next to oceans and cover all nearby shorelines. They come in three varieties: sand beach, gravel beach, and stone beach. Sandstone is located below sand in sand beaches. Gravel beaches had no such border and thus pose dangers like falling into caverns located right underneath them. Stone beaches have cliffs near the ocean.

Surface layer
The uppermost layers of the terrain are converted to a biome-dependent material: usually grass blocks and dirt, or sand in deserts and beaches. Podzol is found in mega taiga, and red sand is found in the mesa biome. Sandstone is generated under sand.

Basin
Occasionally, instead of being converted to dirt or sand, the top layer is stripped away, leaving a 'basin' of bare stone. They bear some resemblance to a geological 'shield' (an area of tectonically stable rock that has been exposed to prolonged erosion due to its very old age; it is distinct from the geological term "basin"). They seem to be more common in forest or plains, and are occasionally seen filled with water. Sometimes, common minerals can be found on the surface such as coal ore and iron ore.

Ocean
Oceans/Seas are huge bodies of water with every single water tile being a source block. The ground can rise high enough to produce small, relatively barren islands. Prior to the Adventure Update, oceans were generated as part of the terrain generation algorithm, but since then, they are part of the ocean biome.

Deep oceans have a chance to spawn with an ocean monument.

River
Rivers are long "strands" of water that cut through or separate biomes. They do not have a current. Rivers have also been known to be a reliable source of clay. In hilly or mountainous areas, the ground can rise above layer 62, producing a dry riverbed.

Lake
Lakes are small bodies of a liquid. Water lakes can now be generated above sea level or inside caverns, and are small bodies of water surrounded simply by dirt or sand (But they are rarely big). When in a winter biome, these small lakes are never initially frozen but can turn to ice. The lakes can also be composed of lava; however, lakes of lava are rarer. Lava lakes found at the surface may be surrounded by gravel, sand, stone, and coal ore. Both types of lake generate with a small air pocket above them, which may result in floating sand, floating snow cover or even the top 2/3rds of trees above the lake. Lava lakes may cause trees to burn this way.

Cavern
Caverns are caves and tunnels that are automatically generated under the ground in various places. Caverns are composed mainly of stone, and contain large amounts of ores. Some of the sand around cave entrances can be found compressed into the respective sandstone.

Ravine
Ravines are tall, long cracks of air, usually measuring around 30 to 50 blocks in height, and usually no more than 5 blocks wide. Ravines can have small ledges along the top. They can be found at any level and also sometimes appear on the world surface or underwater, forming canyons. They can go very deep underground, sometimes spawning slimes or exposing diamond ore. If they reach deep enough, they may also be floored by the lava lakes at level 11. In the Amplified world type, ravines can reach from surface level to bedrock. Ravines can also be found in oceans or rivers having a waterfall from the river/ocean falling into them.

Ravines can connect to caves, dungeons, abandoned mines, and any other generated structures. Due to the large surface area of their walls, ravines often have water and/or lava flowing down them (from springs in the walls, underground lakes, or even openings to the sea).

Abandoned mine shaft
Abandoned mine shafts are structures generated underground which consist of branching mining tunnels with wooden supports and broken rails passing through it. Cave spider spawners can be found in mine shafts. Open areas generate with bridges instead of leaving floating platforms. They contain minecarts with chests that may have rare items such as diamonds and horse armor. They may also contain iron ingots, coal, pickaxes, and other useful items. They are likely to expose veins of coal, iron, lapis lazuli, gold ore, and rarely, emerald and diamond ore.

Stronghold
Strongholds are structures that contain multiple rooms, doors and other aspects (some of these rooms include libraries, fountain rooms, dungeon-like rooms, etc.). There are three per world. Stone brick, mossy stone brick, cracked stone brick, doors, iron bars, monster eggs and stone slabs are the materials that make up the strongholds. They also contain silverfish, which one should be careful of when digging around in strongholds. Portals to The End are found in specific rooms in strongholds. Chests may be found containing items such as books, redstone, ender pearls, apples, bread, compasses, iron tools/armor, and diamonds. Strongholds can be found by right clicking an eye of ender, which will be thrown into the air and point the direction where the End portal is, showing the way to the stronghold.

Small structures
The quantity of most of these features (aside from lakes, mineral veins, and springs) is biome-dependent; not all features can be found in every biome.

Dungeon
Dungeons are small, mostly underground, one-room spaces bordered by moss stone and cobblestone, and typically contain chests with rare items, and a hostile monster spawner in the center. Dungeons generate with either a zombie (50% chance), skeleton (25% chance), or spider (25% chance) spawner. Occasionally a player may find that the spawner is covered with gravel and will be harder to reach, yet the mobs can still spawn with the gravel around it. The chests may contain rare valuables, such as music discs, enchanted books, saddles, horse armor, and golden apples. Rarely, multiple dungeons can generate next to each other. Dungeons generated in a desert can sometimes be visible from the surface due to the sand falling down.

Mineral vein
A mineral vein is a natural deposit of ores. Players can come across these veins in caverns or anywhere where there is natural stone. Underground deposits of dirt and gravel are generated in this step, followed by the more precious ores: coal, iron, gold, redstone, diamond, emerald (in extreme hill biomes) and lapis lazuli. They can only form in stone, and do not replace each other or any other block. Note that two or more mineral veins can form next to each other and make it look like a mineral vein made of more than one material.

Tree
Trees are common structures created both during world generation and by players (grown from saplings). They are made of wood and leaves. Tree sizes range from small trees that can be fully harvested from ground level, to large trees that may require several minutes to harvest.

Huge mushroom
Huge mushrooms are structures that only naturally occur in mushroom island biomes and roofed forest biomes. They are composed of mushroom stalks and either red or brown colored blocks for the cap. They can be grown outside mushroom islands by fertilizing red or brown mushroom with bone meal, or can be generated with mycelium. Huge mushrooms can also be found anywhere in an amplified world, but each will spawn with groups of 1-5 mushrooms per group.

Spring
Springs are randomly generated blocks of either lava or water that act as a source of their respective material. While both can be found on the vertical side of stone blocks above the surface, lava springs are more often found underground beneath layer 32 in caverns.

Desert well
These well-like structures built of sandstone blocks and slabs generate only in the desert biome. They have a 1/1000 chance to be generated in any desert chunk, which makes them a rare sight. It is possible for a well to generate around a cactus. The well structure can also spawn even with the "Generate Structures" setting disabled.

Moss stone boulder
These structures are meant to represent boulders, made entirely of moss stone. The formation of these structures vary possibly infinitely. They can be found dotted around areas of the mega taiga biome. Due to the wide variety in shape they often appear to just be a patch of moss stone on the ground rather than a boulder. Moss stone boulders are quite rare, due to the mega taiga biome's rarity

Ice spike
Ice spikes are tall spires made of packed ice. The spikes can only be found in the ice plains spikes. There are two variants of ice spikes: one is short and thick, and the other is extremely tall and thin.

Buildings
Buildings are naturally generating structures that form above ground. They can contain valuable treasure, but traps and puzzles as well.

Village
Villages are generated in desert, plains and savanna biomes and are a site for villagers, who can be traded with. They are composed of a random selection of various buildings and farms. There is always exactly one well, other buildings can be any of several different houses, single or double farms, blacksmith's shop, library, butcher's shop, or church. Villages are built with different materials depending on their biome: Oak wood and cobblestone for plains and savanna villages, sandstone for desert villages. Villages may generate partly submerged in water, although this is more prominent in the Console editions. The Villagers move about in the area around the village, retreating indoors at night and during storms. Villages have little paths to join all houses. Sand villages have roads to join them.

Desert temple
Desert temples, also known as pyramids, are found in deserts. They mainly consist of sandstone and stained clay. In the middle of the temple is a block of blue stained clay, which if destroyed, reveals a deep, hidden chamber underneath, where players can find 4 chests, which can contain valuable loot, and a stone pressure plate trap connected to a 3×3 grid of TNT. Treasures found in the chests include emeralds, diamonds, iron ingots, gold ingots, rotten flesh, enchanted books, and bones. While rotten flesh, bones and gold ingots are found frequently, other treasures are not as common.

Jungle temple
Jungle temples are found in jungles, and mainly consist of cobblestone and mossy cobblestone. There are three floors, the bottom floor containing a chest and a puzzle. The chest is found through a corridor which contains hidden tripwires that triggers a dispenser to shoot arrows at the player. The player must carefully navigate through the corridor while triggering the tripwires. The puzzle is located at the opposite of the corridor and consists of three levers that must be pulled in the correct order to open a secret door which reveals another chest. While both chests can contain rare loot, the puzzle chest usually contains the more valuable ones, such as diamonds and emeralds.

Witch hut
Witch huts generate in swamp biomes. Witches spawn inside of them. There are no chests or any other loot inside.The witch hut ceilings are just high enough for the witches to fit inside, but their hats protrude into the ceiling. There is no valid way a witch can get back up into a hut if it falls out of one.

Ocean monument
Ocean monuments are underwater structures that spawn in deep oceans. They spawn in the shape of a pyramid with many rooms. They are composed of prismarine, sea lanterns and prismarine bricks. The only valuables found here are 8 gold blocks encased in dark prismarine and a random assortment of sponges. Guardians and elder guardians spawn here.

The Nether
The Nether, though equally vast, contains far fewer types of generated structures than the Overworld.

Lava sea
Lava seas are found at and below level 30 in the Nether. They make a large portion of the Nether, and are extremely common. They can stretch for hundreds of meters in any direction, and are usually bordered by netherrack (or more rarely soul sand). Even on far render distance, the player is rarely able to see the other side of the seas due to their vastness.

Nether fortress
Nether fortresses are very large complexes made mainly of nether bricks (with added nether brick fences and stairs to be found). Nether fortresses can often tunnel through netherrack, and the inside of the tunnels will be cleared of netherrack by the terrain generator. Blaze spawners and nether wart farms are only found in nether fortresses. Blazes, zombie pigmen and wither skeletons can spawn anywhere in the fortress. Nether fortresses have some chests. The chests with loot are usually generated in corners.

Glowstone cluster
Glowstone clusters are typically veins of glowstone that can be among the hardest natural materials to harvest that don't require digging. They form in coral-like structures on the underside of hanging Netherrack, so they are often found on the ceilings of the Nether, where they provide light along with the ever present lava.

Other things
There are areas of soul sand and gravel around layer 64, nether quartz ore veins and "hidden lava", which is a single block of lava in random places not visible without digging.

The End
The End is the most barren dimension, with only four types of significant structures.

The Island
Most of the End is a large, asteroid-like island composed entirely of end stone, floating in an endless void. As of 1.9, the End will generate more islands about 1000 blocks away from the main island. These consist of large islands, about the size of the main island, and small ones, who are usually very thin and small.

Obsidian pillar
Obsidian pillars, or obsidian towers, are tall, tower-like structures that generate in The End. No part of them are in the ground; there is no obsidian below the lowest block of obsidian that the player can see without digging. Ender crystals will spawn on top of each one to heal the Ender Dragon.

On the Console Edition, the pillars are generated in a circle around the fountain. Two of the ender crystals are surrounded by iron bars, which must be destroyed before the crystal can be taken out.

Obsidian platform
The obsidian platform is a 5 by 5 square of obsidian that the player spawns once they enter The End. (Note that if the obsidian is destroyed, or if a block is placed on top of it, when the player or any other entity enters the End, the obsidian will be restored and any blocks on top of it will despawn.) Obsidian platforms mostly spawn far away from the island, making it tough to get there.


 * Sometimes the platform spawns inside a case of end stone. It will remove enough end stone so that the player can walk around.
 * Occasionally the platform will spawn in midair.
 * Very rarely, the platform will spawn on an obsidian pillar and have an Ender crystal on it.

End fountain
The exit end portal, in the shape of a fountain is found once the Ender Dragon is defeated, giving the player a way back to the overworld. This fountain is also the foundation of the Ender Dragon Egg. After entering the fountain, the Minecraft credits come on the screen, implying that you have "beaten the game" (despite the fact that the game never ends). You can skip these credits by pressing. After the credits have finished (or after you skipped them), the player returns to the last bed they slept in (or their original spawn spot if the bed was obstructed). The fountain is also made of bedrock, making it indestructible.

On the Console Edition, the fountain is generated in between the Pillars, and already exists before the Ender Dragon is killed. The Enderdragon will also fly above the fountain when the player approaches it, and spew Ender Acid. In addition, the ender dragon will defend the fountain from endermen every 3 minutes or so.

End gateway portal
The end gateway portal is a portal to the outer islands of the End. It is a fast way to get there without bridging over or flying. It is generated after you kill the Ender Dragon. It will emit a purple beacon beam for a few seconds upon generation. You can get a new one each time you kill the ender dragon, with up to 20 created. It consists of the end gateway and two bulbs of bedrock. It is only accessible through ender pearls. When an entity enters, it will momentarily emit a yellow beam.

End city
End cities are structures that are naturally generated in the outer islands of the End. They are tall castle or tree-like structures constructed primarily of end stone bricks and purpur blocks and their variants. They are lit up by End rods. They are also the only places where shulkers can be found.

Chorus tree
Chorus Trees generate on the outer islands of the end. They are shaped like tall and skinny trees. They consist of Chorus Plants and Chorus Flowers. A chorus flower will spawn at the top of each branch. They are the only source of Chorus Fruit and chorus flowers. You can grow a Chorus Tree by planting a flower on a block of endstone.

Technical details
Structures are generated for a given chunk after the terrain has been formed. The chunk format includes a tag called TerrainPopulated that indicates whether structures whose point of origin is in that chunk have been generated. If it is false or missing, they will be generated again. Structure generation is based on what is already in the chunk, so (for example) flagging a chunk that has already been populated for repopulation will approximately double the amount of ore in it.

When structures are generated, they can spill over into neighbouring chunks that have been previously generated. Thus, a tree at the edge of the generated world (and probably only visible using external tools) may be overwritten by a lake before you reach it. It is also theoretically possible for two worlds generated with the same seed, from the same version of Minecraft, to differ slightly depending on the players' travel routes, because the order in which chunks are generated may determine which of two conflicting structures will overwrite or suppress the other.

Trivia

 * In previous versions, when snow cover wasn't solid, a Lava Lake leaving floating snow cover above it could be a deadly trap before the snow melted.