JEi displaying wrong recipe with onlyWithTag option
Saereth opened this issue ยท 8 comments
Crafttweaker: CraftTweaker-1.10.2-3.0.15
JEI: jei_1.10.2-3.13.6.391
if I do a recipe like
recipes.addShaped(mekanism:EnergyCube.withTag({tier: 0}), [[ore:alloyBasic, ic2:re_battery:26, ore:alloyBasic], [ic2:cable:2.onlyWithTag({type: 2 as byte, insulation: 2 as byte}), ic2:resource:12, ic2:cable:2.onlyWithTag({type: 2 as byte, insulation: 2 as byte})], [ore:alloyBasic, ic2:re_battery:26, ore:alloyBasic]]);
the ic2:cable:2.onlyWithTag({type: 2 as byte, insulation: 2 as byte}) (which is double insulated gold wiring) will show copper wire in JEI, although the recipe only works with double insulated gold as it should.
http://imgur.com/a/mpvbk
Should this change be reflected in the CraftTweaker-1.10.2-3.0.17 version? if so it's still not working
http://imgur.com/a/i3qIf
Those should be insulated cable, same recipe listed in this initial issue report.
uh maybe @mezz has some insight here, since it was working in my dev version, using a diamond pickaxe as a test
Can confirm that this doesn't work.
I will add some more info, hope that helps:
I have two recipes, one that requires filled Fluid Tanks (Neotech) and one that requires filled Gas Tanks (Mekanism). If I use withTag the recipe is shown correctly in JEI but the recipe doesn't work as intended (obviously). If I use onlyWithTag the recipe is working correctly, but it shows empty fluid tanks / empty gas tanks instead. So, I thought, let's just work around that and concatenate both commands
.onlyWithTag().withTag() throws errors
Then I did .withTag().onlyWithTag() with the Fluid Tanks and hey, it worked flawlessly. So it did the same with the Gas Tanks and there it showed up in JEI, but the recipe wouldn't work and I don't understand why.
So, tl;dr: onlyWithTag() doesn't get shown in JEI properly, workaround with .withTag().onlyWithTag() works only sometimes.
MC 1.10.2
Forge 2254
Crafttweaker 3.0.24
Use withTag
instead, withOnlyTag
is a condition checked during recipe crafting, so JEI doesn't know about it, so combine them both for JEI to display it as such