Structure

This page lists generated structures in Minecraft. A generated structure is defined as any structure that is disabled when the "Generate structures" world creation option is turned off. Some structures, such as dungeons and desert wells, do still generate with this option turned off; however, they are listed on this page due to them having the appearance of an artificial structure as opposed to a natural formation.

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

Underground structures
These structures can only generate underground in normal worlds, although in Superflat they can generate above ground $$ and in custom worlds mineshafts can generate aboveground in the void $$.

Small structures
These structures generate both aboveground (except buried treasure) and underground.

Underwater structures
Note that ocean ruins and shipwrecks sometimes generate above water on shores, and icebergs are partially above and below water.

Aboveground structures
These structures only generate aboveground (the Igloo does have an underground portion sometimes)

Miscellaneous structures
These structures generate even when the "Generate structures" world option is disabled, and also cannot be located with the command.

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

The End
The End is the final and most barren dimension, with no generated structures on its main island. After defeating the, gateways to the outer islands are created.

Technical details
Structures are generated for a given chunk after the terrain has been formed. The chunk format includes a tag called that indicates whether structures whose point of origin is in that chunk have been generated. If it is false or missing, it generates 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 approximately doubles the amount of ore in it. When structures are generated, they can spill over into neighboring chunks that have been previously generated.