Try asking over on Reddit, on the community relating to your modloaded, e.g., FabricMC, etc.
This is intended, no? The /tp command the game auto-fills used the ~ y-coordinate, so they were teleported to the same y-level.
/tp
~
Yes
Try asking over on Reddit, on the community relating to your modloaded, e.g., FabricMC, etc.