Minecraft:Structure definition
More actions
Template:Distinguish Template:Exclusive Template:Relevant tutorial
A structure is a large decoration, covering an area up to 256×256×256 block centered on the structure start. Structures often consist of multiple pieces that are fit together to form the overall structure. They are configured using Minecraft:JSON files within a Minecraft:data pack in the path Template:Cd. To generate in a world, a structure needs to be part of at least one Minecraft:structure set.
JSON format
- Template:Nbt The root tag.
- Template:Nbt: The ID of structure feature type.<section begin="json format" />
- Template:NbtTemplate:Nbt: Template:Json ref/biome — Biomes that this structure is allowed to generate in.
- Template:Nbt: The step where the structure generates. See also the Template:Cd field in Minecraft:custom biome. Structure features are generated prior to features in the same step. One of Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, and Template:Cd.
- Template:Nbt: (Optional, defaults to Template:Cd) The type of terrain adaptation used for the structure. Template:Cd for no adaptation, Template:Cd for generating terrain under the structure, while removing terrain inside the structure (used by pillager outposts and villages), Template:Cd for advanced alternative of Template:Cd (used by ancient cities), Template:Cd for generating terrain surrounding the structure to make it buried (used by strongholds), and Template:Cd for advanced alternative of Template:Cd (used by Minecraft:Trial Chambers).
- Template:Nbt: (Required, but can be empty. If this object doesn't contain a certain category, the category's spawn setting won't be overridden, and mobs are spawned based on biome.) Overrides the mobs that can spawn in this structure. Used for things like blaze and wither skeleton spawning in nether fortresses, and can also be used to block mobs from spawning like in ancient cities.
- Template:Nbt: The key must be one of Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, or Template:Cd.
- Template:Nbt:Can be Template:Cd or Template:Cd. If Template:Cd, overrides spawn setting inside the full bounding box of the structure. If Template:Cd, only the bounding boxes of all structure pieces.
- Template:Nbt:(Required, but can be empty. If empty, mobs in this category do not spawn.) A list of spawner data objects, one for each mob which should spawn in this structure.
- Template:Nbt: The spawner data for a single mob.
- Template:Nbt: The namespaced entity id of the mob.
- Template:Nbt: How often this mob should spawn, higher values produce more spawns.
- Template:Nbt: The minimum count of mobs to spawn in a pack. Must be greater than 0.
- Template:Nbt: The maximum count of mobs to spawn in a pack. Must be greater than 0. And must be not less than Template:Nbt.<section end="json format" />
- Template:Nbt: The spawner data for a single mob.
- Template:Nbt: The key must be one of Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, Template:Cd, or Template:Cd.
- Additional fields depending on value of Template:Nbt, see Structure types.
Structure types
Structures use different types. The structure types and their corresponding configuration are listed below:
Using Jigsaw Blocks
Template:Main Jigsaw structures are using Minecraft:template pools and Minecraft:jigsaw blocks and allow full customization of structure generation using a datapack. Template:Collapse
Using structure templates
These structure types use specific Minecraft:structure templates, but they use hard-coded relative positioning between those structure templates instead of using jigsaw blocks.
Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse
Hardcoded structures
These structure types use code to place the blocks of the structure directly.
Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse
History
External links
Template:Navbox Java Edition technical
Minecraft:de:Konstruktionsdefinition Minecraft:fr:Définition de structure Minecraft:ja:構造物のカスタマイズ Minecraft:pt:Definição de estruturas Minecraft:uk:Визначення структури Minecraft:zh:结构定义格式