JustEnoughItems icon indicating copy to clipboard operation
JustEnoughItems copied to clipboard

[Suggestion]: Add datapack support for crafting recipes

Open TheBlackSwitch opened this issue 2 months ago • 0 comments

Suggestion

It would be very lovely for datapacks to have the possibility to add their own items / recipes to the jei menu. I was thinking that this could be done through a new datapack .json file.

Here is an example format I could come op with: data/<namespace>/jei_definition/quartz_compound.json

{
    "item": {
        "id": "poisonous_potato",
        "components": {
            "item_name": {"text":"Quartz Compound", "color": "#ffaaff"},
            "enchantment_glint_override": true,
            "item_model": "<namespace>:item/quartz_compound",
        }
    },
    "recipes": [
        {"id": "<namespace>:item/quartz_compound_crafting", "type": "crafting"} ,
        {"id": "<namespace>:item/quartz_compound_crafting", "type": "smelting"}
    ]
}

This recipe will show up when you search the item-name of the item. The recipes would refer to real recipe definitions added by the datapack. They would also preferably be removed from the base-item's recipes. In this case this would remove those recipes from crafting a poisonous potato.

I hope datapacks will be supported in the future. Thanks for reading my suggestion and have a nice rest of your day!

TheBlackSwitch avatar Nov 18 '25 19:11 TheBlackSwitch