Skip to content

1.20.1 JSON Load Failure With Conditionals #11

@voidsong-dragonfly

Description

@voidsong-dragonfly

External compat mods cannot add conditionals to Create: Liquid Fuel JSON as they do not fit under the category of recipes, and do not properly respect conditionals manually.

I made Engineered Compatibility and was looking to add compat with both Create: Liquid Fuel and Liquid Burner, to allow for either to be used in packs.

However, as the fluids I am seeking to add do not necessarily exist - namely, IP fuels - I get a datapack loading crash if I try to implement conditionals. Attached below is a recipe-less Forge/NeoForge conditional JSON to show the syntax.

{
  "type": "forge:conditional",
  "recipes": [
    {
      "conditions": [
        {
          "type": "forge:mod_loaded",
          "modid": "createliquidfuel"
        },
        {
          "type": "forge:mod_loaded",
          "modid": "immersivepetroleum"
        }
      ],
      "recipe": {RECIPE GOES HERE}
    }
  ]
}

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