Commands/clone

Clones blocks from one region to another.

Syntax

 * Java Edition
 * Clones all blocks or only non-air blocks.
 * Clones only blocks with the block id specified by.
 * Clones all blocks or only non-air blocks.
 * Clones only blocks with the block id specified by.
 * Clones all blocks or only non-air blocks.
 * Clones only blocks with the block id specified by.
 * Clones all blocks or only non-air blocks.
 * Clones only blocks with the block id specified by.
 * Clones only blocks with the block id specified by.


 * Syntax displayed in various ways
 * {| class="collapsible collapsed collapse-button-none" data-description="simple_tree"

! style="text-align:left" | Simplified tree:


 * }
 * {| class="collapsible collapsed collapse-button-none" data-description="maximised_tree"

! style="text-align:left" | Maximised:


 * }


 * Bedrock Edition
 * Clones all blocks or only non-air blocks.
 * Clones only blocks with the block id specified by.
 * Clones only blocks with the block id specified by.
 * Clones only blocks with the block id specified by.

Arguments

 * Specifies the dimension to clone the blocks from. If unspecified, defaults to current execution dimension.
 * Specifies the dimension to clone the blocks from. If unspecified, defaults to current execution dimension.


 * and
 * and
 * Specifies the coordinates of two opposing corner blocks of the source region.
 * 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,  has a 1-block volume, and   and   both identify the same region with an 8-block volume.
 * 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,  has a 1-block volume, and   and   both identify the same region with an 8-block volume.


 * Specifies the dimension to clone the blocks to. If unspecified, defaults to current execution dimension.
 * Specifies the dimension to clone the blocks to. If unspecified, defaults to current execution dimension.


 * Specifies the lower northwest corner of the destination region.


 * replace
 * Specifies whether to filter the blocks being cloned. Must be one of the following:
 * — Copy all blocks, overwriting all blocks of the destination region with the blocks from the source region.
 * — Copy only non-air blocks. Blocks in the destination region that would otherwise be overwritten by air are left unmodified.
 * If unspecified, defaults to.
 * If unspecified, defaults to.


 * force
 * Specifies how to treat the source region. Must be one of the following:
 * — Force the clone even if the source and destination regions overlap.
 * — 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.
 * — Don't move or force.
 * If unspecified, defaults to.
 * If unspecified, defaults to.


 * Specifies the block id to copy in  mode.


 * Specifies the block states to use for the block.
 * Specifies the block states to use for the block.