I’m playing on a Survival world with cheats on, “easy” difficulty, and at night in-game. I didn’t have a sword or anything to make a sword with, and I was starving, so I switched to Creative to give myself a stack of food and a bed to set my spawn point. When I switched back to Survival, I couldn’t destroy or place blocks. I’m on single player, and my Internet is fine, and I can destroy blocks still if I switch to creative. I’ve tried resetting the button one, and reloading the map, and it still doesn’t work. I’ve even tried deleting everything I gave myself in Creative. This happened before on a different world and I ended up deleting it.
This only happens on this world. How do I fix it?
If I know I’m in the correct game mode, what else can cause this? Are there different causes in multiplayer?
I suspect you used
/gamemode 2 [player] instead of
/gamemode 0 [player]. Gamemode 0 will take you back to survival, whereas gamemode 2 places you in Adventure mode, where no blocks can be destroyed, except with the right tools.
Instead of a number for the gamemode, you can use the full name (
spectator) or an abbreviation of the name (
sp) to avoid this mistake in the future.