Current command syntax:
/clone […] <begin> <end> […] <destination> […]
Proposed command syntax:
/clone […] <begin> <end> […] <destination begin> [<destination end>] […]
Behavior:
If destination end isn't specified, the command runs as before
If the cuboid defined by destination begin and destination end is smaller than the cuboid defined by begin and end in any direction, then the cloned region is clipped up to destination end in that directions
If the cuboid defined by destination begin and destination end is bigger than the cuboid defined by begin and end in any direction, then the cloned region is tiled up to destination end in that directions
Clipping is already achievable with the current implementation by just selecting a smaller source region, but this approach lacks flexibility when the region is defined dynamically using macros
This gives more vanilla world edit functionality
Examples:
# Suppose the source is 3×1×3 made from stone 🔲, dirt 🟫, and grass 🟩
# 🔲🟫🔲 ↑
# 🟫🟩🟫 z
# 🔲🟫🔲 x→
/clone ~ ~ ~ ~2 ~ ~2 ~4 ~ ~
# 🔲🟫🔲 🔲🟫🔲
# 🟫🟩🟫 🟫🟩🟫
# 🔲🟫🔲 🔲🟫🔲
/clone ~ ~ ~ ~2 ~ ~2 ~4 ~ ~ ~9 ~ ~2
# 🔲🟫🔲 🔲🟫🔲🔲🟫🔲
# 🟫🟩🟫 🟫🟩🟫🟫🟩🟫
# 🔲🟫🔲 🔲🟫🔲🔲🟫🔲
/clone ~ ~ ~ ~2 ~ ~2 ~4 ~ ~ ~10 ~ ~1
# 🔲🟫🔲
# 🟫🟩🟫 🟫🟩🟫🟫🟩🟫🟫
# 🔲🟫🔲 🔲🟫🔲🔲🟫🔲🔲
# 🟩🟩🟩
# → 🟩🟩🟩
# 🟩 🟩🟩🟩
# Previously:
/clone ~ ~ ~ ~ ~ ~ ~1 ~ ~
/clone ~ ~ ~ ~ ~ ~ ~2 ~ ~
/clone ~ ~ ~ ~2 ~ ~ ~ ~ ~1
/clone ~ ~ ~ ~2 ~ ~ ~ ~ ~2
# Now:
/clone ~ ~ ~ ~ ~ ~ ~ ~ ~ ~2 ~ ~2 force
Please sign in to leave a comment.
0 Comments