跳转到内容
WikilyWIKILY
全部游戏23 个 Wiki · 选择你的游戏
命令与作弊所有命令

切换游戏

23 个 Wiki · 选择你的游戏
/clone

命令

/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

将区域复制到与来源重叠的目的地。

加入创作者社区建设 Minecraft Java Edition Wiki 的伙伴们都在我们的 Discord。欢迎提问或推荐页面。加入 Discord (在新标签页打开 Discord)