mojira.dev
MC-156857

Shift-clicking X button in Creative menu can create ghost items

The bug

Sometimes, the Survival inventory in Creative is not cleared when shift-clicking onto the X button.

To reproduce

  1. Load a full 9-slot quick-toolbar with X+[number]

  2. Pick-block a block or item (so that one item from the quickbar gets moved to the inventory)

  3. Loading that or any other quickbar with X+[number]

  4. Open the Survival Inventory inside the Creative Inventory

  5. Shift-click the red "Destroy Item" button
    → ❌ The items moved into the inventory out of the quickbar by pick-blocking have not been deleted

Videos

https://youtu.be/pFQWVLSHh7E

[media]

Linked issues

Attachments

Comments 38

I can confirm this also works in 1.14.4.

Based on the video you linked and my own experimentation, here's a procedure to replicate the bug:

  1. Fill the hotbar as much as desired (can be left empty, but filling it with as many as 9 items makes step 2 quicker).

  2. Pick-block anything from the world that is not already in your toolbar. Continue doing this until there is at least 10 different items in your inventory (i.e. a full hotbar, and at least 1 item not in your hotbar).

  3. Load any toolbar.

  4. Open to the "Survival Inventory" tab.

  5. Shift-click the "Destroy Item" button.

And, like you said, any blocks which had been pick-blocked will not be deleted.

Some various, potentially helpful notes:

  • Loading a toolbar before doing the pick-blocking is not necessary, but it definitely makes the bug reproduction process faster.

  • For step 3, you can use any toolbar.

  • You can repeat steps 1, 2, and 3 as many times as you want, in any order (so long as the minimal requirements for the bug are met).

After some further experimentation, I found that the items are not getting deleted because they are ghost items (for some reason–which is why this bug report exists). /data get entity @p Inventory shows that the item is not saved in your inventory, reloading the world causes it to disappear, grabbing the item in survival mode causes it to disappear, etc.

Still in 20w12a

Still in 20w13b

Affects 20w14a

28 more comments

Can confirm in 1.17 Pre-release 3.

Can confirm in 1.17 and 1.17.1 Pre-release 1.

Giving ownership of this ticket to @unknown.

Katharine Cluverius Boak

Still a bug in 1.19.2, haven't checked in later versions

Fixed in 24w38a.

Ender S Isenburg

SoloAlguien

(Unassigned)

Confirmed

Platform

Normal

Inventory

ghost-item, inventory-desync

Minecraft 1.14.3, 1.14.4, 1.15.2, 20w11a, 20w12a, ..., 23w33a, 1.20.2, 1.20.4, 24w12a, 1.21.1

24w38a

Retrieved