mojira.dev
MC-312759

Armors with 0 durability provide no armor points

Armors with 0 or lower durability provide no armor points but enchantments are still effective

  • Steps to reproduce the issue

Create a world with cheat enabled

Input “/give @s minecraft:netherite_helmet[minecraft:damage=407] 1” (any armor is ok, and the damage should be equal or larger than its durability)

Equip the armor given from the command

Use “/attribute @s minecraft:armor get” to check the player’s armor point and it should be 0.0

Use “/enchant @s minecraft:protection 4” to the same armor

Equip the armor and use “/damage @s 20” and the player is still alive with 4 HP left.

  • Expected result

Armor with 0 or lower durability provides both armor points and effective enchantments, or both do not.

  • Actual result

Armors with 0 lower durability provide no armor points but enchantments are still effective.

Comments 1

Can confirm. Do bear in mind though that armor with zero durability should normally be impossible to obtain without commands if it weren’t for MC-136374.

jdrvbaxv

(Unassigned)

Confirmed

26.3

Retrieved