This happens when a wither/wither skeleton hits you and damages you with the wither effect. Apparently this also damages the armor while the wither effect is still happening.
How to reproduce:
1. Get some armor and equip it.
2. Get hit by a wither/wither skeleton.
3. You will see that your armor durability is going down despite the effect is the only thing that is damaging your health.
I used a resource pack to determine the durability numbers in the video below:
https://mcpedl.com/durability-viewer-resource-pack/
The unbreaking enchantment can increase the chance for your armor pieces to negate armor durability damage since it apparently counts as damage to armor, however it isn't guaranteed to work since the enchantment is by chance of when the armor can possibly be damaged.
Linked issues
relates to 1
Attachments
Comments 10

I had a suit of unbreaking 3 netherite armor go from full durability to destroyed during 1 wither fight.
I had a suit of unbreaking 3 netherite armor go from full durability to destroyed during 1 wither fight.
I think this is because the protection enchantment now reduces damage from Magic as well. Does the Poison effect reduce armor durability too?
I think this is because the protection enchantment now reduces damage from Magic as well. Does the Poison effect reduce armor durability too?
Seems like I can't reproduce this issue anymore since 1.20 came out. Maybe the fix of MCPE-159407 fixed this as well?
Seems like I can't reproduce this issue anymore since 1.20 came out. Maybe the fix of MCPE-159407 fixed this as well?