mojira.dev
MC-96428

Attack indicator and weapon position heavily out of sync

The bug

The attack indicator fills at a completely different rate than the item raises.

1. By the time the item enters the screen, the attack indicator is more than halfway full:

[media]

 

[media]

2. By the time the hotbar indicator is full, the item is still mostly off-screen. It continues raising for a moment while the indicator remains full:

[media]

Hotbar Indicator:
Item begins raising at 50%.
Item stops raising at ~125%.

Crosshair Indicator:
Item begins raising at 50%.
Item stops raising at 100%.

 

How to reproduce

The animation is very quick. It's noticeable with any item, even non-weapons. To see the discrepancy precisely, use a weapon with very slow attack speed:

/give @p diamond_sword{AttributeModifiers:[{AttributeName:"generic.attack_speed",Name:"Attack Speed",Amount:-3.8d,Operation:0,UUID:[I;9,7,5,3],Slot:"mainhand"}]}

Attachments

Comments 18

This site is for bug reports only. For feature suggestions or changes please see: Minecraft Suggestions on Reddit.

This sounds like a valid bug, but I am unable to reproduce this

Feature suggestions...? Are you implying that the attack indicator is supposed to be meaningless?

Also, Marcono, here's an easy way to see it happening:

/give @p diamond_sword 1 0 {AttributeModifiers:[{Name:a,AttributeName:generic.attack speed,UUIDMost:3727,UUIDLeast:2729,Operation:0,Amount:-3.9}]}

Keep in mind that this also happens with normal-speed items, it's just easier to see this way.

This is a bug not a suggestion with all my respect.

Confirmed for

  • 16w04a

Looks like the "percentage" of how far the icon should be filled is rounded up

@unknown please add the command to reproduce to the description or add the following one:

/give @p diamond_sword 1 0 {AttributeModifiers:[{AttributeName:"generic.attackSpeed",Name:"Attack Speed",Amount:-3.9d,Operation:0,UUIDLeast:1L,UUIDMost:1L,Slot:"mainhand"}]}
8 more comments

Can confirm in 21w05a.

Can confirm in 21w06a.

Can confirm in 21w07a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 21w11a.

tryashtar

(Unassigned)

Confirmed

Items, UI

attack, attackSpeed, indicator

Minecraft 16w04a, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, ..., 21w08b, 21w11a, 1.19.2, 22w42a, 1.21

Retrieved