Weakness

Weakness is a status effect that decreases attack power.

It can be cured by a milk bucket or with elixir.

Effect
Melee damage inflicted by the affected entity is reduced by × level in Java Edition. Negative levels increase melee damage dealt.

In Bedrock Edition, melee damage under the Weakness effect can be found through the equation $$BaseDamage\times0.8^{level}+\sum_{k=0}^{level-1}{-0.8^k \over 2}$$ where $$BaseDamage$$ is the default attack damage with whatever weapon or tool is used to attack.

Attacks with a damage of 0 or lower would be ignored entirely, however in Bedrock Edition, the use of enchantments such as Sharpness will allow you to still deal damage.

This effect is also used to cure zombie villagers, preceding the golden apple.

The effect can be removed by drinking milk. $$ when education options are enabled, drinking elixir also removes weakness.

Immune mobs
Passive mobs, withers, and ender dragons are immune to Weakness.

ID