Structure Block

A structure block is used to generate structures manually. They can also be used to save and load structures, alongside structure void blocks.
== Obtaining ==
Structure blocks are available using the , , or commands, and are available in the Creative inventory . When placed, structure blocks are unbreakable in Survival and have the same blast resistance as bedrock. , only save-mode structure blocks are obtainable through commands.
== Usage ==
When placed, the structure block to open the structure block GUI. The GUI opens only if the player is in Creative mode, and has permission level 2 or higher.
Once a structure is named, its name appears above the structure block when highlighted, preceded by the block mode (e.g. "Save:House").
Switching between modes preserves the settings of the structure block wherever possible.
Before being placed, the structure block uses a "blank" texture in the inventory, a texture that is not used when on a placed block.
A piston cannot move a structure block. They also cannot be pushed nor pulled by sticky pistons. Structure blocks cannot be destroyed by the ender dragon. You can not attach any redstone, vines, bells, lanterns or torches to the block. You can however place these blocks around the edge of the block,
=== Save ===
 Save mode allows the player to highlight a structure in the world and save it to memory, level file, or a separate file.
;Structure Name
:The name of the structure is entered into this text box. Capital letters and special characters are not allowed. Underscores (_) and hyphens (-) are allowed. , it has "mystructure:" prefix on default.
;Relative Position
:Enter the X, Y, and Z values for the structure here, based on the position of the structure block. Sets the origin of the structure outline.
:Maximum allowed distance from the structure block is 48 blocks in any direction and 64 on horizontal direction and 256 on vertical direction .
;Show invisible blocks 
:Displays invisible blocks as small colored cubes. Off by default.
:; Invisible blocks as shown by the "Show invisible blocks" option
:
Block	Appearance	Color	Notes
 	 	 	All air types look the same by design.
 	 	 	
 	 	 	
 	 	 	
;Structure Size
:Enter the X, Y, and Z values to set the distance from the Relative Position coordinates. This sets the opposite corner of the structure, and defines its size.
:Maximum structure size is 48x48x48 and 64x256x64 .
:When successful, generates a white outline surrounding the structure. , the outline is green, blue, or red (depending on the axis) and the preview design can be used to see every layer of fragmented structure and to change the structure size to be saved.
;Detect structure size and position
:Automatically calculates the size and position of the structure using a corner block placed on the opposite corner of the structure.
:The name of the structure in the save block must match the name within the corner block, or the size calculation fails.
:Two corner blocks can also be used. It uses the second corner block instead of the structure block.
;Remove blocks 
:While saving the structure and when enabled, this doesn't include any blocks within the structure.
;Include entities
:While saving the structure and when enabled, this saves any entities within the structure as well.
;Save
:When all coordinates and a structure name have been entered, press this button to save the structure.
: , this saves the structure to a file. The name of the structure is the name of the file.
:: Structures can be saved to a file only by manually pressing this button. If a structure block in Save mode is instead powered by redstone, the structure is saved only in memory by default. This is the case even if a file for that structure already exists on disk. Reloading the world clears any structures stored in memory. This is for unspecified security reasons.
:: By default, structure blocks are saved in the minecraft namespace. This can be changed by prefixing the structure name with <namespace>: in the structure block.
:: Structures are saved in .minecraft/saves/(WorldName)/generated/(namespace)/structures. Structures created in versions before 1.13 are saved in .
: , this saves the structure into level database file rather than a standalone file. And the player can set up the structure block so that it can save into the memory or the disk (level file) when automated with redstone.
;Export 
:Used to export a structure into a .mcstructure file, which can be used to load from the structures folder of a behavior pack. If the structure contains a custom block from a behavior pack, then the block is also saved on the structure block. This option is available only on Android and Windows 10 devices.
=== Load ===
 Load mode allows the player to load and rotate saved structures.
