Having difficulty setting up my teleporters

Started by AstraVelious on

Topic category: Help with modding (Java Edition)

Last seen on 02:13, 15. Apr 2023
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Having difficulty setting up my teleporters

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.