mojira.dev
MC-257817

Player heads with a custom skin lose their noteblock sound data when using Ctrl+Pick block

When using Ctrl+Pick block on a player head with both a custom skin and noteblock sound data, the received head only contains the custom skin data, but not the noteblock sound data.

To reproduce

  1. Run the following command to place a player head with noteblock sound data:

    /setblock ~ ~ ~ minecraft:player_head{note_block_sound:"minecraft:ambient.cave",SkullOwner:{Name:"jeb_"}}
  2. Pick the block while holding the Ctrl key

  3. Place the resulting head on top of a note block

  4. Right-click the note block

Observed behaviour

No sound is played.

Expected behaviour

A spooky cave sound is played.

Linked issues

Attachments

Comments 2

Can you please provide the exact commands that you used?

Also, are you in singleplayer or on a multiplayer server?

This report is specific to CTRL+pick blocking a player head with SkullOwner and note_block_sound tags. An amended description would be:

You can't CTRL+pick block a placed player head with the note_block_sound tag if it has the SkullOwner tag. The given item is missing the NBT tag for the sound and does not play any sound once placed onto a note block. If the player head does not have the SkullOwner tag, then the note_block_sound tag is preserved from CTRL+pick block as expected.

Affects 1.19.3 pre-2.

Code analysis by ch-yx:

[media]

If the block is a player head with the SkullOwner tag, the item stack inherits the SkullOwner tag and nothing else once the head is pick-blocked, as the item stack is prematurely returned.

migrated

slicedlime

Confirmed

Platform

Normal

Block states, Commands

1.19.3 Pre-release 1, 1.19.3 Pre-release 2

1.19.3 Pre-release 3

Retrieved