/* Copyright Bob Bartsch, 2021 This code is governed by the Creative Commons Attribution–NonCommercial License https://creativecommons.org/licenses/by-nc/3.0/ (Meaning: credit me if you modify and/or redistribute this code. Also, you may not sell this code.) */ // imports import crafttweaker.item.IIngredient; import crafttweaker.item.IItemStack; import crafttweaker.oredict.IOreDictEntry; import mods.nuclearcraft.FuelReprocessor; val graphite = ; val zirconium = ; /* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- LE Fuels -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ var dFuels = [[,,,]] as IIngredient[][]; // reprocessing the depleted fuels var dIso = [[[ * 2, * 2, * 2, * 2], [.amount(2),.amount(2),.amount(2), * 2], [.amount(2),.amount(2),.amount(2), * 2], [ * 2, * 2, * 2, * 2]] ] as IIngredient[][][]; var ru = mods.nuclearcraft.ChanceItemIngredient.create(, 30); var eu = mods.nuclearcraft.ChanceItemIngredient.create(, 20); for i,array in dFuels{ mods.nuclearcraft.FuelReprocessor.removeRecipeWithInput(array[0].amount(9)); mods.nuclearcraft.FuelReprocessor.removeRecipeWithInput(array[1].amount(9)); mods.nuclearcraft.FuelReprocessor.removeRecipeWithInput(array[2].amount(9)); mods.nuclearcraft.FuelReprocessor.removeRecipeWithInput(array[3].amount(9)); //triso mods.nuclearcraft.FuelReprocessor.addRecipe(array[0].amount(9), dIso[i][0][0], dIso[i][0][1], ru, graphite * 3, dIso[i][0][2], dIso[i][0][3], eu, ); //oxide mods.nuclearcraft.FuelReprocessor.addRecipe(array[1].amount(9), dIso[i][1][0], dIso[i][1][1], ru, null, dIso[i][1][2], dIso[i][1][3], eu, null); //nitride mods.nuclearcraft.FuelReprocessor.addRecipe(array[2].amount(9), dIso[i][2][0], dIso[i][2][1], ru, null, dIso[i][2][2], dIso[i][2][3], eu, null); //zirc mods.nuclearcraft.FuelReprocessor.addRecipe(array[3].amount(9), dIso[i][3][0], dIso[i][3][1], ru, zirconium, dIso[i][3][2], dIso[i][3][3], eu, null); } /* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- HE Fuels -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ dFuels = [[,,,]] as IIngredient[][]; // reprocessing the depleted fuels dIso = [[[ * 2,,, * 3], [.amount(2),,, * 3], [.amount(2),,, * 3], [ * 2,,, * 3]] ]; ru = mods.nuclearcraft.ChanceItemIngredient.create(, 90); eu = mods.nuclearcraft.ChanceItemIngredient.create(, 60); for i,array in dFuels{ mods.nuclearcraft.FuelReprocessor.removeRecipeWithInput(array[0].amount(9)); mods.nuclearcraft.FuelReprocessor.removeRecipeWithInput(array[1].amount(9)); mods.nuclearcraft.FuelReprocessor.removeRecipeWithInput(array[2].amount(9)); mods.nuclearcraft.FuelReprocessor.removeRecipeWithInput(array[3].amount(9)); //triso mods.nuclearcraft.FuelReprocessor.addRecipe(array[0].amount(9), dIso[i][0][0], dIso[i][0][1], ru, graphite * 4, dIso[i][0][2], dIso[i][0][3], eu, ); //oxide mods.nuclearcraft.FuelReprocessor.addRecipe(array[1].amount(9), dIso[i][1][0], dIso[i][1][1], ru, null, dIso[i][1][2], dIso[i][1][3], eu, null); //nitride mods.nuclearcraft.FuelReprocessor.addRecipe(array[2].amount(9), dIso[i][2][0], dIso[i][2][1], ru, null, dIso[i][2][2], dIso[i][2][3], eu, null); //zirc mods.nuclearcraft.FuelReprocessor.addRecipe(array[3].amount(9), dIso[i][3][0], dIso[i][3][1], ru, zirconium * 2, dIso[i][3][2], dIso[i][3][3], eu, null); }