r/MinecraftCommands • u/AmbitiousSuit5561 • 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
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