![]() |
VOOZH | about |
A structure set is used to determine the position of structures in the world during world generation. They are configured using JSON files stored within a data pack in the path data/<namespace>/worldgen/structure_set or an add-on in the path <root BP>/worldgen/structure_sets. Structure sets are not referenced in a dimension or biome. Instead, the existence of the resource is enough to make the structures generate. The valid biomes of a structure are determined by the structure itself (see Structure/JSON format).
The structure sets uses the [NBT Compound / JSON Object] placement to determine the placement of structures. For any position a random structure is selected from the [NBT List / JSON Array] structures list. If the selected structure can't be placed because its not in a valid biome, a different structure is selected.
default) Provides a random number generator algorithm for frequency. One of default (the random number depends on the seed, position and [Int] salt), legacy_type_1 (the random number depends only on the seed and position, and randomness only occurs when the locations differ greatly), legacy_type_2 (same as default, but with fixed salt: 10387320) and legacy_type_3 (the random number depends only on seed and position)./locate structure.
minecraft:concentric_rings or minecraft:random_spread.minecraft:random_spread.linear or triangular.The placement type determines how the structures are spread in a world. There are two placement types.
linear distribution of offset value and blue line is triangularStructures are spread evenly throughout the entire world. In vanilla, this placement type is used for most structures (like bastion remnants or swamp hutsโ[Java Edition only]). Starting from chunk 0 0 and moving outwards [Int] spacing number of chunks, a grid of initial positions is created. After that the offset is applied to each position by X and Z separately based on the additional fields.
linear) One of linear or triangular. linear sets offset to a random value between 0 and spacing - separation - 1 (inclusive). triangular takes the sum of 2 random numbers between 0 and spacing - separation - 1 (inclusive) then divides that sum by 2, rounding down to nearest integer. This value results in less random offset, where values have a much higher chance to be closer to the middle of the distribution, than to the sides.2*spacing - separation.A fixed number of structures are placed in concentric rings around the origin of the world. In vanilla, this placement is only used for strongholds.
#, or an [NBT List / JSON Array] array containing [String] IDs) โ Biomes in which the structure is likely to be generated. After choosing the initial position of generation, a search in a square with a radius of 112 blocks begins. It proceeds from -X to +X, from -Z to +Z in 4ร4 squares. When a position inside a biome from [String][NBT List / JSON Array] preferred_biomes is found, it is considered the new position. If multiple positions are found, one is chosen randomly. If no positions are found, the initial position is used.spread * (N^2 + 3 * N + 2) / 6, until the number of attempts reaches the total [Int] count.| Structure set | Structures | Separation | Spacing | Salt | Notes |
|---|---|---|---|---|---|
ancient_cities
|
๐ Image Ancient City |
8 | 24 | 20083232 | |
buried_treasures
|
๐ Image Buried Treasure |
0 | 1 | 0 | Probability of 1%, locate_offset of x:9, y:0, z:9 |
desert_pyramids
|
๐ Image Desert Pyramid |
8 | 32 | 14357617 | |
end_cities
|
๐ Image End City |
11 | 20 | 10387313 | |
igloos
|
๐ Image Igloo |
8 | 32 | 14357618 | |
jungle_temples
|
๐ Image Jungle Pyramid |
8 | 32 | 14357619 | |
mineshafts
|
๐ Image Mineshaft ๐ Image Badlands Mineshaft |
0 | 1 | 0 | Probability of 0.4% |
nether_complexes
|
40% ๐ Image Nether Fortress 60% ๐ Image Bastion Remnant |
4 | 27 | 30084232 | |
nether_fossils
|
๐ Image Nether Fossil |
1 | 2 | 14357921 | |
ocean_monuments
|
๐ Image Ocean Monument |
5 | 32 | 10387313 | Triangular spread type |
ocean_ruins
|
๐ Image Ocean Ruin |
8 | 20 | 14357621 | |
pillager_outposts
|
๐ Image Pillager Outpost |
8 | 32 | 165745296 | Probability of 20%, exclusion zone of 10 chunks from any village |
ruined_portals
|
๐ Image Ruined Portal |
15 | 40 | 34222645 | |
shipwrecks
|
๐ Image Shipwreck |
4 | 24 | 165745295 | |
strongholds
|
๐ Image Stronghold |
0 | Concentric rings distance=32 count=128 spread=3 | ||
swamp_huts
|
๐ Image Swamp Hut |
8 | 32 | 14357620 | |
trail_ruins
|
๐ Image Trail Ruins |
8 | 34 | 83469867 | |
trial_chambers
|
๐ Image Trial Chambers |
12 | 34 | 94251327 | |
villages
|
๐ Image Plains Village ๐ Image Desert Village ๐ Image Savanna Village ๐ Image Snowy Village ๐ Image Taiga Village |
8 | 34 | 10387312 | |
woodland_mansions
|
๐ Image Woodland Mansion |
20 | 80 | 10387319 | Triangular spread type |