Mojira Archive
MC-276361

Tools and weapons with the the equippable component are damaged when hurt

Tools and weapons (items with durability that are not armor) if worn lose durability like normal armor, even while having no effect.

Steps to Reproduce:

  1. Get a tool/weapon with durability, and the equippable component:
    /give @p minecraft:wooden_axe[minecraft:equippable={slot:'legs'}]
    
  2. In survival, run this command and take damage:
    /damage @p 5 minecraft:mob_attack
    

Expected Behavior:
The tool would have not be damaged.

Observed Behavior:
The tool item loses durability.

Works As Intended

SomeoneM16

2024-09-05, 12:12 AM

2024-09-06, 07:13 AM

2024-09-06, 07:13 AM

0

1

Confirmed

(Unassigned)

component, equippable

24w36a

-