mojira.dev
MC-96609

Pick block on player head does not use BlockEntityTag

The bug

The BlockEntityTag tag for items should be used when an block and its NBT data is copied using Ctrl + Middle mouse button.
Additionally the copied block gets the Lore: "+NBT"
This is not the case for skulls, they get the NBT data only for their SkullOwner tag. This is problematic because it is inconsistent and also prevents tags added to the skull block in the future to be copied.

How to reproduce

  1. Use this command and place the skull

    /give @p minecraft:player_head{SkullOwner:"Notch"} 1
  2. Copy the skull with its NBT data
    → ❌ The copied skull has no "+NBT" Lore

Attachments

Comments 14

Doesn't regular pick block also preserve player data?

Probably intended, because it already says its player name in the item name.

No, @unknown this is purly about the lore of the item not saying +NBT

@unknown that means it has the nbt data in the skull, but normally with control+pick block it also adds the lore +NBT which makes this inconsistant

@unknown, no it does not

4 more comments

Can confirm in 20w48a.

Can confirm in 21w05b.

Can confirm in 1.17.1.

Fixed in 24w09a when NBT was replaced with components. It is now expected that +NBT would not show.

I can confirm that this has been fixed in 24w09a and attached two images: one demonstrating a fixed version, the other demonstrating a bugged version.

marcono1234

(Unassigned)

Confirmed

Block states

middle-click, nbt, pick-block, skull

Minecraft 16w05b, Minecraft 1.11, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, ..., 1.16.1, 1.16.4, 20w48a, 21w05b, 1.17.1

24w09a

Retrieved