Skip to content

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

@ErrorCraft

Description

@ErrorCraft

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 ErrorCraft/Itematic#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions