Started by
feelsfishy
on
Topic category: Help with Minecraft modding (Java Edition)
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!
I don't have the answer sry, but you said you know how to teleport one person? How do you do that?
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.