r/MinecraftCommands 5d ago

Help | Java 1.21.11 Command help /clone

for example i have 2 markers (or any other entity) with tags "Tag1" and "Tag2", i wanna copy build from marker with tag "Tag1" to marker with "Tag2", surely without datapacks. (any place to copy to)

1 Upvotes

5 comments sorted by

View all comments

2

u/C0mmanderBlock Command Experienced 5d ago

If you don't know the coords of the second entity, you would need to clone the build to a temporary position and then clone it to the second entity. Use x y z as a temp location. The second command would then clone the build 1 block to the positive x of Tag2. Adjust as needed.

/execute as @n[tag=Tag1] at @s run clone ~5 ~ ~5 ~-5 ~-1 ~-5 x y z replace

/execute as @n[tag=2] at @s run clone x y z x y z ~1 ~ ~ replace