Minecraft:Commands/structure: Difference between revisions
From SAS Gaming Wiki
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft Tag: Manual revert |
||
| Line 1: | Line 1: | ||
{{for|the command {{ | {{for|the command {{in|java}} that can place structures|Commands/place}} | ||
{{ | {{exclusive|bedrock|education}} | ||
{{Infobox command | {{Infobox command | ||
|name=structure | |name=structure | ||
| Line 7: | Line 7: | ||
}} | }} | ||
Used to save and load structures without having to use structure | Used to save and load structures without having to use [[Minecraft:structure block]]s. | ||
==Syntax== | ==Syntax== | ||
| Line 21: | Line 21: | ||
==Arguments== | ==Arguments== | ||
{{ | {{main|Structure Block}} | ||
{{ | {{argument|be=1|name: string|basic_string}} | ||
: {{ | : {{arg desc|be=basic_string}} | ||
: Should be in the format of <code>name</code> or <code>namespace:name</code>. If namespace is unspecified, defaults to <code>mystructure:</code> | : Should be in the format of <code>name</code> or <code>namespace:name</code>. If namespace is unspecified, defaults to <code>mystructure:</code> | ||
{{ | {{argument|be=1|from: x y z|CommandPosition}} and {{argument|be=1|to: x y z|CommandPosition}} (in <code>save</code> mode) | ||
: Specifies any two opposing corner blocks of the region to be saved. | : Specifies any two opposing corner blocks of the region to be saved. | ||
: {{ | : {{arg desc|be=CommandPosition}} | ||
{{ | {{argument|be=1|to: x y z|CommandPosition}} (in <code>load</code> mode) | ||
: Specifies the lower northwest corner of the destination region. | : Specifies the lower northwest corner of the destination region. | ||
: {{ | : {{arg desc|be=CommandPosition}} | ||
{{ | {{argument|be=1|saveMode: StructureSaveMode|enum}} | ||
: Specifies the storage location. | : Specifies the storage location. | ||
: Must be one of <code>disk</code> and <code>memory</code>. If not specified, defaults to memory. | : Must be one of <code>disk</code> and <code>memory</code>. If not specified, defaults to memory. | ||
| Line 41: | Line 41: | ||
:<code>memory</code> only saves the structure in memery temporarily. When leaving and rejoining the world, the structure save files are gone. | :<code>memory</code> only saves the structure in memery temporarily. When leaving and rejoining the world, the structure save files are gone. | ||
{{ | {{argument|be=1|includeEntities: Boolean|enum}} | ||
: Specifies whether including entities or not. If unspecified, defaults to <code>true</code>. | : Specifies whether including entities or not. If unspecified, defaults to <code>true</code>. | ||
: {{ | : {{arg desc|be=bool}} | ||
{{ | {{argument|be=1|rotation: Rotation|enum}} | ||
: Specifies the rotation when loading a structure. If unspecified, defaults to <code>0_degrees</code>. | : Specifies the rotation when loading a structure. If unspecified, defaults to <code>0_degrees</code>. | ||
: Must be one of <code>0_degrees</code>, <code>90_degrees</code>, <code>180_degrees</code>, and <code>270_degrees</code>. | : Must be one of <code>0_degrees</code>, <code>90_degrees</code>, <code>180_degrees</code>, and <code>270_degrees</code>. | ||
{{ | {{argument|be=1|mirror: Mirror|enum}} | ||
: Specifies the axis of mirror flip when loading a structure. If unspecified, defaults to <code>none</code>. | : Specifies the axis of mirror flip when loading a structure. If unspecified, defaults to <code>none</code>. | ||
: Must be one of <code>x</code>, <code>z</code>, <code>xz</code>, and <code>none</code>. | : Must be one of <code>x</code>, <code>z</code>, <code>xz</code>, and <code>none</code>. | ||
{{ | {{argument|be=1|animationMode: StructureAnimationMode|enum}} | ||
: Specifies the animation to generate structures. | : Specifies the animation to generate structures. | ||
: Must be one of <code>block_by_block</code> and <code>layer_by_layer</code>. | : Must be one of <code>block_by_block</code> and <code>layer_by_layer</code>. | ||
{{ | {{argument|be=1|animationSeconds: float|float}} | ||
: Specifies the duration of the animation. | : Specifies the duration of the animation. | ||
: {{ | : {{arg desc|be=float}} | ||
{{ | {{argument|be=1|includeBlocks: Boolean|enum}} | ||
: Specifies whether including blocks or not. If unspecified, defaults to <code>true</code>. | : Specifies whether including blocks or not. If unspecified, defaults to <code>true</code>. | ||
: {{ | : {{arg desc|be=bool}} | ||
{{ | {{argument|be=1|integrity: float|float}} | ||
: Specifies the integrity (probability of each block being loaded). If 100, all blocks in the structure are loaded. If 0, no blocks are loaded. If unspecified, defaults to <code>100</code>. | : Specifies the integrity (probability of each block being loaded). If 100, all blocks in the structure are loaded. If 0, no blocks are loaded. If unspecified, defaults to <code>100</code>. | ||
: {{ | : {{arg desc|be=float}} Should be between 0 and 100 (inclusive). | ||
{{ | {{argument|be=1|seed: string|basic_string}} | ||
: Specifies the seed when calculating whether a block should be loaded according to integrity. If unspecified, a random seed is taken. | : Specifies the seed when calculating whether a block should be loaded according to integrity. If unspecified, a random seed is taken. | ||
: {{ | : {{arg desc|be=basic_string}} | ||
{{ | {{argument|be=1|waterlogged: Boolean|enum}} | ||
:Specifies whether or not waterlog the blocks when the structure is loaded in water. If unspecified, defaults to <code>false</code>. | :Specifies whether or not waterlog the blocks when the structure is loaded in water. If unspecified, defaults to <code>false</code>. | ||
: {{ | : {{arg desc|be=bool}} | ||
==Result== | ==Result== | ||
| Line 90: | Line 90: | ||
==Output== | ==Output== | ||
{{ | {{Output table|onlybe=1}} | ||
{{ | {{Output table|edition=be|On fail|0}} | ||
{{ | {{Output table|On success|1}} | ||
{{ | {{Output table}} | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|bedrock}} | ||
|{{HistoryLine||1.16.100|dev=beta 1.16.100.52|Added {{ | |{{HistoryLine||1.16.100|dev=beta 1.16.100.52|Added {{cmd|structure|link=none}}.}} | ||
|{{ | |{{HistoryLine|||dev=beta 1.16.100.60|Added the ability to animate the placement of a structure.}} | ||
|{{HistoryLine||1.16.210|dev=beta 1.16.210.54|{{ | |{{HistoryLine||1.16.210|dev=beta 1.16.210.54|{{cmd|structure|link=none}} now has the ability to delete saved structure files.}} | ||
}} | }} | ||
| Line 109: | Line 109: | ||
== Navigation == | == Navigation == | ||
{{ | {{Navbox commands}} | ||
de:Befehl/structure | [[Minecraft:de:Befehl/structure]] | ||
es:Comandos/structure | [[Minecraft:es:Comandos/structure]] | ||
ja:コマンド/structure | [[Minecraft:ja:コマンド/structure]] | ||
pt:Comandos/structure | [[Minecraft:pt:Comandos/structure]] | ||
ru:Команды консоли/structure | [[Minecraft:ru:Команды консоли/structure]] | ||
zh:命令/structure | [[Minecraft:zh:命令/structure]] | ||
Latest revision as of 11:04, 14 April 2026
Template:For Template:Exclusive Template:Infobox command
Used to save and load structures without having to use Minecraft:structure blocks.
Syntax
structure save <name: string> <from: x y z> <to: x y z> [saveMode: StructureSaveMode]structure save <name: string> <from: x y z> <to: x y z> [includeEntities: Boolean] [saveMode: StructureSaveMode] [includeBlocks: Boolean]- Saves a structure.
structure load <name: string> <to: x y z> [rotation: Rotation] [mirror: Mirror] [includeEntities: Boolean] [includeBlocks: Boolean] [waterlogged: Boolean] [integrity: float] [seed: string]structure load <name: string> <to: x y z> [rotation: Rotation] [mirror: Mirror] [animationMode: StructureAnimationMode] [animationSeconds: float] [includeEntities: Boolean] [includeBlocks: Boolean] [waterlogged: Boolean] [integrity: float] [seed: string]- Loads a structure.
structure delete <name: string>- Deletes saved structure file.
Arguments
- Template:Arg desc
- Should be in the format of
nameornamespace:name. If namespace is unspecified, defaults tomystructure:
Template:Argument and Template:Argument (in save mode)
- Specifies any two opposing corner blocks of the region to be saved.
- Template:Arg desc
Template:Argument (in load mode)
- Specifies the lower northwest corner of the destination region.
- Template:Arg desc
- Specifies the storage location.
- Must be one of
diskandmemory. If not specified, defaults to memory. disksaves the structure to the world database itself. After leaving and rejoining the world, the structure save files is still there.memoryonly saves the structure in memery temporarily. When leaving and rejoining the world, the structure save files are gone.
- Specifies whether including entities or not. If unspecified, defaults to
true. - Template:Arg desc
- Specifies the rotation when loading a structure. If unspecified, defaults to
0_degrees. - Must be one of
0_degrees,90_degrees,180_degrees, and270_degrees.
- Specifies the axis of mirror flip when loading a structure. If unspecified, defaults to
none. - Must be one of
x,z,xz, andnone.
- Specifies the animation to generate structures.
- Must be one of
block_by_blockandlayer_by_layer.
- Specifies the duration of the animation.
- Template:Arg desc
- Specifies whether including blocks or not. If unspecified, defaults to
true. - Template:Arg desc
- Specifies the integrity (probability of each block being loaded). If 100, all blocks in the structure are loaded. If 0, no blocks are loaded. If unspecified, defaults to
100. - Template:Arg desc Should be between 0 and 100 (inclusive).
- Specifies the seed when calculating whether a block should be loaded according to integrity. If unspecified, a random seed is taken.
- Template:Arg desc
- Specifies whether or not waterlog the blocks when the structure is loaded in water. If unspecified, defaults to
false. - Template:Arg desc
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table
History
External links
Minecraft:de:Befehl/structure Minecraft:es:Comandos/structure Minecraft:ja:コマンド/structure Minecraft:pt:Comandos/structure Minecraft:ru:Команды консоли/structure Minecraft:zh:命令/structure