Item pickup animation plays in hotbar when 1-9 hotkeying out of limited slots fails/has no apparent effect
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.
Created Issue:
Item pickup animation plays in hotbar when 1-9 hotkeying fails
I'm not even going to attempt putting this into words, so here's exact steps to reproduce:
1.
{/gamemode 0}2.
{/clear}3.
{/replaceitem entity @p slot.armor.head minecraft:pumpkin}4.
{/replaceitem entity @p slot.hotbar.0 minecraft: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)
I'm not even going to attempt putting this into words, so here's exact steps to reproduce:
1.
{/gamemode 0}2.
{/clear}3.
{/replaceitem entity @p slot.armor.head minecraft:pumpkin}4.
{/replaceitem entity @p slot.hotbar.0 minecraft: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)I'm not even going to attempt putting this into words, so here's exact steps to reproduce:
1. /gamemode 0
{/clear}
2.3.
{/replaceitem entity @p slot.armor.head minecraft:pumpkin}4.
{/replaceitem entity @p slot.hotbar.0 minecraft: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)
I'm not even going to attempt putting this into words, so here's exact steps to reproduce:
1. /gamemode 0
{/clear}
2.3.
{/replaceitem entity @p slot.armor.head minecraft:pumpkin}4.
{/replaceitem entity @p slot.hotbar.0 minecraft: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)I'm not even going to attempt putting this into words, so here's exact steps to reproduce:
1. /gamemode 0
2. /clear
3. /replaceitem entity @p slot.armor.head minecraft:pumpkin
4. /replaceitem entity @p slot.hotbar.0 minecraft: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)
Item pickup animation plays in hotbar when 1-9 hotkeying fails/has no apparent effect
I'm not even going to attempt putting this into words, so here's exact steps to reproduce:
1. /gamemode 0
2. /clear
3. /replaceitem entity @p slot.armor.head minecraft:pumpkin
4. /replaceitem entity @p slot.hotbar.0 minecraft: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.
Item pickup animation plays in hotbar when 1-9 hotkeying out of limited slots fails/has no apparent effect
relates to
relates to
A comment with security level 'global-moderators' was removed.
Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time.
I'm not even going to attempt putting this into words, so here's exact steps to reproduce:
1. /gamemode
0
2. /clear
3. /replaceitem entity @p slot.armor.head minecraft:pumpkin
4. /replaceitem entity @p slot.hotbar.0 minecraft: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.
I'm not even going to attempt putting this into words, so here's exact steps to reproduce:
1. /gamemode survival
2. /clear
3. /replaceitem entity @p slot.armor.head minecraft:pumpkin
4. /replaceitem entity @p slot.hotbar.0 minecraft: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.
I'm not even going to attempt putting this into words, so here's exact steps to reproduce:
1. /gamemode survival
2. /clear
3. /replaceitem entity @pslot.armor.head minecraft:pumpkin
4. /replaceitem entity @pslot.hotbar.0 minecraft: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.
I'm not even going to attempt putting this into words, so here's exact steps to reproduce:
1. /gamemode survival
2. /clear
3. /replaceitem entity @p armor.head minecraft:pumpkin
4. /replaceitem entity @p hotbar.0 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.
I'm not even going to attempt putting this into words, so here's exact steps to reproduce:
1. /gamemode survival
2. /clear
3. /replaceitem entity @p armor.head minecraft:carved_pumpkin
4. /replaceitem entity @p hotbar.0 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.
I'm not even going to attempt putting this into words, so here's exact steps to reproduce:
1. /gamemode survival
2. /clear
3./replaceitem entity @p armor.head minecraft:carved_pumpkin
4. /replaceitem entity @p hotbar.0 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.
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 entity @p armor.head replace minecraft:carved_pumpkin
4. /item entity @p hotbar.0 replace 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.
I'm not even going to attempt putting this into words, so here's exact steps to reproduce:
1. /gamemode survival
2. /clear3./item entity @p armor.head replace minecraft:carved_pumpkin
4. /item entity @p hotbar.0 replace 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.
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 entity @p armor.head replace minecraft:carved_pumpkin
4. /item entity @p hotbar.0 replace 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.
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 entity @p armor.headreplaceminecraft:carved_pumpkin
4. /item entity @p hotbar.0replaceminecraft: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.
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.
Like in MC-91883, I'm just going to provide 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.1 with minecraft:carved_pumpkin 32
5. /item replace entity @p hotbar.2 with minecraft:carved_pumpkin 32
5. Open your inventory, move your mouse over the pumpkin in the helmet slot
6. Hit 2 on your keyboard and observe how item stack sizes in your hotbar do not change.
7. Hit 3 on your keyboard and observe how item stack size increases in the second hotbar slot and decreases in the first hotbar slot.
What's actually happening is: When using the 1-9 hotkey, it switches the item stacks between the two slots. 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 looks through the inventory to find a suitable spot for the single pumpkin to put in (a suitable slot is either an empty slot or a slot the pumpkin can be added to), finds the slot with 31 pumpkins in it and puts the pumpkin there.
The "problem" lies with the order in which a slot is looked for: The 9 hotbar slots are always searched left-to-right. This is why, when we pressed the 2 key, the stack sizes remained the same (the pumpkin from the helmet slot was put in the same slot where the other pumpkin went), and when we pressed the 3 key, the stack sizes changed (the pumpkin from the helmet slot went into the 2nd hotbar slot, the pumpkin that was put into the helmet slot came from the 3rd hotbar slot).
The item "to the left" of the hotkeyed stack can also be in the offhand.
Can confirm for 1.9.
Can confirm for 17w17b
Confirmed for 17w18b
Can confirm for 19w35a.
Confirmed in 1.16.1 and 20w30a.
Confirmed in 20w46a.
I've just added the updated commands for the replace item function as this command was recently changed.
Can confirm in 21w03a.
Can confirm in 21w05b.
Can confirm in 21w06a.
Can confirm in 21w07a.
Video attached.
Can confirm in 1.16.5 and 21w08b.
Here are the updated commands for the third and fourth reproductions steps: