Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-96428

Attack indicator and weapon position heavily out of sync

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 16w04a, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.10.2, Minecraft 16w33a, Minecraft 16w38a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13a, Minecraft 17w14a, Minecraft 17w15a, Minecraft 17w16a, Minecraft 17w16b, Minecraft 17w17a, Minecraft 17w17b, Minecraft 17w18a, Minecraft 17w18b, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 3, Minecraft 1.12 Pre-Release 5, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w45a, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w48a, Minecraft 17w49a, Minecraft 17w49b, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b, Minecraft 18w10a, Minecraft 18w16a, Minecraft 1.13-pre1, Minecraft 1.13-pre8, Minecraft 1.13, Minecraft 18w30a, Minecraft 1.13.1, Minecraft 18w48b, Minecraft 19w04a, 20w17a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b, 21w11a, 1.19.2, 22w42a
    • Confirmed
    • Items, UI

      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:

       

      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:

      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"}]}
      

            Unassigned Unassigned
            tryashtar [Mod] tryashtar
            Votes:
            14 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: