Minecraft – Unable to collect cobblestone after a while

minecraft-java-edition

I've been playing this world for a while now and I have been able to collect cobblestone just fine, but suddenly whenever I destroy a block, it's not going into my inventory. I have tried a wooden, stone and iron pickaxe, but none of them have worked. I have closed the program down and started it up again, and it let me play normally for about 10 minutes, but then started again.

Does anyone know how to fix this?

Best Answer

From looking at the exstensive discussion in the comments, it has appeared as though you had doTileDrops set to false. Change this by entering in /gamerule doTileDrops true. Hope this helps!