Teleport player to player across dimension

Started by Plainside on

Topic category: Help with modding (Java Edition)

Last seen on 17:41, 19. Feb 2020
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Teleport player to player across dimension

This ones breaking my brain a little... or rater I can't understand the logic myself soooo... bit annoying yeah. 

The goal: 

Teleport players across dimensions to the location of the player.

E.g.: /tpdim <playername> <playername>

 

What I got so far: 

So basically I make the check of which Dim. (and if they are player) they are in but then ... I don't know where to go, I've looked through the procedure list and I must be missing something. 

Searching this site hasn't resulted in success either, just mentions towards issues with teleportation but not how to make it... (that I could find).

 

Any ideas how I can continue this (not asking for solutions, but a push in the right direction is appreciated)? 

Last seen on 17:41, 19. Feb 2020
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sweet, so I got that down…
Mon, 02/03/2020 - 10:58

Sweet, so I got that down good to know, so would this next procedure work: 

 

I feel like if I were to test this it would break... seeing how I'm using @p but the command has no syntax / variable for it. 

So do i need to add in a syntax / variable as well that takes for e.g.: /tp <playername> <playername>