Started by
Aplhau
on
Topic category: Help with Minecraft modding (Java Edition)
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 person is, you can teleport yourself to them and teleport them to your previous coordinates.
How would i get my coordinates and how would I make the target person teleport to them though.