mojira.dev
MC-138100

/data remove doesn't work for the Jukebox's RecordItem tag

How to reproduce

Set a jukebox with a recorditem

/setblock ~1 ~ ~ minecraft:jukebox{RecordItem:{id:"minecraft:dirt",Count:1b}}

Remove the item

/data remove block ~1 ~ ~ RecordItem

Run command to see the tag still exists

/data get block ~1 ~ ~

Linked issues

Attachments

Comments 9

You can find more of these issues with most "optional" tags. So even if it would be convenient to have some of these fixed, in the general case, I think it falls under the "changing the nbt in the block/entity lifetime" category.

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 1.17.

Can confirm in 1.17.1.

Can confirm in 1.18.2 and 22w18a.

AlexMCool

slicedlime

Confirmed

Commands

/data-remove, jukebox

Minecraft 1.13.2, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w45a, Minecraft 18w46a, ..., 1.17.1, 1.18.2, 22w18a, 1.19.4, 1.20.2

1.21.4 Pre-Release 1

Retrieved