Teleport player seamlessly.
I’m trying to teleport a player from one 4x4 room to an identical 4x4 room.
Currently the commands I have will teleport all the players in the first room, to the same block in the second room. I don’t want this as it removes the seamlessness that i’m trying to achieve.
How can I have all players be teleported to the second room while keeping their same location in the room?
ie: 4 players are in the room, one on each corner of the room, I need all of them to be teleported together to an identical room while keeping their current location in the room, if that makes any sense. Thank you!
Posted Nov 6, 2022, 10:47 PM UTC
14
Seamless teleportation is accomplished through relative teleports. I haven't tested this on MCBE yet, so I'm not sure if the concept works the same way, but here is the basic idea:
This tells each player to teleport exactly ten blocks upwards. Since it's not specifying a location, it will not cause the player's location to "snap" to the middle of a block. If the environments at both locations are the same, it will look as if the player never teleported at all.
Thank you!!
So in my case the new location is in a completely different area than the first location. How would I achieve this in that case?
You have to use relative coordinates for seamless teleportation to work. If your two areas are further apart, you will just have to put larger numbers for the relative coordinates.
Oh, I see now! So I would essentially keep increasing the number until it get the right spot. Makes sense!
Thank you so much! I am so lost with Bedrock commands lol