;Structure Name
:The name of the structure to load.
:, it can load structures saved to memory or a file (.minecraft/saves/<World Name>/generated/<namespace>/structures/), structures in data pack and in minecraft.jar.
::To load a structure from a file, simply type <namespace>:<structure_path>.
:: Structures saved only to memory have a higher priority than structures of the same name that were saved to a file. Structures saved to a file have a higher priority than structures of the same name that is in data pack, which have a higher priority than structures in minecraft.jar.
:, it can load structures saved to memory or disk (level database), and structures in behavior pack.
:: Structures saved only to memory have a higher priority than structures of the same name that were saved to disk. Structures saved to disk have a higher priority than structures of the same name that is in behavior pack.
::Vanilla NBT structure files cannot be loaded with structure block.
;Relative Position
:The X, Y, and Z coordinates of the corner in which to generate the structure, based on the position of the structure block. Coordinates may be defined as numbers between -48 and 48 , or between -64 and 64 .
; Show bounding box
:Highlights the outline of the structure; on by default.
;Structure Integrity and Seed
:Removes random blocks that compose the structure based on a user-defined seed.
:Lower integrity values result in more blocks being removed. The integrity value must be between 0.0 and 1.0 / 100.00.
;Include entities
: Include any entities saved in the structure file when loading the structure. Off by default.
;Waterlog blocks 
:While loading the structure in water, it allows the blocks to be waterlogged instead of being replaced with air. 
;Remove blocks 
:While loading the structure, doesn't include any blocks within saved structure.
;Rotation (0, 90, 180, 270)
:Sets the rotation of the structure to 0° (no rotation), 90° clockwise, 180° clockwise, and 270° clockwise (or 90° counter-clockwise).
;Mirror (¦, <>, ^v)
:Sets the mirroring of the structure to none (¦), left to right (< >), or front to back (^ v). At 0° rotation < > mirrors across the X-axis and ^ v mirrors across the Z-axis.
:, the options are x and z, which can be toggled to set mirroring.
;Animation mode 
:Select the animation to show how structure is loaded. Place by layer make structure loaded layer by layer, place by block make structure loaded one block by block. Default to none.
:Once the loading has started, breaking the structure block can not stop the loading process.
: Loading with animation may break blocks in structures that contain multiple parts (such as beds, doors, or tall grass), or need to be attached to other blocks (such as torches), and may cause water, lava, and fire to spread out.
;Animation time 
: Adjust the animation time for loading the structure.
;Load
:Load the structure.
:, press this button once to prepare the outline preview of the structure. When satisfied with the position, press again to generate the structure.
:Structures may also be loaded with the use of redstone.
===Corner===
 Corner mode allows for an easier and automatic size calculation while saving or loading structures.
: To use, place on the opposite corner of a save structure block or a second corner structure block. Then, using a save block, press "DETECT".
:When successful, a bounding outline appears.
;Structure Name
:The name of the structure on which to calculate the size and position.
:Name is case sensitive; it must match exactly with the name provided by the complementary save or corner structure block.
===Data===
 Data mode is a deprecated mode, which is superseded by jigsaw block, but still used in some certain vanilla structures (igloo, end city, woodland mansion, ocean ruin, shipwreck). Structure block in data mode can be used only during natural generation. They mark the location to run a specified hardcoded function, which can be used only for relevant structures. , this mode is hidden unless the key is held while switching from Corner mode. , data mode structure block cannot be obtained with commands.
;Custom Data Tag Name
:The name of the function to run. 
:;Igloo
::"chest" - sets the loot table for a chest beneath the structure block to "chests/igloo_chest" and sets the loot table seed dependent on the world seed.
:;End city
::"Chest" - Sets the loot table for a chest beneath the structure block to "chests/end_city_treasure" and sets the loot table seed dependent on the world seed.
::"Sentry" - Creates a shulker at the location of the structure block.
:: "Elytra" - Creates an item frame entity with an elytra item inside it at the location of the structure block.
:;Woodland mansion
::"ChestSouth" - Sets the loot table for a chest that replaces the structure block to "chests/woodland_mansion" and sets the loot table seed dependent on the world seed.
::"ChestNorth" - Sets the loot table for a chest that replaces the structure block to "chests/woodland_mansion" and sets the loot table seed dependent on the world seed.
::"ChestEast" - Sets the loot table for a chest that replaces the structure block to "chests/woodland_mansion" and sets the loot table seed dependent on the world seed.
::"ChestWest" - Sets the loot table for a chest that replaces the structure block to "chests/woodland_mansion" and sets the loot table seed dependent on the world seed.
::"Mage" - Creates an evoker at the location of the structure block.
::"Warrior" - Creates a vindicator at the location of the structure block.
:;Ocean Ruin
:: "chest" - Creates a chest at the location of the structure block, setting its loot table to either "chests/underwater_ruin_big" or "chests/underwater_ruin_small", with seed dependent on the world seed.
:: "drowned" - Creates a drowned at the location of the structure block.
:;Shipwreck
::"map_chest" - Sets the loot table for a chest that replaces the structure block to "chests/woodland_mansion" and sets the loot table seed dependent on the world seed.
::"treasure_chest" - Sets the loot table for a chest that replaces the structure block to "chests/woodland_mansion" and sets the loot table seed dependent on the world seed.
::"supply_chest" - Sets the loot table for a chest that replaces the structure block to "chests/woodland_mansion" and sets the loot table seed dependent on the world seed.
===3D Export===
 3D Export mode, is similar to save mode, but the structure is saved as a 3D render in the format of .glb rather than as an actual structure. Therefore, structures saved this way can be viewed with 3D Viewerhttps://apps.microsoft.com/store/detail/3d-viewer/9NBLGGH42THS or Paint 3Dhttps://apps.microsoft.com/store/detail/paint-3d/9NBLGGH5FV99, but cannot be generated via load mode.
