Aquaculture 2

Aquaculture 2

110M Downloads

Raw Fish Fillet recipes

AFKafe opened this issue ยท 2 comments

commented

Greetings,

I'm creating a modpack for Forge 1.20.1, and this modpack contains your mod.

I would like to modify and remove the Raw Fish Fillet crafts, but I'm unable to do so. After checking, it turns out that these recipes are hardcoded and therefore cannot be modified by datapacks.

Would it be possible to modify this method? Or is there a way to still modify these crafts?

Thank you in advance for your response.

commented

The recipes is not exactly hardcoded, they're just a special recipes similiar to for example leather armor dying.
The loading of the fish fillet recipe is still done through json (Can be found here: https://github.com/TeamMetallurgy/Aquaculture/blob/master/src/main/resources/data/aquaculture/recipe/fish_fillet.json )

You might be able to just override the above json with an empty json in a datpack. Not 100% sure though.
Otherwise it should be possible to do with CraftTweaker or KubeJS. Someone on our Discord was able to with KubeJS recently.

There is also a config option in our config, that disables the recipes showing in JEI, once you have managed to get them removed :)

Hope that helps!

commented

Thank you for your quick response.

I tried (and just tried again) the following:

  • Creating an empty json file, but it didn't work.
  • Removing the craft via KubeJS, but that doesn't work either (even removing all the crafts from the mod).

I just looked on your Discord, but it seems someone managed to remove the crafts using the ID on KubeJS.

I finally found the source of my problem. The craft was removed, but it still displayed on JEI. I imagine this is because the way you're integrating JEI is a bit unusual, given the rather unusual nature of the craft. So, in the end, everything's fine.

To replicate the craft deletion, here's a way to do it:

  • Remove the craft via DataPack, KubeJS, CraftTweaker, etc.
  • Change the Aquaculture configuration to hide the crafts in JEI

By doing this, your crafts will no longer exist and will be hidden.

Thank you for your time and your mod.