Mojira Archive
MC-276944

custom_data component has reduced functionality compared to old nbt tag

In old versions (tested 1.20) the clear command could remove items if one of the nbt tags matched.
With the new custom_data component, the entirety of the data seems to have to match to clear.
This behavior appears in 1.21.1 and all following versions that use the component I have tested
Commands:
/give @p paper[custom_data={component1:{},target_tag:1b}] 1
/clear Oerebro minecraft:command_block[custom_data=

{target_tag:1b}

]

Invalid

Oerebro

2024-09-24, 10:41 PM

2024-09-24, 11:29 PM

2024-09-24, 11:29 PM

0

0

Unconfirmed

(Unassigned)

1.21.1, 24w38a

-