The 3D file exported is basically the same as the real-time rendering in the preview. End portal blocks, nether portal blocks, etc. in .glb file have only a static texture. Some blocks cannot be displayed properly, such as piston arms, chests, beds, etc. Including entities is not supported in this mode.
Structure blocks in 3D output mode cannot be activated by redstone.
; Structure Name
:Enter the name of the structure. Case sensitive. The player must enter a file name in order to export.
;Relative Position
:Enter the X, Y, and Z values for the structure here, based on the position of the structure block. Sets the origin of the structure outline.
:Maximum allowed distance from the structure block is 64 blocks in any direction.
;Structure Size
:Enter the X, Y, and Z values to set the distance from the Relative Position coordinates. This sets the opposite corner of the structure, and defines its size.
:Maximum structure size is 64×256×64.
;Remove Blocks
;While exporting the structure, doesn't include any blocks within saved structure.
== Sounds ==
==Data values==
===ID===
:
:
===Block states=== 
Export Structure Block
===Block data===
A structure block also has a block entity associated with it.
:
:
:See Bedrock Edition level format/Block entity format.
==Video==
==History==
 
Darkblock.png|The first image of the then-mysterious structure block, as posted by Michael Stoyke.
SeargeMysteryImage.png|Another cryptic image by Searge; the structure block can be seen in the center of the image, as well as the hotbar.
SeargeMysteryImageBrightened.png|The previous image, brightened for clarity.
SeargeMysteryImageDots.png|Yet another of the cryptic images posted by Searge; note the structure block in the hotbar and several in the upper-right corner.
SeargeDotsSecretMessage.png|The secret message uncovered in the previous image with the use of an image-editing program.
SeargeMysteryImageDoor.png|Another mystery image.
SeargeMysteryImageBook.png|Yet another mystery image.
SeargeMysteryImages.png|The mystery images in sequence.
SeargeMysteryImageSideQuest.png|A "side quest" mystery image.
Structure_Block_1.png|Highlighting of the end city structures
Structure_Block_2.png|The structure block on the data mode in 1.9
Structure_Block_3.png|The interface in 1.9
Structure_Block_4.png|Highlighting of end city structures in save mode
Structure_Block_5.png|Highlighting of structures
New_block_1.10.jpg|Teaser screenshot of the 1.10 structure block textures.
ProfMobiusFossil.jpg|An image, tweeted by ProfMobius, of a structure block generating a fossil-like structure made of quartz.
==Issues==
==Gallery==
Structureblockcomparison.png|Comparison of Java Edition 1.9 and Java Edition 1.10 blank structure block textures.
StructureTree1.png|Selecting a tree on an island using Save and Corner structure blocks.
StructureTree2.png|Preparing to load the saved tree structure into an empty sunflower plains.
StructureTree3.png|Structure loaded.
InvisibleBlock1.17.png|A structure block showing invisible blocks.
Structure Block UIs.jpg|The UIs of different structure block types.
===Bedrock Edition===
File:Structure_Block_Bedrock_ClassicUI.png|The UI Interface for Bedrock Edition (Classic UI)
File:Structure_Block_Bedrock_PocketUI.png|The UI Interface for Bedrock Edition (Pocket UI)
==See also==
*Jigsaw Block
==Notes==
==References==
Category:Redstone mechanics
Category:Mechanisms
Category:Mechanics
Category:Block entities
de:Konstruktionsblock
fr:Bloc de structure
ja:ストラクチャーブロック
pl:Blok struktur
pt:Gerador de estruturas
ru:Структурный блок
zh:结构方块