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

custom_data component has reduced functionality compared to old nbt tag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.21.1, 24w38a
    • None
    • Unconfirmed
    • (Unassigned)

      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}

      ]

            Unassigned Unassigned
            Oerebro Oerebro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: