mojira.dev
MC-130632

Extra custom recipes don't stack like other items with multiple recipes

The bug

Custom recipes for items with existing recipes don't stack with the original.

Recipes like purple dye can display different recipes for making the item. I added a custom recipe to make 4 normal chests out of 8 logs (any type) and it made a separate recipe, while I think this should stack with the original one.

How to reproduce

  1. Create a custom recipe

  2. Mine looks like this:

logs_to_chests.json
{
    "type": "crafting_shaped",
    "pattern": [
        "###",
        "# #",
        "###"
    ],
    "key": {
        "#": {
            "tag": "minecraft:logs"
			}
    },
    "result": {
        "item": "minecraft:chest",
        "count": 4
    }
}

  

   3. Add it inside a data pack to your saves folder
   4. Load the data pack
   5. Craft the original and new recipe in a crafting table.
   6. Open recipe book in a crafting table

Attachments

Comments 4

Vanilla recipes are grouped together because they have a group string that tells them to do so. You'll need to ensure your custom recipe is in the same group as whatever other recipes you want. Note that since the vanilla chest recipe doesn't have a group, you'll need to override it to include one.

Thanks for the explanation and tips on how to solve this.

No problem. It's a little bit of a design weakness that you have to copy/modify the vanilla recipe, but unfortunately it's an intended one. Good luck with your project!

Yes, I made it work. The recipe book however shows me different kinds of wood than I have in my inventory. I have the book on only show craftable.

Michiel Stikkel

(Unassigned)

Unconfirmed

Minecraft 18w22c

Retrieved