mojira.dev
MC-208992

Setting attack speed base to a low number gives some items a negative attack speed

Setting attack speed base to a low number gives some items a negative attack speed, effectively disabling the ability to properly attack with it.

What I expected to happen was...:
After setting a player's base attack speed attribute to 1, I thought items such as axes should keep their innate attack speed, or have it modified to a number above 0.

What actually happened was...:
Items such as axes have a negative attack speed, disabling the ability to attack with full damage.

Steps to Reproduce:
1. Enter /attribute @p minecraft:generic.attack_speed base set 1
2. Most tools and weapons will have a negative attack speed.

Attachments

Comments 15

Can confirm in 21w03a.

Can confirm in 21w05b.

Can confirm in 21w06a.

5 more comments

Can confirm in 1.17.1.

confirmed in 1.18.1, likely in 1.18.0

can confirm in 1.18.0 also does not allow critical hits when attack damage is negative

Can confirm in 1.18.2.

Can confirm in 1.19.

Brian (Anti Zuckerberg)

(Unassigned)

Community Consensus

Platform

Low

Commands, Data Packs

20w51a, 21w03a, 1.16.5, 21w06a, 21w11a, ..., 1.17.1, 1.18.1, 1.18.2, 1.19, 1.20.1

Retrieved