Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Structure file: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 2,319: Line 2,319:


==History==
==History==
{{info needed section|History of structure files on Bedrock Edition.}}
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java}}
|{{HistoryLine|java}}
Line 2,326: Line 2,329:
|Added {{nbt|int|DataVersion}} that is set to the [[Minecraft:data version]] of the version of the game that saved the file.}}
|Added {{nbt|int|DataVersion}} that is set to the [[Minecraft:data version]] of the version of the game that saved the file.}}
|{{HistoryLine||1.21|dev=24w21a|Moved structure files from {{file|directory|inline=1|structures}} to {{file|directory|inline=1|structure}}.}}
|{{HistoryLine||1.21|dev=24w21a|Moved structure files from {{file|directory|inline=1|structures}} to {{file|directory|inline=1|structure}}.}}
}}
=== ''Bedrock Edition'' ===
{{HistoryTable
|{{HistoryLine|bedrock}}
|{{HistoryLine||?|Added structure files.}}
|{{HistoryLine||26.50|dev=Preview 26.50.24|Added version 2 structure files.}}
|{{HistoryLine||26.60|dev=Preview 26.60.29|Version 2 structure files now have a tag named {{nbt|int|compression}} which controls use of zlib compression.}}
}}
}}



Latest revision as of 11:24, 14 October 2026

A structure file (also called structure template) is an Minecraft:NBT file that stores small structures of blocks and entities. Structure files are used to store some structures such as Minecraft:end cities, Minecraft:igloos, and Minecraft:fossils.

Usage

Java Edition

Structure files are stored as .nbt files in Minecraft: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 Template:Cd namespace is used.

Structure files can also be placed using the Template:Cmd command. They are also used during the generation of some Minecraft:structures and of Minecraft:fossil features.

Prebuild structures

Bedrock Edition

Structure files are stored using the Minecraft:NBT format in the game files. In Minecraft:behavior packs, they are stored as Template:Cd files in the Template:Cd folder.

Prebuild structures

NBT structure

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


History

Template:Info needed section

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

Navigation

Template:Navbox Java Edition technical Template:Navbox Bedrock Edition

Minecraft:de:Konstruktionsvorlagen Minecraft:fr:Fichier de structure Minecraft:ja:構造物ファイルフォーマット Minecraft:pt:Modelo de estrutura Minecraft:zh:结构存储格式