CraftTweaker

CraftTweaker

151M Downloads

OR condition in ingredients

narralord opened this issue ยท 4 comments

commented

Issue Description:

I want to add recipe with two different ingredients in one craft square, looks like a oreDictionary. I found ".or" method in IIngredient class. I try to use this method in my *.zs file.

What happens:

Nothing. No crashes, no bugs. But recipe is not Added.

What you expected to happen:

my script add one recipe with different ingredient in one square, looks like a oreDictionary.

Script used:

`val qqq = minecraft:redstone;
val www = minecraft:glowstone;
val eee = qqq.or(www);

recipes.addShaped(minecraft:stick,
[[eee, null],
[www, null]
]);`

Minetweaker.log file:

crafttweaker.log


Affected Versions (Do not use "latest"):

  • Minecraft: 1.12.2
  • Forge: 14.23.1.2554
  • Crafttweaker: 1.12 - 4.0.12
commented

is the recipe not added, or is it not showing in JEI?

commented

it is not showing in JEI, but i can craft it. And the ingredients are not wasted

commented

ok. thanks