import crafttweaker.item.IItemStack; import crafttweaker.liquid.ILiquidStack; import crafttweaker.oredict.IOreDictEntry; import mods.gregtech.recipe.RecipeMap; /* This file provides compatibility for DenseMetals. Adds ore dictionary entries for dense ores. Registers chemical reactor recipes to turn one dense ore into 16 regular ores. denseOres is an associative array: { ore_dictionary_entry : [ dense_ore_stack, regular_ore_stack ] } */ val denseOres as IItemStack[][IOreDictEntry] = { : [ , ] , : [ , ] , : [ , ] , : [ , ] , : [ , ] , : [ , ] , : [ , ] , : [ , ] , : [ , ] }; val fluidCatalyst = * 1000; val regularOrePerDense = 16; val recipeDuration = 200; val recipeEUt = 500; for oreDictEntry, itemStacks in denseOres { val denseOreStack = itemStacks[0] as IItemStack; val regularOreStack = itemStacks[1] as IItemStack; // Add ore dictionary entry oreDictEntry.add(denseOreStack); // Chemical reactor recipe, 1 dense -> 16 regular reactor.recipeBuilder() .inputs(oreDictEntry) .fluidInputs(fluidCatalyst) .outputs([regularOreStack * regularOrePerDense]) .duration(recipeDuration) .EUt(recipeEUt) .buildAndRegister(); }