
命令
/clone
将长方体区域内的方块复制到另一处,也可以复制到另一个维度。
| /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)] |
| 参数 | 值的类型 | 输入内容 |
|---|---|---|
| <begin> | 方块位置 | 源区域的一个角。 |
| <end> | 方块位置 | 源区域的对角。 |
| <destination> | 方块位置 | 复制到哪里:目标区域坐标最小的那个角。 |
| <filter> | 方块测试 | 对于 filtered:要复制的方块或方块标签,例如 minecraft:stone 或 #minecraft:logs,可附带方块状态和数据。 |
| <targetDimension> | 维度 | 要复制到的维度。 |
| <sourceDimension> | 维度 | 要从中复制的维度,例如 minecraft:overworld、minecraft:the_nether 或 minecraft:the_end。 |
| 权限等级 | 2:管理员、开启作弊的世界、命令方块和函数 |
| 适用于 | 开启作弊的单人游戏和多人游戏服务器。需要权限等级2(游戏管理员):服务器管理员、开启作弊的玩家、命令方块和函数都可以执行。 |
| 结果 | 提示“成功克隆”并附上方块数量。/execute store 保存的数字是在目标位置放置并更改的方块数量。 |
| 基本形式 | 前两个位置是源区域的两个对角。目标位置是新副本中x、y、z坐标最小的那个角。 |
| from和to | 在源角点前加“from”和维度,可从另一个维度复制;在目标前加“to”和维度,可复制到另一个维度。不带它们时,使用命令执行时所在的维度。 |
| replace | 复制所有方块,包括空气。这是默认值。 |
| masked | 只复制不是空气的方块,使来源中的空白区域不会清除目的地的方块。 |
| filtered | 只复制与给定方块或方块标签匹配的方块。 |
| normal | 默认值。源和目标在同一维度时不得重叠。 |
| force | 允许来源和目标区域重叠。 |
| move | 复制方块,然后将被复制的来源方块替换为空气。允许重叠。 |
| strict | 写在 replace、masked 或 filtered 之前,或单独使用。完全按复制的样子放置方块,不对被复制的方块及其相邻方块触发方块更新。 |
| 复制的内容 | 方块会保留其状态和内容(例如箱子中的物品),已计划的方块刻也会一并复制。 |
| 大小限制 | 源区域包含的方块数最多不得超过max_block_modifications游戏规则允许的数量,默认为32768。更大的区域会失败,并提示“指定区域内的方块过多”。 |
| 失败原因 | 如果两个区域重叠且没有使用force或move,如果任一区域未完全加载,或者目标处没有任何变化,则会失败(“未复制任何方块”)。 |
/clone 0 64 0 10 70 10 100 64 100将两个角之间的区域复制到从100 64 100开始的新位置。
/clone ~-5 ~ ~-5 ~5 ~10 ~5 ~20 ~ ~ masked沿x轴将你周围的方块复制到25格之外,跳过空气。
/clone 0 64 0 10 70 10 0 80 0 replace move将区域向上移动,并在原位置留下:空气。
/clone 0 64 0 10 70 10 100 64 100 filtered minecraft:stone只复制区域内是石头的方块。
/clone from minecraft:overworld 0 64 0 10 70 10 to minecraft:the_nether 0 64 0将主世界的一块区域复制到该维度:下界。
/clone 0 64 0 10 70 10 5 64 0 replace force将区域复制到与来源重叠的目的地。




