Topic category: Help with Minecraft modding (Java Edition)
So in short, I have no idea how to target the player or to tp based on a global var if that's possible at all.
The way my blocks work is that they're redstone activated, preferably by connected button, it checks the global destination vars for another teleporter block and if it finds one, it stores its own location for the return trip and then it somehow has to tp or change the player's coordinates.
I know I can run a command like tp @p 0 0 0, but I don't think I can insert global vars for the destination.
Conversely I can't access the players position if the player is activating via redstone I think.
Anyone got any ideas on how to make this work, or should I rework this thing completely? Ideally I wanted it to be inset in the floor and activated while the player stands on top of it.