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]

Related issues

Attachments

Comments

migrated
[media]
SLScoolUser

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).

SLScoolUser

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.

SoloAlguien

Still in 20w12a

SoloAlguien

Still in 20w13b

SoloAlguien

Affects 20w14a

SoloAlguien

Affects 20w19a

SoloAlguien

Affects 20w20a

SoloAlguien

Affects 20w22a

SoloAlguien

Affects 1.16 Pre-release 2

SoloAlguien

Affects 1.16 Pre-release 3

SoloAlguien

Affects 1.16 Pre-release 4

SoloAlguien

Affects 1.16 Pre-release 5

Ray

in 1.16RC1

SoloAlguien

Affects 1.16.1

SoloAlguien

Affects 20w27a

SoloAlguien

Affects 20w28a

j_p_smith

Related to MC-86455.

pulpetti

In 20w29a

SoloAlguien

In 20w30a

migrated

Affects 20w46a

SoloAlguien

In 1.16.4

In 20w51a

SoloAlguien

In 21w03a

SoloAlguien

In 21w10a

SoloAlguien

In 21w11a

SoloAlguien

In 21w13a

SoloAlguien

In 21w14a

SoloAlguien

In 21w16a

SoloAlguien

In 21w17a

SoloAlguien

Can confirm in 21w18a.

SoloAlguien

Can confirm in 21w19a.

SoloAlguien

Can confirm in 21w20a.

SoloAlguien

Can confirm in 1.17 Pre-release 1.

SoloAlguien

Can confirm in 1.17 Pre-release 2.

SoloAlguien

Can confirm in 1.17 Pre-release 3.

SoloAlguien

Can confirm in 1.17 and 1.17.1 Pre-release 1.

SPGoding

Giving ownership of this ticket to @unknown.

migrated

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

SoloAlguien

Fixed in 24w38a.

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