More Crafting Tables for Forge!

More Crafting Tables for Forge!

3M Downloads

Incompatibility with KubeJS

Scarlet-Fury opened this issue · 1 comments

commented

To recreate:

  1. Install More Crafting Tables
  2. Install KubeJS
  3. Attempt to create a world
  4. Encounter this error that immediately disconnects you from the server
Image

I think the issue is that instead of ignoring all the recipes for mods that are NOT installed, when KubeJS encounters this mod, it attempts to load ALL the recipes for MANY woods that don't exist as a result of the mods not being installed...

If there's a better way for either KubeJS or your mod to handle that, I'd greatly appreciate it...

As of right now, even though this mod does technically work in my modpack (I think some performance mods and tag fix mods and others help it load, even with KubeJS installed), it does still cause KubeJS to throw a million INTERNAL errors searching for the missing ingredients to recipes from this mod that it can't ignore, even though the ingredients don't exist as a result of the other mods not being installed

Is there a more solid way you can code it to check if Regions Unexplored or other mods are installed?

Perhaps make it so that if they aren't, it ignores even generating the recipes or data for those other mods? Or ignores loading them?

commented

Hi, I'm sorry you’ve encountered this problem. This has been an issue I've been ignoring for a long time. I can probably fix it properly using data generators to only include recipes if the corresponding mod is present (as it should've been done from the start), and I'll also try to find an alternative that doesn't break any other mod that includes planks in the #planks tag.

But for the meantime, I think you can somewhat solve it by manually removing the unused recipe .json files from the .jar. You can open the .jar with any zip tool and go to resources/data/mctb/recipes/ — that's where all the recipe files are stored. You can delete the ones that reference items from mods you don't have installed, like Regions Unexplored.

Thanks for pointing this out, and sorry again for the trouble.