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
imported>Jacobsjo
Undo revision 3430672 by EmeraldBuilder (talk) Unless this is a recent change, this is not true: Structure blocks in bedrock use a different format, which this page is not about.
 
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
Structure files are stored as .nbt files in [[Minecraft:data pack]]s in the {{file|directory|inline=1|data/{{ph|namespace}}/structure}} folder.
Structure files are stored as .nbt files in [[Minecraft:data pack]]s in the {{file|directory|inline=1|data/{{ph|namespace}}/structure}} folder.


They can be saved and loaded using the [[Minecraft:Structure Block]]. When saved from Structure Blocks they are saved into the {{cd|generated/{{ph|namespace}}/structures}} subfolder in the world save folder. When no namespace is given, then the {{cd|minecraft}} namespace is used.
They can be saved and loaded using the [[Minecraft:Structure Block]]. When saved from Structure Blocks they are saved into the {{cd|generated/{{ph|namespace}}/structure}} subfolder in the world save folder. When no namespace is given, then the {{cd|minecraft}} namespace is used.


Structure files can also be placed using the {{cmd|place template}} command. They are also used during the generation of some [[Minecraft:structure]]s and of [[Minecraft:fossil]] features.
Structure files can also be placed using the {{cmd|place template}} command. They are also used during the generation of some [[Minecraft:structure]]s and of [[Minecraft:fossil]] features.
Line 2,330: Line 2,330:
== Navigation ==
== Navigation ==
{{Navbox Java Edition technical|datapack}}
{{Navbox Java Edition technical|datapack}}
{{Navbox Bedrock Edition}}


[[Category:Development]]
[[Category:Development]]
[[Category:Structures]]
[[Category:Structures]]



Latest revision as of 11:18, 5 September 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: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:结构存储格式