brewery icon indicating copy to clipboard operation
brewery copied to clipboard

0.4.3 Compatibility with CraftTweaker on Minecrat 1.20.1 + Fabric

Open A-Smith opened this issue 1 year ago • 1 comments

Having Patbox's Brewery 0.4.3 installed seems to cause CraftTweaker recipes that use item transformations to fail. For example, this recipe (create rabbit hide from leather using shears) works fine in a modpack with 160 mods:

import crafttweaker.api.ingredient.transform.type.TransformDamage;
import crafttweaker.api.item.IItemStack;

craftingTable.addShapeless("shear_small_hide_from_leather", <item:minecraft:rabbit_hide> * 4, [
    <item:minecraft:leather>,
    <item:minecraft:shears>.anyDamage().transformDamage()
]);

(Inside the .minecraft folder for the instance, save this as scripts/recipe_test.zs.)

but as soon as I add Patbox's Brewery to the modpack, this recipe fails to load with the error:

[22:26:07] [Render thread/INFO]: [System] [CHAT] [WARN]: Shapeless recipe with ID 'crafttweaker:shear_small_hide_from_leather' contains null or empty ingredients, removing entries! 
[22:26:08] [Render thread/INFO]: Loaded 20 advancements

To try and narrow down the problem, I created a modpack with only four mods: Patbox's Brewery, CraftTweaker, and CraftTweaker's dependencies. I used the latest versions of each mod available for Minecraft/Fabric 1.20.1. The total list of mods is:

  • Minecraft 1.20.1
  • Fabric 0.14.25
  • Patbox's Brewery 0.4.3+1.20.1
  • CraftTweaker 14.0.27
  • Fabric API 0.91.0+1.20.1
  • Faux-Custom-Entity-Data 6.0.1

I observe the same behaviour: if I disable Brewery, then the recipe works; if I enable it, it fails.

I know that Brewery 0.4.3 is an older version. To test to see if this was fixed in a newer version, I installed the latest versions of mods I could. The latest version of Minecraft that CraftTweaker supports on Fabric is currently 1.20.2, so I installed the following:

  • Minecraft 1.20.2
  • Fabric 0.15.1
  • Patbox's Brewery 0.5.2+1.20.2-rc2
  • CraftTweaker 15.0.1
  • Fabric API 0.91.2+1.20.2
  • Faux-Custom-Entity-Data 7.0.1 With this combination of mods, the recipe works.

So it appears the compatibility issue either went away with Brewery 0.5. Are you able to investigate the cause and ideally back-port either a fix or a release of Brewery 0.5 for Minecraft 1.20.1? I'd love to be able to use this mod in a modpack I'm creating, but too many of the other mods in the pack are stuck on 1.20.1, and I rely on CraftTweaker heavily to balance the pack and tweak crafting recipes to avoid conflicts.

A-Smith avatar Dec 13 '23 03:12 A-Smith