Why am I getting attack cooldown when mining if I set attack to a keyboard?
I made a really basic basalt farm that uses instamining. I wanted to afk at it so I set the attack/mine button to the spacebar so I could put a weight on the keyboard to mine. Weirdly enough, when I tried mining with this keybind I would get the attack cooldown bar on my screen and I mine way slower because of it. I tried binding it to enter and got the same effect.
However when I change it back to left click it works fine.
Why is this happening and how do I fix it?
carriann last edited by
It seems like the cooldown indicator only shows up when the pickaxe is trying to mine an empty area or if you send the attack/destroy input in quick succession.
I am guessing that the mouse button being held down is treated as one continuous event whereas a key being held down is more like multiple events being fired extremely fast. I could somewhat verify this since rapidly clicking the left mouse button produces the same cooldown indicator as holding down a keyboard button, whereas holding the mouse button down does not.
Personally it didn't feel like this was affecting the rates because the basalt got instamined as soon as it generated. But if your farm design is showing a significant difference, you can try the "Reload textures" trick as described in https://gaming.stackexchange.com/a/356344/219313 to make the program think you've kept the mouse pressed. Only difference being you'll use the left mouse button, and for me it worked even without Alt+Tab as long as I let go of the button while it is reloading.
I built a simple, no redstone farm in Minecraft Java 1.19.2 by following this https://youtu.be/6tTxvWyfmxg . I tested it both in the overworld and the nether (faster lava flow) with an Efficiency V Diamond Pickaxe and a Haste 1 beacon to achieve instant mining. I did spot some more complicated redstone designs, maybe they force block updates to occur faster and that is why you are experiencing a difference.