Arqade Asked on April 18, 2021
The /clone
command is used to clone structures from one location to another.
The /execute in
command is used to change the dimension the command is executed in.
Say I want to clone a block from the Overworld coordinates (0, 0, 0) to the Nether coordinates (12, 23, 34).
/execute in minecraft:overworld run clone 0 0 0 0 0 0 12 23 34
uses both coordinates in the Overworld.
/execute in minecraft:the_nether run clone 0 0 0 0 0 0 12 23 34
uses both coordinates in the Nether.
I need the (0, 0, 0) to be in the Overworld, and the (12, 23, 34) to be in the Nether.
How do I clone a structure between dimensions?
Structure blocks can probably accomplish this, but I would prefer an answer without one.
What i could see from the wiki the /clone command cannot send structures from one dimension to another.
Theoretically you could scan through all the blocks in the structure. and send the scan results in falling sand blocks to the other dimension (just make sure to place a block they can fall on) but this is far from instant and i'd use structure blocks.
You can save the structure to minecraft:autoclone (can be any namespace)
/setblock ~ ~ ~ minecraft:structure_block{mode:"SAVE",posY:1,name:"minecraft:autoclone",sizeY:10,sizeX:10,sizeZ:10,author:"<yourname>",showboundingbox:1b} destroy
and load it from there with almost the same command just switch it to "LOAD" mode
/setblock ~ ~ ~ minecraft:structure_block{mode:"LOAD",posY:1,name:"minecraft:autoclone",sizeY:10,sizeX:10,sizeZ:10,author:"<yourname>",showboundingbox:1b} destroy
and after each step you need to set a redstone block next to it the redstone block needs to be set twice for the structure to actually load
/setblock ~ ~ ~1 minecraft:redstone_block destroy
now just run these with the execute command in the dimension you need
/execute in minecraft:overworld run (setblock ..."SAVE"...)
/execute in minecraft:the_nether run (setblock ..."LOAD"...)
if the area isn't loaded you can use /forceload ~ ~ to force a chunk's loading
proof of concept
commands used in the video can be found from the video description
Answered by jklw10 on April 18, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP