misode.github.io icon indicating copy to clipboard operation
misode.github.io copied to clipboard

Recipe generators for 1.20.6 use an incorrect key for the result item stack

Open ErrorCraft opened this issue 2 months ago • 0 comments

The recipe generators for 1.20.6 (labelled as 1.20 on the website) use item as a key for the result item stack instead of id. See https://github.com/ErrorCraft/Itematic/issues/38 for a (modded) example. Note that this was tested using the minecraft:crafting_shaped recipe type, but affects other types like minecraft:crafting_shapeless that use the same result map as well.

Steps to reproduce

  1. Create a recipe with the generator for version 1.20.6 or paste the following one in the output:
{
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "SSS"
  ],
  "key": {
    "S": {
      "item": "minecraft:stick"
    }
  },
  "result": {
    "item": "minecraft:cobblestone"
  }
}
  1. Observe how the recipe is considered valid on the generator with item as the key in the result map
  2. Place the recipe in a data pack in a world and load the world on 1.20.6
  3. Observe how the game fails to load the recipe
  4. Replace the item key with id in the result map and reload the data pack
  5. Observe how the game loads the recipe this time

ErrorCraft avatar Nov 06 '25 01:11 ErrorCraft