Hi guys,
I'm making a functional TARDIS on my realms server. I'm using three scoreboard objectives as potential coordinates which can be changed by pushing buttons along the console. Then, when the player flips a lever, it teleports them to the selected coordinates.
However, I cannot for the life of me figure out how to use /tp with scoreboard variables as the coordinates.
Does anyone know how I can do this? I've tried countless syntaxes and hours of google search.
Thanks,
Gruntee
Hi guys,
I'm making a functional TARDIS on my realms server. I'm using three scoreboard objectives as potential coordinates which can be changed by pushing buttons along the console. Then, when the player flips a lever, it teleports them to the selected coordinates.
However, I cannot for the life of me figure out how to use /tp with scoreboard variables as the coordinates.
Does anyone know how I can do this? I've tried countless syntaxes and hours of google search.
Thanks,
Gruntee
You cannot replace command syntax with score values. The best you could do is have pre-determined coordinates that the player could teleport to instead of having them manually specify coordinates via scoreboards.
Awww Okay, well thanks for replying Have a good one!
I just had an idea. What if you had 3 scoreboard effects named X y and z all dummies. Then have an insane amount of command blocks testing for X from 0-whatever. Then same for y And z. I'll update this post soon with a video describing this idea.
If you somehow could get an entity to the right location via brute force or something (idea on that below), then you could spawn a command block minecart there that has ~ ~ ~ as coordinates.
You could get the entity there (probably an invincible no-gravity armor_stand) by having a command block line which compares the coordinates. It sends it 5 blocks up if the scoreboard y coordinate is greater than it's y coordinate, and so on.
I'm making a functional TARDIS on my realms server. I'm using three scoreboard objectives as potential coordinates which can be changed by pushing buttons along the console. Then, when the player flips a lever, it teleports them to the selected coordinates.
However, I cannot for the life of me figure out how to use /tp with scoreboard variables as the coordinates.
Does anyone know how I can do this? I've tried countless syntaxes and hours of google search.
Thanks,
Gruntee
You cannot replace command syntax with score values. The best you could do is have pre-determined coordinates that the player could teleport to instead of having them manually specify coordinates via scoreboards.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Okay, well thanks for replying
Have a good one!
Edit: Do you mean like this?
If you somehow could get an entity to the right location via brute force or something (idea on that below), then you could spawn a command block minecart there that has ~ ~ ~ as coordinates.
You could get the entity there (probably an invincible no-gravity armor_stand) by having a command block line which compares the coordinates. It sends it 5 blocks up if the scoreboard y coordinate is greater than it's y coordinate, and so on.