The Bug:
Tools and armor used by non-player entities don't consume durability.
This is too good for auto farms to be a feature. For example, you can use multiple foxes with swords to make giant farms.
Steps to Reproduce:
Summon a fox holding a wooden sword with 1 durability on it by using the command provided below.
/summon minecraft:fox ~ ~ ~ {HandItems:[{id:"minecraft:wooden_sword",Count:1b,tag:{Enchantments:[{id:"minecraft:fire_aspect",lvl:1}],Damage:58}}]}
Summon a chicken near the fox and allow the fox to attack the chicken.
Take note as to whether or not swords used by non-player entities consume durability.
Observed Behavior:
The sword can be used infinitely.
Expected Behavior:
The sword breaks.
Linked issues
is duplicated by 1
Attachments
Comments 10
This appears to affect all non-player entities and isn't just exclusive to foxes. I've updated this ticket accordingly.
This apso applies to armor, and anything in the hand (non-swords too); only helmets take damage if it's an undead mob in the sun.
Also crossbows held by pillagers and piglins take damage when used. (MC-163960)
Can confirm in 20w51a.