Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/clone

Command

/clone

Copies the blocks in a box-shaped area to another place, optionally in another dimension.

Syntax

/clone <begin> <end> <destination>
/clone <begin> <end> <destination> filtered <filter> [(force|move|normal)]
/clone <begin> <end> <destination> (masked|replace) [(force|move|normal)]
/clone <begin> <end> <destination> strict
/clone <begin> <end> <destination> strict filtered <filter> [(force|move|normal)]
/clone <begin> <end> <destination> strict (masked|replace) [(force|move|normal)]
/clone <begin> <end> to <targetDimension> <destination>
/clone <begin> <end> to <targetDimension> <destination> filtered <filter> [(force|move|normal)]
/clone <begin> <end> to <targetDimension> <destination> (masked|replace) [(force|move|normal)]
/clone <begin> <end> to <targetDimension> <destination> strict
/clone <begin> <end> to <targetDimension> <destination> strict filtered <filter> [(force|move|normal)]
/clone <begin> <end> to <targetDimension> <destination> strict (masked|replace) [(force|move|normal)]
/clone from <sourceDimension> <begin> <end> <destination>
/clone from <sourceDimension> <begin> <end> <destination> filtered <filter> [(force|move|normal)]
/clone from <sourceDimension> <begin> <end> <destination> (masked|replace) [(force|move|normal)]
/clone from <sourceDimension> <begin> <end> <destination> strict
/clone from <sourceDimension> <begin> <end> <destination> strict filtered <filter> [(force|move|normal)]
/clone from <sourceDimension> <begin> <end> <destination> strict (masked|replace) [(force|move|normal)]
/clone from <sourceDimension> <begin> <end> to <targetDimension> <destination>
/clone from <sourceDimension> <begin> <end> to <targetDimension> <destination> filtered <filter> [(force|move|normal)]
/clone from <sourceDimension> <begin> <end> to <targetDimension> <destination> (masked|replace) [(force|move|normal)]
/clone from <sourceDimension> <begin> <end> to <targetDimension> <destination> strict
/clone from <sourceDimension> <begin> <end> to <targetDimension> <destination> strict filtered <filter> [(force|move|normal)]
/clone from <sourceDimension> <begin> <end> to <targetDimension> <destination> strict (masked|replace) [(force|move|normal)]

Arguments

ArgumentKind of valueWhat to type
<begin>Block positionOne corner of the source area.
<end>Block positionThe opposite corner of the source area.
<destination>Block positionWhere the copy goes: the corner of the destination area with the lowest coordinates.
<filter>Block testFor filtered: the block or block tag to copy, for example minecraft:stone or #minecraft:logs, optionally with block states and data.
<targetDimension>DimensionThe dimension to copy into.
<sourceDimension>DimensionThe dimension to copy from, for example minecraft:overworld, minecraft:the_nether, or minecraft:the_end.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inSingleplayer with cheats enabled and multiplayer servers. Needs permission level 2 (gamemasters): server operators, players with cheats, command blocks, and functions can all run it.
ResultReports "Successfully cloned" with the number of blocks. The number /execute store saves is the number of blocks that were placed and changed at the destination.
Basic formThe first two positions are opposite corners of the source area. The destination is the corner of the new copy with the lowest x, y, and z coordinates.
from and toPut "from" and a dimension before the source corners to copy out of another dimension, and "to" and a dimension before the destination to copy into another dimension. Without them, the dimension the command runs in is used.
replaceCopies every block, including Air. This is the default.
maskedCopies only blocks that are not Air, so empty space in the source does not erase blocks at the destination.
filteredCopies only blocks that match the given block or block tag.
normalThe default. The source and destination must not overlap when they are in the same dimension.
forceAllows the source and destination to overlap.
moveCopies the blocks and then replaces the copied source blocks with Air. Overlapping is allowed.
strictWritten before replace, masked, or filtered, or on its own. Places the blocks exactly as copied, without block updates for the copied blocks or their neighbors.
What is copiedBlocks keep their states and contents, such as the items in a Chest, and scheduled block ticks are copied as well.
Size limitThe source area may contain at most as many blocks as the max_block_modifications game rule allows, which is 32768 by default. Larger areas fail with "Too many blocks in the specified area".
Failure reasonsFails if the areas overlap without force or move, if either area is not fully loaded, or if nothing changed at the destination ("No blocks were cloned").

Examples

/clone 0 64 0 10 70 10 100 64 100

Copies the area between the two corners to a new spot starting at 100 64 100.

/clone ~-5 ~ ~-5 ~5 ~10 ~5 ~20 ~ ~ masked

Copies the blocks around you 25 blocks along x, skipping Air.

/clone 0 64 0 10 70 10 0 80 0 replace move

Moves the area up, leaving Air where it was.

/clone 0 64 0 10 70 10 100 64 100 filtered minecraft:stone

Copies only the Stone blocks from the area.

/clone from minecraft:overworld 0 64 0 10 70 10 to minecraft:the_nether 0 64 0

Copies an Overworld area into the Nether.

/clone 0 64 0 10 70 10 5 64 0 replace force

Copies the area onto a destination that overlaps the source.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)