import mods.jei.JEI.removeAndHide as rh; import crafttweaker.item.IItemStack; import crafttweaker.liquid.ILiquidStack; /* EnderIO Removals */ // Construction Alloy Block rh(); recipes.remove(); // Construction Alloy Ingot rh(); recipes.remove(); // Construction Alloy Nugget rh(); recipes.remove(); rh(); // Clippings and Trimmings rh(); // Twigs and Prunings rh(); // Infinity Goop rh(); // Clay-Coated Glowstone rh(); // Flour rh(); // Species Filter (Forestry) .remove(); // Flour rh(); // Enhanced Dye Blend rh(); // Soul-Attuned Dye rh(); // Organic Brown Dye rh(); // Organic Green Dye rh(); // Industrial Dye Blend recipes.remove(); // Enhanced Dye Blend recipes.remove(); // Industrial Dye Blend rh(); // Soulless Chassis recipes.remove(); // Soulless Chassis rh(); // Industrial Insulation rh(); // Simple Chassis Parts recipes.remove(); // Simple Chassis Parts // Get rid of useless ingots val uselessIngots = [ 0 // "CrudeSteel" , 1 // "CrystallineAlloy" , 2 // "MelodicAlloy" , 4 // "CrystallinePinkSlime" , 6 // "VividAlloy" ] as int[]; val variants = [ "block_alloy_endergy" , "item_alloy_endergy_nugget" , "item_alloy_endergy_ingot" ] as string[]; for metadata in uselessIngots { for variant in variants { var item = itemUtils.getItem("enderio:" + variant, metadata) as IItemStack; if (!isNull(item)) { recipes.remove(item); rh(item); } } } // Grinding Balls for item in .items as IItemStack[] { rh(item); recipes.remove(item); } for item in .items as IItemStack[] { rh(item); recipes.remove(item); } var teBalls = [, , ] as IItemStack[]; for item in teBalls { rh(item); recipes.remove(item); } // Slice'n'Splice dead-ends mods.enderio.SliceNSplice.removeRecipe(); // Zombie Electrode mods.jei.JEI.removeAndHide(); // Zombie Electrode mods.enderio.SliceNSplice.removeRecipe(); // Totemic Capacitor mods.jei.JEI.removeAndHide(); // Totemic Capacitor /* EnderIO Additions */ // Blank Dark Steel Upgrade alloy.recipeBuilder() .inputs([, ]) .outputs([]) .duration(100) .EUt(20) .buildAndRegister(); // Glowstone Nano-Particles macerator.recipeBuilder() .inputs([]) .outputs([]) .duration(100) .EUt(20) .buildAndRegister(); /* Solar Upgrades (Helmet) */ // Simple Solar recipes.remove(.withTag({"enderio:dsu": "enderiomachines:solar"})); recipes.addShapeless( .withTag({"enderio:dsu": "enderiomachines:solar"}) , [, ] ); // Solar recipes.remove(.withTag({"enderio:dsu": "enderiomachines:solar1"})); recipes.addShapeless( .withTag({"enderio:dsu": "enderiomachines:solar1"}) , [, ] ); // Solar II recipes.remove(.withTag({"enderio:dsu": "enderiomachines:solar2"})); recipes.addShapeless( .withTag({"enderio:dsu": "enderiomachines:solar2"}) , [, ] ); // Solar III recipes.remove(.withTag({"enderio:dsu": "enderiomachines:solar3"})); recipes.addShapeless( .withTag({"enderio:dsu": "enderiomachines:solar3"}) , [, ] ); /* Extra Enderio Glasses */ // Enlightened Quite Clear Glass alloy.recipeBuilder() .inputs([, ]) .outputs([]) .duration(160) .EUt(16) .buildAndRegister(); // Enlightened Fused Quartz alloy.recipeBuilder() .inputs([, ]) .outputs([]) .duration(160) .EUt(16) .buildAndRegister(); //Dark Fused Quarz alloy.recipeBuilder() .inputs([, ]) .outputs([]) .duration(200) .EUt(32) .buildAndRegister(); recipes.addShaped(compressedoctadiccap, [ [,,], [,,], [,,]]); recipes.addShaped(doublecompressedoctadiccap, [ [compressedoctadiccap,compressedoctadiccap,compressedoctadiccap], [compressedoctadiccap,compressedoctadiccap,compressedoctadiccap], [compressedoctadiccap,compressedoctadiccap,compressedoctadiccap]]); //Replace old compressed capacitors with functional ones recipes.addShapeless(compressedoctadiccap, []); recipes.addShapeless(doublecompressedoctadiccap, []); //An attempt to do the same in JEI mods.jei.JEI.addItem(compressedoctadiccap); mods.jei.JEI.addItem(doublecompressedoctadiccap); .addTooltip(format.white("Put the item into a crafting window if it has no lore")); .addTooltip(format.white("Put the item into a crafting window if it has no lore")); /* Extra Slice'n'Splice Recipes */ var bonus = 1 as int; var cost = 20000 as int; for wafer in [, ] as IItemStack[] { bonus = bonus * 2; cost = cost * 2; // Z-Logic Controller mods.enderio.SliceNSplice.addRecipe( * bonus, [ , , , wafer , , wafer ], cost); // Ender Resonator mods.enderio.SliceNSplice.addRecipe( * bonus, [ , , , wafer , , wafer ], cost); // Skeletal Contractor mods.enderio.SliceNSplice.addRecipe( * bonus, [ , , , , wafer , ], cost); // Guardian Diode mods.enderio.SliceNSplice.addRecipe( * bonus, [ , , , , wafer , ], cost); } //Alloy Smelter recipe for Organic Black Dye alloy.recipeBuilder() .inputs(,) .outputs() .duration(100) .EUt(16) .buildAndRegister(); //Ensure Correct Solidification val liquidMap as IItemStack[][ILiquidStack] = { : [, , ], : [, , ], : [, , ], : [, , ], : [, , ], : [, , ], : [, , ] }; for liquid, items in liquidMap { //Ingots solidifier.findRecipe(8, [], [liquid * 144]).remove(); solidifier.recipeBuilder() .fluidInputs(liquid * 144) .notConsumable() .outputs(items[0]) .duration(20).EUt(8).buildAndRegister(); //Blocks solidifier.findRecipe(8, [], [liquid * 1296]).remove(); solidifier.recipeBuilder() .fluidInputs(liquid * 1296) .notConsumable() .outputs(items[1]) .duration(98).EUt(8).buildAndRegister(); //Nuggets solidifier.findRecipe(8, [], [liquid * 144]).remove(); solidifier.recipeBuilder() .fluidInputs(liquid * 144) .notConsumable() .outputs(items[2] * 9) .duration(98).EUt(8).buildAndRegister(); } //Furnace Recipes //End Steel furnace.remove(, ); furnace.addRecipe(, ); //Vibrant Alloy furnace.remove(, ); furnace.addRecipe(, ); //Pulsating Iron furnace.remove(, ); furnace.addRecipe(, ); //Energetic Alloy furnace.remove(, ); furnace.addRecipe(, ); //Electrical Steel furnace.remove(, ); furnace.addRecipe(, ); //Dark Steel furnace.remove(, ); furnace.addRecipe(, );