Is there a way to clone relative coordinates of a player and the command block? [duplicate]

Is there a way to clone relative coordinates of a player and the command block? [duplicate] - Drone view of modern buildings located in rows between roads in suburb of contemporary town on daytime

enter image description hereIs there a way to clone with the relative coordinates of a player and the command block? I am trying to make a "one-command-creation" with those two things. I am in 1.12. Like /clone {Relative coords of command block} {Relative coords of player}



Best Answer

To clone an area from one variable location to another location, you can first clone it to some coordinates you know, then from there to where you want to have it and then delete the middle copy. So for example to clone a 10x10x10 area with the player Horst as the lowest x, y and z coordinate to another area with the player Herbert as the lowest x, y and z coordinate you can use the following commands: /execute at @p[name=Horst] run clone ~ ~ ~ ~9 ~9 ~9 0 245 0 /execute at @p[name=Herbert] run clone 0 245 0 9 254 9 ~ ~ ~ /fill 0 245 0 9 254 9 air

Keep in mind that you delete everything in the area from 0 254 0 to 9 254 9, so make sure to choose an area with nothing (important) in it.




Pictures about "Is there a way to clone relative coordinates of a player and the command block? [duplicate]"

Is there a way to clone relative coordinates of a player and the command block? [duplicate] - Happy grandmother sitting on floor with Asian boy and girl while playing with wooden blocks and building tower in living room near window
Is there a way to clone relative coordinates of a player and the command block? [duplicate] - From above of Asian boy and girl playing with wooden blocks near window on floor in living room with grandmother
Is there a way to clone relative coordinates of a player and the command block? [duplicate] - Back view of faceless multiracial friends with backpacks blocking way for Latin American classmate



How do you use command blocks to clone?

You can also use a map to see other players, but other players can see you as well. Also, you can't get their exact coordinates. If you are targeting a specific player in a command, simply type their name on the <Player> tag or do @p for nearest player, @r for random player or @a for all players.

How do you find other peoples coordinates in Minecraft?

To copy the entirety of a certain Command block or Text press Ctrl+A to select it all then Ctrl+C to copy it. Might be quicker than pressing shift and going over 280 characters. Oh and after you hit Ctrl+A you can use shift+Left or Right Arrow Key to adjust what is selected.

Can you duplicate command blocks?

If a player use the teleport command with the command block, one can use relative coordinates in the destination coordinates by placing an ~ in front of a coordinate (e.g. code: /teleport @p ~ ~8 ~ . This would teleport the player 8 blocks into the air).



EASIEST COMMAND BLOCK PLAYER KILLER | How To




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Kelly, Alex Green, Alex Green, Keira Burton