How to get unstuck from blocks if world can't be loaded? [closed]

So I was playing a modpack called Roguelike Adventures and Dungeons and when fighting a dragon, he somehow pushed me into blocks.

I tried to get out but I couldn't mine or build any blocks. It was basically like an xray glitch. I had no other ideas but to turn off the game, so I did. I quit the world and joined back in but when it got to Loading Chunks it said "Internal Server Shutting Down". After it shut down, I got a prompt saying that there were "Illegal Coordinates" (or something like that) and since then I cannot load in to my world.

Is there any way to fix my coordinates without me being able to load the world?


Solution 1:

Without editing the world with something such as MCEdit, you won't be able to get back in. You're currently in a state where your actual character is not in the position the game thinks it is, and it can only reset this if you're not in blocks - find the coordinates you're at in-game (if at all possible) and remove the blocks underneath it in a 5x5x5 area, and you should be able to play again.