This question already has an answer here:

I was playing on a single player modded survival and I went to check the forums for help with one mod. When I got back on my game I couldn't mine or place blocks and I've tried switching to /gamemode 0 but this only happened in my modded survival. I can still place and break blocks in vanilla Minecraft.

marked as duplicate by Billy Mailman, Frank, CloudyMusic, Joe the Person, gnovice Jul 9 '14 at 22:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • you probably switched to adventure mode instead of survival mode at some point. – Arperum Jul 9 '14 at 21:06
  • You should check out the related questions list on the sidebar. – murgatroid99 Jul 9 '14 at 21:16

Not being able to do that means you're in adventure mode. Remember that now you can use /gamemode a, s, or c to change your gamemode to avoid things like this happening again.

  • Or /gamemode 0 for survival, 1 for creative, 2 for adventure, and 3 for spectator. Far more intuitive for me. – Jacky Xie Feb 17 '16 at 4:52

type in /gamemode s you are in adventure mode it will turn adventure mode off

Not the answer you're looking for? Browse other questions tagged or ask your own question.