mojira.dev
MC-121621

Pick block on shulker boxes doesn't find placed and mined shulker boxes in inventory

To reproduce:

1. Be in survival
2. Craft 2 shulker boxes
3. Place both
4. Mine one
5. Switch to a non-shulker box hotbar slot
6. Pick block on the placed shulker box
7. Observe that your selected hotbar slot did not change to the shulker box in your inventory

This is likely because placed and mined shulker boxes have some nbt data with them, especially if there's items inside (though this bug also applies to empty ones).

I expected pick block to switch my selected hotbar slot to any of the shulker boxes of the same color in my inventory, even regardless of wether the contents match.

Linked issues

Attachments

Comments 10

This has to be WAI as each shulker box should have a different ID so the game can identify what contents it should have.

I agree that pick block shouldn't work when you use it on a box with items inside and only have empty ones in your inventory, but if both are empty then this behaviour seems inconsistent. If I pick block on a full shulker box of sand I'd expect another one in my inventory to get equipped too.

Also, the shift-double clicking trick to move many stacks of the same item between your inventory and a container works with shulker boxes as far as I've seen (and respects their contents or lack thereof).

Can confirm in 20w48a.

Can confirm in 21w03a.

Can confirm in 21w06a.

Can confirm in 21w07a.

Affects 1.20.4. The discrepancy seems to come from the fact that when the player breaks, and then picks up the shulker box item an empty 'Items: []' array is made.

[media]

Can no longer reproduce in 24w10a. Suspected fix version is 09a, given the changes to item NBT.

Can confirm fixed in 24w09a.

[Mod] redstonehelper

(Unassigned)

Confirmed

(Unassigned)

Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 18w07c, Minecraft 1.13.1, ..., 20w48a, 21w03a, 21w06a, 21w07a, 1.20.4

24w09a

Retrieved