mojira.dev
MC-304782

Item duplication / ghost item glitch triggered by specific keyboard shortcut combination (Q + Hotbar Number Key) in Survival / Adventure mode, causing item state desynchronization and potential inventory corruption.

In Survival or Adventure mode, a specific key combination causes the game's client-side item display to desynchronize from the server-side inventory data, creating a "ghost" item.

Steps to reproduce:

  1. Ensure you are in Survival or Adventure mode.

  2. Have at least two different stackable items (e.g., Stone A and Dirt B) in your hotbar, each in a separate slot.

  3. Select the hotbar slot containing Item A.

  4. Press and hold the Q key (default "Drop Item" key), and while holding it, press the hotbar number key corresponding to the slot of Item B.

Observed Results:

  • A physical, pick-up-able copy of Item A is thrown from the player.

  • In the hotbar, Item A remains visually but becomes a "ghost" (disappears upon any interaction like usage, or opening/closing a container/GUI).

  • The quantity of Item B is decreased by 1 as if it were consumed.

  • The hotbar slot originally containing Item B may become visually empty (no icon or text) but is still functionally selectable.

Expected Results:

  • Pressing Q should drop one item from the currently selected hotbar slot (Item A).

  • No change should occur to Item B in its separate slot.

  • Inventory state should remain consistent between client and server.

Additional Notes:

  • This glitch does not create permanent duplicate items. The "ghost" item (A) is lost upon inventory refresh, leading to a net loss of one Item B and potential inventory confusion.

  • The core issue appears to be an inventory state desync triggered by the specific two-key input during the item drop action.

Environment

Minecraft Version: Java Edition 1.21.10, 1.21.11-rc1
Platform: Java Edition (Tested on Windows 11)
Game Mode: Survival / Adventure
Mods/Resource Packs: None (Vanilla, offline single-player)
Reproducibility: Consistently reproducible.

Linked issues

Attachments

Comments 2

Hi!
Thank you for your report! 

We're already tracking this issue at MC-154881, so I will resolve and link this ticket as a Duplicate

I suggest also to browse through the main issue for potential fixes. 

If you would like to add a vote and any extra information to the main ticket it would be appreciated. 

Quick Links
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Suggestion: Prioritize handling the event of switching shortcut bar slots

cyx012113

(Unassigned)

Unconfirmed

(Unassigned)

1.21.10, 1.21.11 Release Candidate 2

Retrieved