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

Specifying a block tag in an item's can_place_on or can_break component in a recipe or loot table causes validation error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.21.2 Pre-Release 2
    • 24w38a
    • None
    • Confirmed
    • Data Packs
    • Important
    • Platform

      Referencing a block tag in a recipe or a loot table in an item's can_place_on or can_break component causes the datapack not to load.

      How to reproduce:

      1. Download the attached datapack and try to load it in a world
      2. Notice the datapack doesn't validate
      3. (optional) Remove the block tag references from the loot table and recipe and reload; notice the datapack loads

        1. example_pack.zip
          0.8 kB
        2. example_output.txt
          14 kB
        3. deobf_example_output.txt
          19 kB

            Unassigned Unassigned
            fedpol1 fedpol1
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: