1.20.1 JSON Load Failure With Conditionals
voidsong-dragonfly opened this issue ยท 2 comments
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}
}
]
}
Thanks for the suggestion, although since it's a mod, I do have a temporary solution if you are willing to give up the time, I respect your choice if you don't. What you can do is dynamically load a class to add the recipe manually to one of the classes that have the list of blaze burner fuels.