Custom structure

Structure features are a special type of feature that generates a structure. Configured structure features are stored as JSON files within a data pack in the path.

JSON Format

 * The root tag
 * : The type of structure feature. Must be one of the types listed below.
 * : The biome tag that this structure is allowed to spawn in.
 * : Optional. If true, terrain noise is adjusted so all pieces will generate on solid ground. Used for nether fossils, pillager outposts, strongholds, and villages. Defaults to false.
 * : Overrides the mobs that can spawn in this structure. Used for things like blaze and wither skeleton spawning in nether fortresses. Required, but can be an empty compound.
 * Configuration properties of this structure feature type, specified below.
 * Configuration properties of this structure feature type, specified below.

minecraft:bastion_remnant
Jigsaw-based structure. Works identically to  and , but attempts to generate at Y=33 underground.


 * : The namespaced id of the template pool to start from.
 * : The depth of jigsaw structures to generate. Value between 0 and 7.
 * : The depth of jigsaw structures to generate. Value between 0 and 7.

minecraft:buried_treasure

 * : The probability that this structure will spawn. Must be between 0 and 1.
 * : The probability that this structure will spawn. Must be between 0 and 1.

minecraft:desert_pyramid
This structure feature has no config properties.

minecraft:endcity
This structure feature has no config properties.

minecraft:fortress
This structure feature has no config properties.

minecraft:igloo
This structure feature has no config properties.

minecraft:jungle_pyramid
This structure feature has no config properties.

minecraft:mansion
This structure feature has no config properties.

minecraft:mineshaft

 * : Either  or  .   mineshafts can only generate under Y-level 10, while   mineshafts can spawn at any level.
 * : The probability that this structure will spawn. Must be between 0 and 1.
 * : The probability that this structure will spawn. Must be between 0 and 1.

minecraft:monument
This structure feature has no config properties.

minecraft:nether_fossil

 * : Int provider. The height where this structure attempts to generate.
 * : Int provider. The height where this structure attempts to generate.

minecraft:ocean_ruin

 * : Either  or  . Determines which structures this feature uses.
 * : The probability of this structure using the large variant buildings. Must be between 0 and 1.
 * : The probability of a cluster of ocean ruins generating, instead of just one. Must be between 0 and 1.
 * : The probability of a cluster of ocean ruins generating, instead of just one. Must be between 0 and 1.

minecraft:pillager_outpost
A jigsaw-based structure. Works identically to. Attempts to generate on the surface.


 * : The namespaced id of the template pool to start from.
 * : The depth of jigsaw structures to generate. Value between 0 and 7.
 * : The depth of jigsaw structures to generate. Value between 0 and 7.

minecraft:ruined_portal

 * : One of,  ,  ,  ,  ,  , or  . Used to determine the mossiness of the generated structure, whether to generate vines/an air pocket surrounding it, and if the   processor list should be used.
 * : One of,  ,  ,  ,  ,  , or  . Used to determine the mossiness of the generated structure, whether to generate vines/an air pocket surrounding it, and if the   processor list should be used.

minecraft:shipwreck

 * : (optional) Whether or not the shipwreck is beached. Defaults to false.
 * : (optional) Whether or not the shipwreck is beached. Defaults to false.

minecraft:stronghold
This structure feature has no config properties.

minecraft:swamp_hut
This structure feature has no config properties.

minecraft:village
A jigsaw-based structure. Works identically to. Attempts to generate on the surface.


 * : The namespaced id of the template pool to start from.
 * : The depth of jigsaw structures to generate. Value between 0 and 7.
 * : The depth of jigsaw structures to generate. Value between 0 and 7.

已配置的结构地物