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

An item modifier with a duplicate item stack component prevents the entire data pack from (re)loading, rather than ignoring that one specific item modifier

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w10a
    • 24w09a
    • None
    • Confirmed
    • Data Packs
    • Normal
    • Platform

      This is inconsistent with all other errors for reloadable resources, which fail to load that single entry, instead of invalidating the entire data pack.

      Steps to reproduce

      1. Add the following item modifier to a data pack
        {
          "function": "minecraft:set_components",
          "components": {
            "minecraft:custom_data": {
              "a": 1
            },
            "custom_data": {
              "b": 10
            }
          }
        }
        
      2. Try to load a world with that data pack
      3. Notice how you get the 'errors in currently selected data packs prevent the world from loading' message.

      Alternatively you can load the world and add the item modifier later and use the /reload, command which gives you the message "reload failed; keeping old data" instead.

            gegy1000 [Mojang] Gegy
            ErrorCraft ErrorCraft
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: