Minecraft:Commands/clone: Difference between revisions
More actions
Remove broken links to missing pages |
Sync: updated from Minecraft |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
* 2 {{only|java|short=1}} | * 2 {{only|java|short=1}} | ||
* 1 {{only|bedrock|short=1}} | * 1 {{only|bedrock|short=1}} | ||
|others=Cheat only{{only|bedrock|short=1}} | |others=[[Minecraft:Cheat]] only{{only|bedrock|short=1}} | ||
}} | }} | ||
| Line 109: | Line 109: | ||
{{el|be|short=1}}: {{argument|be=1|blockStates: block states|BlockStateCommandParam}} | {{el|be|short=1}}: {{argument|be=1|blockStates: block states|BlockStateCommandParam}} | ||
: Specifies the block states to use for the block. | : Specifies the [[Minecraft:block states]] to use for the block. | ||
: {{Arg desc|be=BlockStateCommandParam}} | : {{Arg desc|be=BlockStateCommandParam}} | ||
| Line 139: | Line 139: | ||
== History == | == History == | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
| Line 159: | Line 157: | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|pocket alpha}} | |{{HistoryLine|pocket alpha}} | ||
|{{HistoryLine||v0.16.0|dev=build 1|Added {{cmd|clone|link=none}}.|Functionality is almost equivalent to Java Edition 1.10 usage, except {{cmd|clone|link=none}} cannot use {{cd|forced}} cloneMode.}} | |{{HistoryLine||v0.16.0|dev=build 1|Added {{cmd|clone|link=none}}.|Functionality is almost equivalent to [[Minecraft:Java Edition 1.10]] usage, except {{cmd|clone|link=none}} cannot use {{cd|forced}} cloneMode.}} | ||
|{{HistoryLine|bedrock}} | |{{HistoryLine|bedrock}} | ||
|{{HistoryLine||1.16.210|dev=beta 1.16.210.53|Added block state support to {{cmd|clone|link=none}}.}} | |{{HistoryLine||1.16.210|dev=beta 1.16.210.53|Added [[Minecraft:block state]] support to {{cmd|clone|link=none}}.}} | ||
|{{HistoryLine|||dev=beta 1.16.210.57|Cloning a block of the same type is no longer treated as a failed operation.}} | |{{HistoryLine|||dev=beta 1.16.210.57|Cloning a block of the same type is no longer treated as a failed operation.}} | ||
|{{HistoryLine||1.18.0|dev=?|The limit volume of {{cmd|clone|link=none}} is 655360 now, instead of 524288.}} | |{{HistoryLine||1.18.0|dev=?|The limit volume of {{cmd|clone|link=none}} is 655360 now, instead of 524288.}} | ||
| Line 169: | Line 167: | ||
== References == | == References == | ||
{{Reflist}} | |||
== See also == | == See also == | ||
| Line 181: | Line 179: | ||
{{Navbox commands}} | {{Navbox commands}} | ||
de:Befehl/clone | [[Minecraft:de:Befehl/clone]] | ||
es:Comandos/clone | [[Minecraft:es:Comandos/clone]] | ||
ja:コマンド/clone | [[Minecraft:ja:コマンド/clone]] | ||
ko:명령어/clone | [[Minecraft:ko:명령어/clone]] | ||
pt:Comandos/clone | [[Minecraft:pt:Comandos/clone]] | ||
ru:Команды консоли/clone | [[Minecraft:ru:Команды консоли/clone]] | ||
uk:Команди консолі/clone | [[Minecraft:uk:Команди консолі/clone]] | ||
zh:命令/clone | [[Minecraft:zh:命令/clone]] | ||
Latest revision as of 11:08, 7 October 2026
Clones Minecraft:blocks from one region to another.
Syntax
- Java Edition
clone . . .clone from <sourceDimension> . . .... <begin> <end> . . .... <destination> . . .... to <targetDimension> <destination> . . .... [strict] [replace] [force|move|normal]- Clones all blocks.
... [strict] masked [force|move|normal]- Clones non-Minecraft:air blocks.
... [strict] filtered <filter> [force|move|normal]- Clones only blocks with the block id specified by
<filter>.
- Clones only blocks with the block id specified by
- Syntax displayed in various ways
Simplified tree: clone <begin> <end> . . .clone from <sourceDimension> <begin> <end> . . .... <destination> . . .... to <targetDimension> <destination> . . .... [strict] [replace|masked] [force|move|normal]... [strict] filtered <filter> [force|move|normal]
Maximised: clone <begin> <end> <destination>clone from <sourceDimension> <begin> <end> <destination>clone <begin> <end> <destination> replace [force|move|normal]clone from <sourceDimension> <begin> <end> <destination> replace [force|move|normal]clone <begin> <end> <destination> masked [force|move|normal]clone from <sourceDimension> <begin> <end> <destination> masked [force|move|normal]clone <begin> <end> <destination> filtered <filter> [force|move|normal]clone from <sourceDimension> <begin> <end> <destination> filtered <filter> [force|move|normal]clone <begin> <end> to <targetDimension> <destination>clone from <sourceDimension> <begin> <end> to <targetDimension> <destination>clone <begin> <end> to <targetDimension> <destination> replace [force|move|normal]clone from <sourceDimension> <begin> <end> to <targetDimension> <destination> replace [force|move|normal]clone <begin> <end> to <targetDimension> <destination> masked [force|move|normal]clone from <sourceDimension> <begin> <end> to <targetDimension> <destination> masked [force|move|normal]clone <begin> <end> to <targetDimension> <destination> filtered <filter> [force|move|normal]clone from <sourceDimension> <begin> <end> to <targetDimension> <destination> filtered <filter> [force|move|normal]
- Bedrock Edition
clone <begin: x y z> <end: x y z> <destination: x y z> [maskMode: MaskMode] [cloneMode: CloneMode]- Clones all blocks or only non-air blocks.
clone <begin: x y z> <end: x y z> <destination: x y z> filtered <cloneMode: CloneMode> <tileName: Block> [blockStates: block states]- Clones only blocks with the block id specified by
<tileName: Block>.
- Clones only blocks with the block id specified by
Arguments
Template:El: Template:Argument
- Specifies the dimension to clone the blocks from. If unspecified, defaults to current execution dimension.
- Template:Arg desc
Template:El: Template:Argument and Template:Argument
Template:El: Template:Argument and Template:Argument
- Specifies the coordinates of two opposing corner blocks of the source region.
- Template:Arg desc
- Block position is the coordinates of the point at the lower northwest corner of a block. Because of this, the lesser coordinates of each axis falls right on the region boundary, but the greater coordinates are one block from the boundary, and the block volume of the source region is (xgreater - xlesser + 1) × (ygreater - ylesser + 1) × (zgreater - zlesser + 1). For example,
0 0 0 0 0 0has a 1-block volume, and0 0 0 1 1 1and1 1 1 0 0 0both identify the same region with an 8-block volume.
Template:El: Template:Argument
- Specifies the dimension to clone the blocks to. If unspecified, defaults to current execution dimension.
- Template:Arg desc
- Specifies the lower northwest corner of the destination region.
- Template:Arg desc
Template:El: Template:Code and Template:Code
Template:El: Template:Argument
- Specifies whether to filter the blocks being cloned. Must be one of the following:
replace— Copy all blocks, overwriting all blocks of the destination region with the blocks from the source region.masked— Copy only non-air blocks. Blocks in the destination region that would otherwise be overwritten by air are left unmodified.
- If unspecified, defaults to
replace.
- Makes the command place blocks as-is without triggering block updates and shape updates.
Template:El: Template:Code
Template:El: Template:Argument
- Specifies how to treat the source region. Must be one of the following:
force— Force the clone even if the source and destination regions overlap.move— Clone the source region to the destination region, then replace the source region with air. When used in filtered mask mode, only the cloned blocks are replaced with air.normal— Don't move or force.
- If unspecified, defaults to
normal.
- Specifies the block id to copy in
filteredmode. - Template:Arg desc
Template:El: Template:Argument
- Specifies the Minecraft:block states to use for the block.
- 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 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 Template:Output table Template:Output table
History
Java Edition
Bedrock Edition
References
See also
- Template:Cmd – fill a region with a block.
External links
Minecraft:de:Befehl/clone Minecraft:es:Comandos/clone Minecraft:ja:コマンド/clone Minecraft:ko:명령어/clone Minecraft:pt:Comandos/clone Minecraft:ru:Команды консоли/clone Minecraft:uk:Команди консолі/clone Minecraft:zh:命令/clone