Structure Block file format

Structure files are stored as an NBT file. This file format is used to store structures such as end city, igloo and fossil into the folder inside client.jar. Custom structures can also be saved and loaded using the structure block. These structures are saved into the subfolder in the world save folder.

NBT Structure
All the specified positions are relative to the block located toward -X, -Y, -Z


 * The root tag.
 * : Version of the NBT structure.
 * : Name of the player who created this structure, only exists for structures saved before 1.13.
 * : 3 TAG_Int describing the size of the structure.
 * : Set of different block states used in the structure.
 * A block.
 * : Namespaced block ID.
 * : List of block state properties, with [name] being the name of the block state property.
 * : The block state name and its value.
 * : Sets of different block states used in the structure, a random palette gets selected based on coordinates and structure integrity. Used in vanilla by shipwrecks.
 * A set of different block states used in the structure.
 * A block.
 * : Namespaced block ID.
 * : List of block state properties, with [name] being the name of the block state property.
 * : The block state name and its value.
 * : List of individual blocks in the structure.
 * An individual block.
 * : Index of the block in the palette.
 * : 3 TAG_Int describing the position of this block.
 * : NBT of the associated block entity (optional, only present if the block has one). Does not contain x, y, or z fields.  See Block entity format.
 * : List of entities in the structure.
 * An entity.
 * : 3 TAG_Double describing the exact position of the entity.
 * : 3 TAG_Int describing the block position of the entity.
 * : NBT of the entity (required). See entity format.

Konstruktionsvorlagen ストラクチャーブロックファイルフォーマット 结构方块文件格式