Mobs ignore attack speed of items when attacking
The bug
Mobs ignore the attack speed of an item when they attack with it. This can cause pretty big problems if you have an item with a high attack damage but a very low attack speed, which is therefore balanced for players, and somehow a mob picks it up.
How to reproduce
- Give yourself an item with a high attack damage but a low attack speed
/give @p diamond_axe 1 0 {AttributeModifiers:[{AttributeName:generic.attackSpeed,Name:a,UUIDLeast:1L,UUIDMost:1L,Amount:-10.0,Slot:mainhand},{AttributeName:generic.attackDamage,Name:a,UUIDLeast:1L,UUIDMost:2L,Amount:50.0,Slot:mainhand}]} - Summon a husk, which has like a player a health value of 20
/summon husk
- Try to kill the husk with the axe
→ It should require two hits - Equip diamond armor
- Summon a husk with the same axe
/summon husk ~ ~1 ~ {HandItems:[{id:diamond_axe,Count:1b,tag:{AttributeModifiers:[{AttributeName:generic.attackSpeed,Name:a,UUIDLeast:1L,UUIDMost:1L,Amount:-10.0,Slot:mainhand},{AttributeName:generic.attackDamage,Name:a,UUIDLeast:1L,UUIDMost:2L,Amount:50.0,Slot:mainhand}]}}]} - Switch to Survival or Adventure mode and let the husk hit you
→ You are instantly dead
Linked Issues
Created Issue:
Mobs ignore attack speed of items when attacking
The bug
Mobs ignore the attack speed of an item when they attack with it. This can cause pretty big problems if you have an item with a high attack damage but a very low attack speed, which is therefore balanced for players, and somehow a mob picks it up.
How to reproduce
- Give yourself an item with a high attack damage but a low attack speed
/give @p diamond_axe 1 0 {AttributeModifiers:[{AttributeName:generic.attackSpeed,Name:a,UUIDLeast:1L,UUIDMost:1L,Amount:-10.0,Slot:mainhand},{AttributeName:generic.attackDamage,Name:a,UUIDLeast:1L,UUIDMost:2L,Amount:50.0,Slot:mainhand}]}- Summon a husk, which has like a player a health value of 20
/summon husk- Try to kill the husk with the axe
→ It should require two hits- Equip diamond armor
- Summon a husk with the same axe
/summon husk ~ ~1 ~ {HandItems:[{id:diamond_axe,Count:1b,tag:{AttributeModifiers:[{AttributeName:generic.attackSpeed,Name:a,UUIDLeast:1L,UUIDMost:1L,Amount:-10.0,Slot:mainhand},{AttributeName:generic.attackDamage,Name:a,UUIDLeast:1L,UUIDMost:2L,Amount:50.0,Slot:mainhand}]}}]}- Switch to Survival or Adventure mode and let the husk hit you
→ You are instantly dead
relates to
is duplicated by
Maked as related to MC-117163 since this is a similar case where a mechanic for players does not work for / affect mobs
Thank you for your report!
We're tracking this issue as MC-117163, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automagically! Please report any issues in Discord or Reddit
The attack speed attribute exists on players only, so this is intended/invalid.
You know the next part Marcono1234.