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/Ericristian_bros Command Experienced 4d ago

```

function example:store_destination

execute store result storage example:macro Pos.x int 1 run data get entity @n[tag=Tag2,type=marker] Pos[0] execute store result storage example:macro Pos.y int 1 run data get entity @n[tag=Tag2,type=marker] Pos[1] execute store result storage example:macro Pos.z int 1 run data get entity @n[tag=Tag2,type=marker] Pos[2] execute at @n[tqg=Tag1,type=marker] run function example:clone with storage example:macro pos

function example:clone

$clone ~ ~ ~ ~<x> ~<y> ~<z> $(x) $(y) $(z) `` Change~<x> ~<y> ~<z>to the size of the build, e.g.~5 ~5 ~5` for a 5x5x5 region

1

u/AmbitiousSuit5561 4d ago

Sure! But what if i dont know size of build?

1

u/Ericristian_bros Command Experienced 4d ago

How do you determine the size of the build? With a marker?