Ability to switch two players position

Started by Aplhau on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ability to switch two players position
Fri, 07/09/2021 - 20:08 (edited)

Hello everyone that has clicked on this forum and I hope you are all having a nice day. So I want to make 2 abilities. The first ability will be used to select a player that you want to switch places with. The second ability will be used to do the switching of places. I had an idea where for selecting the player they would be given an effect that pretty much tracks their position but setting their coords to different variables, then when the source player wants he will teleport to those variables/coords. Sadly that would only work for one person and I want them to switch positions not just source person teleports to target person. 

Edited by Aplhau on Fri, 07/09/2021 - 20:08
If you know who the target…
Sat, 07/10/2021 - 09:14

If you know who the target person is, you can teleport yourself to them and teleport them to your previous coordinates.

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would i get my…
Tue, 07/13/2021 - 03:05

How would i get my coordinates and how would I make the target person teleport to them though.