/clone
In this tutorial, I will be showing you how to use the /clone command along with showing some example commands.
/clone <x1> <y1> <z1> <x2> <y2> <z2> <x> <y> <z> [maskMode] [cloneMode]
The /clone command seems really complicated at first however as long as you know how coordinates work you should understand it quite quickly.
The first three arguments is the first corner of the area you want to clone, it can be any corner but make sure your second point is the opposite corner.
Then go to the opposite corner and the next three arguments are the x,y and z or that corner.
/clone <x1> <y1> <z1> <x2> <y2> <z2> <x> <y> <z> [maskMode] [cloneMode]
The /clone command seems really complicated at first however as long as you know how coordinates work you should understand it quite quickly.
The first three arguments is the first corner of the area you want to clone, it can be any corner but make sure your second point is the opposite corner.
Then go to the opposite corner and the next three arguments are the x,y and z or that corner.
Here is what I will clone. The lapis blocks represent the two opposing corners.
Then we have another three arguments that are coordinates too, the location it will be clones to. The coordinates need to be the lower northwest corner (The smallest coordinates of each axis) of the destination region. You can if you want to, use relative coordinates to a specify a distance relative to the command's execution, but I am going to use a normal coordinate.
And as you can see, it worked! Now there is some other optional arguments. The first one being the mask mode. Mask mode specifies whether to filter the blocks being cloned. Here are the different types:
The other option after mask mode is clone mode. Clone mode specifies how to treat the original region. Here are the different types:
IF AND ONLY IF YOU USED THE FILTERED MASK MODE: You need to put a block id after it.
- filtered — Clone only blocks with the block id specified. I will tell you where to put this block id in a minute.
- masked — Copy only non-air blocks. Blocks in the destination region that would otherwise be overwritten by air are left unmodified.
- replace — Copy all blocks, overwriting all blocks in the destination with the blocks from the original region.
The other option after mask mode is clone mode. Clone mode specifies how to treat the original region. Here are the different types:
- force — Force the clone even if the origin and destination overlap.
- move — Clone the original region to the destination region, then replace the original region with air. When used in filtered mask mode, only the cloned blocks will be replaced with air.
- normal — Don't move or force.
IF AND ONLY IF YOU USED THE FILTERED MASK MODE: You need to put a block id after it.