How to teleport another player to a different dimension

Started by feelsfishy on Mon, 03/01/2021 - 19:18

Topic category: Help with modding (Java Edition)

Last seen on 19:05, 5. Mar 2021
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to teleport another player to a different dimension
Mon, 03/01/2021 - 19:18

Hi, I am trying to make a mod that can teleport 2 players into a dimension via keybind. I know how to teleport one player to another dimension, but I don't know how to teleport someone else. I want to be able to teleport another player that you are either looking at or is the closest player to you. Thank you!

Last seen on 03:15, 15. Jan 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I don't have the answer sry,…
Mon, 01/10/2022 - 05:34

I don't have the answer sry, but you said you know how to teleport one person? How do you do that?

Last seen on 05:12, 14. May 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can make it possible by…
Tue, 01/11/2022 - 02:52

You can make it possible by using ray tracing don't ask me how cus I have no idea as well but it's doable, for a certain radius you can use the "for every entity as [entity Iterator] in square cube size[number]" procedure block and check if the entity Iterator is a player.