Create Cafe

Create Cafe

3M Downloads

[Feature Request] Recipe Conditionals

Darkosto opened this issue ยท 3 comments

commented

Hello!

I'm not sure if you're aware, but you are able to setup conditional recipes for mods or tags present. I noticed a lot of your recipes have empty tags and still appear in JEI:
image

You can set the recipe up as follows:

{
  "type": "create:mixing",
  "conditions": [
    {
      "value":
      {
        "tag": "forge:fruits/durian",
        "type": "forge:tag_empty"
      },
      "type": "forge:not"
    }
  ],
  "ingredients": [
    {
      "tag": "forge:fruits/durian"
    },
    {
      "fluidTag": "forge:milk",
      "amount": 250
    },
    {
      "fluid": "createcafe:melted_sugar",
      "amount": 250
    }
  ],
  "results": [
    {
      "fluid": "createcafe:durian_tea",
      "amount": 500
    }
  ],
  "heatRequirement": "heated"
}

You can also do a conditional for whether or not a mod is loaded/not loaded:

Loaded:

  "conditions": [
    {
      "modid": "farmersdelight",
      "type": "forge:mod_loaded"
    }
  ],

Not Loaded:

  "conditions": [
    {
      "value":
      {
        "modid": "tconstruct",
        "type": "forge:mod_loaded"
      },
      "type": "forge:not"
    }
  ],

Blood Magic / Blood Orange recipe example:

{
  "type": "bloodmagic:altar",
      "conditions": [
    {
      "modid": "bloodmagic",
      "type": "forge:mod_loaded"
    }
  ],
  "input":
  {
    "item": "minecraft:apple"
  },
  "output":
  {
    "item": "createcafe:blood_orange"
  },
  "upgradeLevel": 0,
  "altarSyphon": 1000,
  "consumptionRate": 5,
  "drainRate": 5
}

If you'd like, I can setup a PR or would you rather add this yourself? Let me know if you have any questions :D

Thank you so much for the great mod and have a good day!
Darkosto

commented

Woah, I did not know about all of that. Thanks for the help! I can do it myself but thanks for the offer!

commented

Done!

commented

Thank you very much for adding that into the mod!