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

Item pickup animation plays in hotbar when 1-9 hotkeying out of limited slots fails/has no apparent effect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 15w44b, Minecraft 1.9, Minecraft 16w43a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w17b, Minecraft 17w18a, Minecraft 17w18b, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, 19w35a, 1.16.1, 20w30a, 20w46a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b, 1.21
    • None
    • Confirmed
    • (Unassigned)

      I'm not even going to attempt putting this into words, so here's exact steps to reproduce:

      1. /gamemode survival
      2. /clear
      3. /item replace entity @p armor.head with minecraft:carved_pumpkin
      4. /item replace entity @p hotbar.0 with minecraft:carved_pumpkin 32
      5. Open your inventory, move your mouse over the pumpkin in the helmet slot
      6. Hit 1 on your keyboard and observe the item pickup animation playing on the stack of 32 pumpkins in your hotbar (the hotbar that's always rendered, not the one in the inventory GUI)

      The hotkey action doesn't actually fail - it does exactly what it's supposed to do: Switch the item stacks in the two slots. However, stack size limitation for the helmet slot dictates that only one item may move there, so only one of the 32 pumpkins is moved there, resulting in 31 pumpkins. Then the single pumpkin that was originally in the head slot is moved into the inventory: a slot for it is looked for because the slot we are hotkeying in is still occupied with 31 pumpkins - the game finds the slot with 31 pumpkins in it and puts the pumpkin there, resulting in an "increased" stack size of 32. Increased stack size triggers item pickup animation.

            Unassigned Unassigned
            redstonehelper redstonehelper
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: