Minecraft:Structure file
More actions
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
A structure file (also called structure template) is an NBT file that stores small structures of blocks and entities. Structure files are used to store some structures such as end cities, igloos, and Minecraft:fossils.
Usage
Java Edition
Structure files are stored as .nbt files in data packs in the Template:File folder.
They can be saved and loaded using the Minecraft:Structure Block. When saved from Structure Blocks they are saved into the Template:Cd subfolder in the world save folder. When no namespace is given, then the
- REDIRECT Template:Code
Template:Redr namespace is used.
Structure files can also be placed using the
- REDIRECT Template:Command
Template:Redr command. They are also used during the generation of some Minecraft:structures and of Minecraft:fossil features.
Prebuild structures
Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse Template:Collapse
Template:CollapseBedrock Edition
Structure files are stored using the NBT format in the game files. In Minecraft:behavior packs, they are stored as
- REDIRECT Template:Code
Template:Redr files in the Template:Cd folder.
Prebuild structures
NBT structure
All the specified positions are relative to the block located toward -X, -Y, -Z.
- Template:Nbt/sprite The root tag.
- Template:Nbt/sprite DataVersion: Data version of the NBT structure.
Template:Nbt/sprite author: Name of the player who created this structure. Only exists for structures saved before 1.13.- Template:Nbt/sprite size: 3 TAG_Int describing the size of the structure.
- Template:Nbt/sprite palette: Set of different block states used in the structure.
- Template:Nbt/sprite A block.
- Template:Nbt/sprite Name: Block ID.
- Template:Nbt/sprite Properties: List of block state properties.
- Template:Nbt: The value of the corresponding state property.
- Template:Nbt/sprite A block.
- Template:Nbt/sprite palettes: Sets of different block states used in the structure, a random palette gets selected based on coordinates. Used in vanilla by shipwrecks.
- Template:Nbt/sprite A set of different block states used in the structure.
- Template:Nbt/sprite A block.
- Template:Nbt/sprite Name: Block ID.
- Template:Nbt/sprite Properties: List of block state properties.
- Template:Nbt: The value of the corresponding state property.
- Template:Nbt/sprite A block.
- Template:Nbt/sprite A set of different block states used in the structure.
- Template:Nbt/sprite blocks: List of individual blocks in the structure.
- Template:Nbt/sprite An individual block.
- Template:Nbt/sprite state: Index of the block in the palette.
- Template:Nbt/sprite pos: 3 TAG_Int describing the position of this block.
- Template:Nbt/sprite nbt: NBT of the associated Minecraft:block entity (optional, only present if the block has one). Does not contain x, y, or z fields. See Block entity format.
- Template:Nbt/sprite An individual block.
- Template:Nbt/sprite entities: List of entities in the structure.
- Template:Nbt/sprite An entity.
- Template:Nbt/sprite pos: 3 TAG_Double describing the exact position of the entity.
- Template:Nbt/sprite blockPos: 3 TAG_Int describing the block position of the entity.
- Template:Nbt/sprite nbt: NBT of the entity (required). See entity format.
- Template:Nbt/sprite An entity.
History
de:Konstruktionsvorlagen fr:Fichier de structure ja:構造物ファイルフォーマット pt:Modelo de estrutura zh:结构存储格式