Minecraft wiki entry for Damage, associated text: When the player attacks too quickly, it reduces the strength of the attacks. The base damage done (as a fraction of the full possible damage) depends on the time between attacks, which is also reflected in the height of the held weapon on screen and the attack indicator bar (configurable in the options menu):