How Do I Use /scoreboard To Change Clone or Tp Coordinates

How Do I Use /scoreboard To Change Clone or Tp Coordinates - Free stock photo of adult, africa, business

I don't really know how to explain this, but here goes. I'm working on a map. I have a huge 20x1x200 area, and I'm cloning it into a 20x1x20 area. The command goes a little like this:

/clone 12 104 -55 14 124 -91 46 121 24

then

/clone 12 104 -54 14 124 -90 46 121 24

then

/clone 12 104 -53 14 124 -89 46 121 24

And so on. Is there someway to do this with a couple of Command blocks? I'm not really in the mood to paste this into 250 command blocks.

Hope you guys understand, any help would be greatly appreciated!



Best Answer

This is both possible and a late answer.

I don't know too much about it, but I believe you can use /execute. This will run the command from the perspective of an entity, so the relative coordinates will be centred on the entity, rather than the source from which the command was run.

Something like this should work, replacing the coordinates and removing the brackets: /execute @p ~ ~ ~ clone (<x1> <y1> <z1>) (<x2> <y2> <z2>) (<x3> <y3> <z3>)

So, for the final set of coordinates (x3,y3 and z3), you can use the ~ to clont relative to the player




Pictures about "How Do I Use /scoreboard To Change Clone or Tp Coordinates"

How Do I Use /scoreboard To Change Clone or Tp Coordinates - Woman Carrying a Medicine Labelled Cardboard Boxes Behind a White Van
How Do I Use /scoreboard To Change Clone or Tp Coordinates - Unpacked boxes in middle of room
How Do I Use /scoreboard To Change Clone or Tp Coordinates - Crop man packing carton box with scotch tape dispenser





How to Teleport to Scoreboard Values (Minecraft 1.16)




More answers regarding how Do I Use /scoreboard To Change Clone or Tp Coordinates

Answer 2

Your approach for cloning on a massive scale isn't the best idea. Instead, you should use structures. They can be completely relative to an entity. But going from the idea to move the whole scene, I think it would be better to keep the scene where it is and move the player instead.

So you simply have a command

/tp @p ~0.1 ~ ~

And another command to move a character on the scene (like the bird) and if you want to simulate Flappy Bird, you can now just tp the bird downwards.

/tp @e[tag=bird] ~0.1 ~-0.1 ~

To fly up you can use this command

execute @p[score_jump_min=1] ~ ~ ~ tp @e[tag=bird] ~ ~5 ~

The physics of this wouldn't be perfect, but you get the idea.

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

Images: RODNAE Productions, RODNAE Productions, Ketut Subiyanto, Ketut Subiyanto