IC2 Tweaker

IC2 Tweaker

1M Downloads

IC2 blast furnace doesnt display amount when oreDictionary is used

seras42 opened this issue ยท 4 comments

commented

import mods.ic2.BlastFurnace;
import crafttweaker.item.IIngredient;
import crafttweaker.item.IItemStack;
import crafttweaker.oredict.IOreDictEntry;
enableDebug();

var CopperOre = [
ore:oreCopperNormal,
ore:oreCopperPoor,
ore:oreRichCopper,
ore:oreCopperSmall
] as IIngredient[];

function BlastFurnace(inputOre as IIngredient[], output as IItemStack) {
val numbers = [
3,5,2,7
] as int[];

for i, ore in inputOre {
mods.ic2.BlastFurnace.addRecipe([output,ic2:misc_resource:5], ore * numbers[i], 1, 2500);
}

}
BlastFurnace(CopperOre,tfc:metal/ingot/copper);

For some reason JEI doesn't show the amount of ore needed to craft the ingot. Before that when i did not use ore dictionary it worked, then i changed it to ore dictionary to make the code shorter and now it doesn't show it even tough the recipe works correctly.

Minecraft version 1.12.2
Forge 14.23.5.2859
Craft Tweaker2 4.1.20.675
IC2 Tweaker 2.0

commented

scer
For this ore it should show 7 ores needed to craft one ingot. If for example i edit the recipes trough blast_furnace.ini in IC2 config folder and use ore Dictionary it works. But if i use craftTweaker scrip and use ore dictionary it doesnt work.

commented

Probably a duplicate of #5. See there for more details.

Update: reproduced locally. Confirmed as a duplicate.

commented

Duplicate of #5

commented

I added the recipes trough blastfurnace.ini in the ic2 config file and trough there it works so i guess i resolved the issue.