Mining Fatigue

Mining Fatigue reduces mining and attack speed, opposite to the Haste effect. However, the attack speed change is purely visual.

Effect
The effect decreases attack speed by 10% × level, equivalent to the attack speed cooldown attribute decreasing by 0.2 × level. For the in-game default level III, attack speed decreases by 30% (attack speed cooldown attribute decreases by 0.6), and it takes ~370 times longer than usual to break a block with the proper tool for that block.

Negative levels increase attack speed, but still act as level 4 with respect to mining.

While afflicted, a player can still craft and ride entities as usual, but cannot remove most vehicles due to how slowly the vehicle can be broken.

The affliction is cured by drinking milk, although milk does not prevent a subsequent affliction by an elder guardian, which can happen within a few seconds. s can also remove this effect.

Causes
The only natural cause of Mining Fatigue is from affliction by an elder guardian, and the only natural effect level is III. Once per minute, elder guardians in the vicinity search for any player within 50 blocks to afflict with Mining Fatigue III. A player cannot defend from this attack. Concealment behind blocks, underground, or by a potion of Invisibility offers no defense.

Other levels can be achieved via commands.

ID