So I was flying in creative and then I dug down below bedrock because I wanted to go back to spawn. In the past this kills a player but now you can "walk" on the void. In order to try to make it kill me, I switched to survival. (This is normally a survival map but I was on creative.) When I did that it did kill me but would not let me re-spawn, only go to the main menu. When I logged back in I was frozen with no hearts and did not have the death screen. After going in creative again, I got a black screen where I still am now. I have worked on this world for over a year and would really like to get it back. Is there any solution to this problem?
If you are stuck and desperate to get out, there are a few solutions. These all work without the use of external programs.
/kill. This will kill you and teleport you to your spawnpoint. If you have your inventory perfectly organized, or you don't want to lose your items, there is always the
/gamerule keepInventory trueCommand.
Double tap space. As @Uniforms For Sale said in the comments, you are most likely flying, and if so, this will kill you.
/gamemode sp.This lets you phase through blocks.
Fly upwards and destroy blocks above you. If you don't know which way is up, use
FN-F3For the debug screen, which should show coordinates. The 'Y' coordinates are the ones you should focus on, and if you are truly in the void, they should be negative. Work your way up to 0, bedrock, via flying.
/tp @p ~ ~ ~. As @onewho said in the comments, this can teleport you to the surface. Replace the ~s with the coordinates of where you want to teleport to, and hit enter. If you don't know what the coordinates of the place you want to be is, bring up the debug screen, and teleport to where you are now, but with the Y coordinate changed to at least 64.
This will get you out of the void, but I recommend teleporting up to 100. Understanding that you have probably moved since you entered the void, this will bring you past the tallest mountains.