Not sure if you mean just, like, random fall damage out of nowhere, or, 'the item teleports you into midair and then you die of fall damage.' If it's a code issue rather than a design issue, you could simply add an 'override fall distance' function to the dimension swapping code. Even still, there's probably going to be other issues. (Say, if there's a solid wall in the dimension you're trying to teleport into.)
Like the end or nether you can make a custom structure which you spawn on when you enter. You can either make it like the end so you always tp to set coordinates when entering the dimension or like the nether which spawns a new portal when you enter if theres none nearby. Otherwise depending on your dimension generation type you can make the player tp to something like 0 65 0 every time if its end generation. Nether and overworld are a lot more variable so that ways not really possible for them.
Not sure if you mean just, like, random fall damage out of nowhere, or, 'the item teleports you into midair and then you die of fall damage.' If it's a code issue rather than a design issue, you could simply add an 'override fall distance' function to the dimension swapping code. Even still, there's probably going to be other issues. (Say, if there's a solid wall in the dimension you're trying to teleport into.)
It just teleported me to the sames coordinates of the overwold, so the player had a great chance of suffocating. Thanks anyway
Like the end or nether you can make a custom structure which you spawn on when you enter. You can either make it like the end so you always tp to set coordinates when entering the dimension or like the nether which spawns a new portal when you enter if theres none nearby. Otherwise depending on your dimension generation type you can make the player tp to something like 0 65 0 every time if its end generation. Nether and overworld are a lot more variable so that ways not really possible for them.