Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-257843

note_block_sound data is lost when breaking a player head

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.19.3 Pre-release 3
    • 1.19.3 Pre-release 2
    • None
    • Confirmed
    • Block states, Commands
    • Normal
    • Platform

      When you break a player head with the tag note_block_sound set, which makes the note block placed below produce the specified sound as expected, the resulting item doesn't have the tag.

      To reproduce

      1. Stand on top of a note block
      2. Run the command
        /setblock ~ ~ ~ player_head{note_block_sound:"minecraft:ambient.cave"}
        
      3. Right-click the note block, this will cause a spooky sound to play
      4. Switch into Survival mode
      5. Break the head
      6. Select it in your hotbar
      7. Run
        /data get entity @s SelectedItem
        
      8. Place it back on top of the note block
      9. Right-click the note block again

      Observed result

      No sound is played and the result of the command is

      {id: "minecraft:player_head", Count: 1b}
      

      Expected result

      A spooky sound is played and the result of the command is

      {id: "minecraft:player_head", Count: 1b, tag: {BlockEntityData: {note_block_sound: "minecraft:ambient.cave"}}}
      

            slicedlime [Mojang] slicedlime
            AHL AHL
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: