Lance5057 / ExtraDelight

Other
6 stars 9 forks source link

Missing Tags in recipes (0.5a) #31

Closed ColonelPanic-Dev closed 1 year ago

ColonelPanic-Dev commented 1 year ago

2023-06-08_21 54 40

I assume this tag is intended for when you get butchercraft updated as well, but I believe you can prevent adding recipes like this based on whether the tag exists. I haven't tried it with non-minecraft recipes so I'm not certain this will work, but I believe you can do something like this:

{
    "type": "forge:conditional",
    "recipes":[{
        "conditions":[
            {
                "type": "forge:not",
                "value": {
                    "type":"forge:tag_empty",
                    "tag" :"forge:stomach"
                }
            }
        ],
        "recipe": {
            "type": "farmersdelight:cooking",
            "cookingtime": 400,
            "experience": 1.0,
            "ingredients": [
                {
                    "item": "minecraft:milk_bucket"
                },
                {
                    "tag": "forge:stomach"
                }
            ],
            "result": {
                "count": 2,
                "item": "extradelight:cheese"
            }
        }
    }] 
}

I'm sure there is some way to do this with a data generator too