import mods.jei.JEI.removeAndHide as rh; import crafttweaker.item.IItemStack; import crafttweaker.liquid.ILiquidStack; import scripts.common.makeShaped as makeShaped; /* 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); } /* 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 Clear Glass alloy.recipeBuilder() .inputs([, ]) .outputs([]) .duration(160) .EUt(16) .buildAndRegister(); //Dark Clear Glass alloy.recipeBuilder() .inputs([, ]) .outputs() .duration(200).EUt(32).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; var capacitors as IItemStack[] = [ , ]; var wafers as IItemStack[] = [ , ]; for i, wafer in wafers { bonus = bonus * 2; cost = cost * 2; // EnderIO Light makeShaped("enderio_light_" + bonus, * bonus, [ "GGG", "WDW", "WCW" ], { W: wafer, D: , G: , C: capacitors[i] }); } //Alloy Smelter recipe for Organic Black Dye alloy.recipeBuilder() .inputs(,) .outputs() .duration(100) .EUt(16) .buildAndRegister(); // Z-Logic Controller (Cheap) recipes.addShaped(, [ [, ,], [, ,], [, ,] ]); // Soul Vials recipes.addShaped(.withTag({entityId: "minecraft:zombie"}), [ [null,,null], [,,], [null,,null]]); recipes.addShaped(.withTag({entityId: "minecraft:ghast"}), [ [null,,null], [,,], [null,,null]]); recipes.addShaped(.withTag({entityId: "minecraft:villager"}), [ [null,,null], [,,], [null,,null]]); recipes.addShaped(.withTag({entityId: "minecraft:enderman"}), [ [null,,null], [,,], [null,,null]]); recipes.addShaped(.withTag({entityId: "minecraft:shulker"}), [ [null,,null], [,,], [null,,null]]); recipes.addShaped(.withTag({entityId: "minecraft:witch"}), [ [,,], [,,], [,,]]); recipes.addShaped(.withTag({entityId: "minecraft:bat"}), [ [null,,null], [,,], [null,,null]]); recipes.addShaped(, [ [null,null,null], [,,], [,,]]); recipes.addShapeless(, []); recipes.addShapeless(, []); recipes.addShapeless(, []);