I found a trick where if you go into the controls setting and bind alt as the attack key, you can place a weight on that key to AFK mine.
Being that it takes lots of time to get a good amount of cobblestone, I find this feature particularly useful for mining in generators.
I have been banned...