This question already has an answer here:
- Why can't I destroy or place blocks? 5 answers
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.