minecraft bedrock edition teleport a player to different coordinates depending on what world they are in code example
Example: tp facing north 1.16 minecraft
/tp <targets> <location> [<yRot> <xRot>]
/tp <targets> <location> [<yRot> <xRot>]