mojira.dev
MC-86455

Pick-block creates ghost items in Creative when hotbar is full

To reproduce:

  1. /clear or shift-click Destroy Item slot

  2. Put an item in each of the 9 hotbar slots

  3. Pick-block on a block that you don't have in your hotbar

You will have created a ghost item, namely the item that was pushed away from the hotbar to make space for the block. To verify this, /clear and open your survival inventory: The item will still be there.
Also you can't find this item with

/execute if data entity @p Inventory[{id:"minecraft:item_id"}]

until you open the inventory.

Linked issues

Attachments

Comments 10

In 1.16.1 and 20w29a

Can confirm in 1.17.1. Video attached.

Can confirm in 21w39a.

Can confirm in 21w40a.

Can confirm in 21w41a.

Can confirm in 1.18 Pre-release 1.

Can confirm in 1.18 and 1.18.1 Pre-release 1.

Can confirm in 1.18.1.

TomatoClownfish

Can confirm in 1.19.3.

Fixed in 24w44a.

1.21.2 (previous version)

24w44a (fixed version)

[media][media]

[Mod] redstonehelper

(Unassigned)

Confirmed

Platform

Low

UI

Minecraft 15w33c, Minecraft 15w35b, Minecraft 15w40b, Minecraft 15w45a, Minecraft 16w35a, ..., 1.20, 1.20.2, 23w43a, 1.20.5, 1.20.6 Release Candidate 1

24w44a

Retrieved