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 only blocks with the block id specified by.
 * Clones only blocks with the block id specified by.


 * 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.
 * Clones only blocks with the block id specified by.

Arguments

 * 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 lower northwest corner of the destination region.


 * lit. 'replace' or 'masked'
 * 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.


 * lit. 'force' or 'move' or 'normal'
 * 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 data to match when finding blocks to clone. Values that are invalid for the specified block id revert to 0. If, all blocks that match   are cloned.
 * It must be between -1 and 65535 (inclusive).
 * It must be between -1 and 65535 (inclusive).


 * Specifies the block states to use for the block.
 * It must be a Json list.
 * It must be a Json list.