![]() |
VOOZH | about |
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 fossils.
Structure files are stored as .nbt files in data packs in the 👁 File directory.png: Sprite image for directory in Minecraft
data/<namespace>/structure folder.
They can be saved and loaded using the Structure Block. When saved from Structure Blocks they are saved into the generated/<namespace>/structures subfolder in the world save folder. When no namespace is given, then the minecraft namespace is used.
Structure files can also be placed using the /place template command. They are also used during the generation of some structures and of fossil features.
Structure files are stored using the NBT format in the game files. In behavior packs, they are stored as .mcstructure files in the structures/<namespace> folder.
All the specified positions are relative to the block located toward -X, -Y, -Z.
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.9 | 15w31a | Added structure files. | |||||
| 1.10 | 16w20a | Changed structure files to their current format. Before this, [NBT List / JSON Array] palette did not exist. Instead of referring to an index in the palette, [Int] state encoded the block ID and metadata at that position. The last byte encodes the block id, and the second-to-last byte encodes the block data. | |||||
| 1.11 | Removed [Int] version. Before its removal, its value was always 1.
| ||||||
| Added [Int] DataVersion that is set to the data version of the version of the game that saved the file. | |||||||
| 1.21 | 24w21a | Moved structure files from 👁 File directory.png: Sprite image for directory in Minecraftstructures to 👁 File directory.png: Sprite image for directory in Minecraftstructure. | |||||