When the character is in adventure mode and is aimed at blocks, he cannot break blocks (because of adventure mode) and the autoclicker stops clicking.
My suggestion is that in adventure mode the autoclicker continues to click even when the character is aimed at the blocks.