Why don't I attack every time I press the LMB?

Solution 1:

Update: In Windows 10, the setting below has been renamed. Instead, search for "Touchpad settings". In the dropdown under "Taps", choose "Most sensitive".

In Windows 8.1, search for "Mouse and touchpad settings". Find the option that says "To prevent the cursor from accidentally moving while you type, change the delay before clicks work." Change it to "No delay (always on)." The problem was worse with skeletons because you move and dodge more when fighting them, causing the touchpad to not accept clicks.

You may also need to turn off palm rejection on your touchpad.

Solution 2:

It's important to note that if you are swinging your sword/tool and still nothing is happening, it's possible you are just missing the hit boxes on your enemies. By pressing F3 + B, you can toggle the hit box view on and off.

As an example, this image shows the hit boxes on various enemies can be very general, sometimes not even covering the entire mob (the hit box for players is quite obviously glitched, and I am unaware whether this has been fixed yet):

enter image description here