I teleported too far away and now the game crashes on world load
Solution 1:
If you go to your minecraft saves folder (usually something like C:\Users\%username%\AppData\Roaming.minecraft\saves) there will be a folder called players.
Go into that folder and delete the file with your name on it, and the next time you enter the world it should spawn you close to 0,64,0 rather than the extreme location you teleported to. Note that you will lose any items and experience you currently carry.
An alternative solution is to use a third party program like MCedit to edit your .dat file and change the location in the file. I'm afraid I don't know much about those though.
Solution 2:
In addition to deleting your level.dat, as Hex described, there are other, less destructive options available if you care about your inventory:
- As mentioned, MCEdit is a great way to easily move your current location. As an added bonus, it can edit inventories, spawn locations, terrain, and a variety of other things, so it's certainly a helpful item to have in your Minecraft toolbox.
- If you are willing to enter coordinates, you can change the x, y, and z positions of the player using an NBT editor like NBTExplorer or NEINEdit. Just keep in mind that the y coordinate is vertical, not z.
Solution 3:
I teleported myself millions of blocks in the air on a 1.13.2 LAN world and all I had to do was have the host get a repeating command block teleporting me low to the ground, and i joined back twice and it was fine.