How Minecraft Decides Where Structures Generate
Structure positions are not random scatter. The world is cut into regions, each region gets one try, and the biome decides whether the try succeeds.
If you have ever wondered why villages seem to be everywhere while woodland mansions are thousands of blocks away, the answer is in how the game picks structure positions. The rules are the same for every seed, which is also what makes a seed map possible.
Regions and attempts
For most structures, the world is divided into a grid of square regions, measured in chunks (one chunk is 16 by 16 blocks). Each region gets exactly one attempt at one position. Two numbers control the grid:
- Spacing is the size of a region. For villages it is 34 chunks, so a region is 544 by 544 blocks.
- Separation is the minimum gap between attempts in neighboring regions. For villages it is 8 chunks. The attempt is placed somewhere in the region, but not in its last 8 chunks on either axis, which keeps two villages from landing side by side.
The exact spot inside each region comes from the seed, the region’s coordinates and a number specific to each structure type, called a salt. That is why two structure types with the same spacing do not end up at the same places.
The biome check
An attempt is only a candidate. The game then checks the biome at that spot. A desert temple attempt that lands in a forest simply fails, and that region has no desert temple. This is why structures tied to rare biomes are rare: woodland mansions need dark forest, and their regions are already large.
Some structures add further conditions:
- Pillager outposts only succeed about one time in five, and are skipped within ten chunks of a village.
- Ocean monuments need deep ocean, and the area around them must be ocean too.
- Nether fortresses and bastion remnants share one grid. Each region holds one or the other, and bastions are chosen more often. Bastions are not allowed in basalt deltas.
- Buried treasure has no region grid at all: every beach chunk has a 1 percent chance, at a fixed spot inside the chunk.
- Strongholds use rings around 0, 0 instead of regions. The guide on stronghold placement covers them.
Spacing of each structure
| Structure | Spacing (chunks) | Separation (chunks) |
|---|---|---|
| Village | 34 | 8 |
| Trail ruins | 34 | 8 |
| Trial chambers | 34 | 12 |
| Desert temple, jungle temple, witch hut, igloo, pillager outpost | 32 | 8 |
| Ocean monument | 32 | 5 |
| Ancient city | 24 | 8 |
| Shipwreck | 24 | 4 |
| Ruined portal | 40 | 15 |
| Woodland mansion | 80 | 20 |
| Nether fortress and bastion remnant (shared) | 27 | 4 |
| End city | 20 | 11 |
These values come from the open-source cubiomes library, which reads them from the game’s own world generation data.
For ocean monuments, woodland mansions and end cities, the position inside the region is more likely to be near the middle than near the edges. For the other structures every allowed spot is equally likely.
Terrain can still say no
A few structures also check the terrain when the chunk is actually generated: an end city needs land that is high enough, and some structures avoid steep slopes or water. A seed map can estimate these checks but not always reproduce them exactly. In rare cases a structure on the map does not appear in the game for this reason.