365 lines
12 KiB
Plaintext
365 lines
12 KiB
Plaintext
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(<enderio:block_alloy:9>);
|
|
recipes.remove(<enderio:block_alloy:9>);
|
|
|
|
// Construction Alloy Ingot
|
|
rh(<enderio:item_alloy_ingot:9>);
|
|
recipes.remove(<enderio:item_alloy_ingot:9>);
|
|
|
|
// Construction Alloy Nugget
|
|
rh(<enderio:item_alloy_nugget:9>);
|
|
recipes.remove(<enderio:item_alloy_nugget:9>);
|
|
|
|
rh(<enderio:item_material:46>); // Clippings and Trimmings
|
|
rh(<enderio:item_material:47>); // Twigs and Prunings
|
|
rh(<enderio:item_material:75>); // Infinity Goop
|
|
rh(<enderio:item_material:76>); // Clay-Coated Glowstone
|
|
rh(<enderio:item_material:21>); // Flour
|
|
//rh(<enderio:item_species_item_filter>); // Species Filter (Forestry)
|
|
<ore:dustWheat>.remove(<enderio:item_material:21>); // Flour
|
|
|
|
rh(<enderio:item_material:67>); // Enhanced Dye Blend
|
|
rh(<enderio:item_material:52>); // Soul-Attuned Dye
|
|
rh(<enderio:item_material:49>); // Organic Brown Dye
|
|
rh(<enderio:item_material:48>); // Organic Green Dye
|
|
rh(<enderio:item_material:51>); // Industrial Dye Blend
|
|
recipes.remove(<enderio:item_material:67>); // Enhanced Dye Blend
|
|
recipes.remove(<enderio:item_material:51>); // Industrial Dye Blend
|
|
|
|
rh(<enderio:item_material:55>); // Soulless Chassis
|
|
recipes.remove(<enderio:item_material:55>); // Soulless Chassis
|
|
rh(<enderio:block_industrial_insulation>); // Industrial Insulation
|
|
|
|
rh(<enderio:item_material:69>); // Simple Chassis Parts
|
|
recipes.remove(<enderio:item_material:69>); // 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 <enderio:item_alloy_ball:*>.items as IItemStack[] {
|
|
rh(item);
|
|
recipes.remove(item);
|
|
}
|
|
|
|
for item in <enderio:item_alloy_endergy_ball:*>.items as IItemStack[] {
|
|
rh(item);
|
|
recipes.remove(item);
|
|
}
|
|
|
|
var teBalls = [<enderio:item_material:57>, <enderio:item_material:58>, <enderio:item_material:59>] as IItemStack[];
|
|
for item in teBalls {
|
|
rh(item);
|
|
recipes.remove(item);
|
|
}
|
|
|
|
/*
|
|
|
|
EnderIO Additions
|
|
|
|
*/
|
|
|
|
// Blank Dark Steel Upgrade
|
|
alloy.recipeBuilder()
|
|
.inputs([<metaitem:plateDarkSteel>, <ore:dustPulsating>])
|
|
.outputs([<enderio:item_dark_steel_upgrade>])
|
|
.duration(100)
|
|
.EUt(20)
|
|
.buildAndRegister();
|
|
|
|
// Glowstone Nano-Particles
|
|
macerator.recipeBuilder()
|
|
.inputs([<minecraft:glowstone_dust>])
|
|
.outputs([<enderio:block_holy_fog>])
|
|
.duration(100)
|
|
.EUt(20)
|
|
.buildAndRegister();
|
|
|
|
/*
|
|
|
|
Solar Upgrades (Helmet)
|
|
|
|
*/
|
|
|
|
// Simple Solar
|
|
recipes.remove(<enderio:item_dark_steel_upgrade:1>.withTag({"enderio:dsu": "enderiomachines:solar"}));
|
|
recipes.addShapeless(
|
|
<enderio:item_dark_steel_upgrade:1>.withTag({"enderio:dsu": "enderiomachines:solar"})
|
|
, [<enderio:item_dark_steel_upgrade>, <solarflux:solar_panel_1>]
|
|
);
|
|
|
|
// Solar
|
|
recipes.remove(<enderio:item_dark_steel_upgrade:1>.withTag({"enderio:dsu": "enderiomachines:solar1"}));
|
|
recipes.addShapeless(
|
|
<enderio:item_dark_steel_upgrade:1>.withTag({"enderio:dsu": "enderiomachines:solar1"})
|
|
, [<enderio:item_dark_steel_upgrade>, <solarflux:solar_panel_2>]
|
|
);
|
|
|
|
// Solar II
|
|
recipes.remove(<enderio:item_dark_steel_upgrade:1>.withTag({"enderio:dsu": "enderiomachines:solar2"}));
|
|
recipes.addShapeless(
|
|
<enderio:item_dark_steel_upgrade:1>.withTag({"enderio:dsu": "enderiomachines:solar2"})
|
|
, [<enderio:item_dark_steel_upgrade>, <solarflux:solar_panel_3>]
|
|
);
|
|
|
|
// Solar III
|
|
recipes.remove(<enderio:item_dark_steel_upgrade:1>.withTag({"enderio:dsu": "enderiomachines:solar3"}));
|
|
recipes.addShapeless(
|
|
<enderio:item_dark_steel_upgrade:1>.withTag({"enderio:dsu": "enderiomachines:solar3"})
|
|
, [<enderio:item_dark_steel_upgrade>, <solarflux:solar_panel_4>]
|
|
);
|
|
|
|
|
|
/*
|
|
|
|
Extra Enderio Glasses
|
|
|
|
*/
|
|
|
|
// Enlightened Clear Glass
|
|
alloy.recipeBuilder()
|
|
.inputs([<enderio:block_fused_glass:*>, <minecraft:glowstone>])
|
|
.outputs([<enderio:block_enlightened_fused_glass:0>])
|
|
.duration(160)
|
|
.EUt(16)
|
|
.buildAndRegister();
|
|
|
|
//Dark Clear Glass
|
|
alloy.recipeBuilder()
|
|
.inputs([<enderio:block_fused_glass:*>, <actuallyadditions:item_misc:5>])
|
|
.outputs(<enderio:block_dark_fused_glass>)
|
|
.duration(200).EUt(32).buildAndRegister();
|
|
|
|
// Enlightened Fused Quartz
|
|
alloy.recipeBuilder()
|
|
.inputs([<enderio:block_fused_quartz:*>, <minecraft:glowstone>])
|
|
.outputs([<enderio:block_enlightened_fused_quartz:0>])
|
|
.duration(160)
|
|
.EUt(16)
|
|
.buildAndRegister();
|
|
|
|
//Dark Fused Quarz
|
|
alloy.recipeBuilder()
|
|
.inputs([<actuallyadditions:item_misc:5>, <enderio:block_fused_quartz:*>])
|
|
.outputs([<enderio:block_dark_fused_quartz:0>])
|
|
.duration(200)
|
|
.EUt(32)
|
|
.buildAndRegister();
|
|
|
|
recipes.addShaped(compressedoctadiccap, [
|
|
[<enderio:item_basic_capacitor:2>,<enderio:item_basic_capacitor:2>,<enderio:item_basic_capacitor:2>],
|
|
[<enderio:item_basic_capacitor:2>,<enderio:item_basic_capacitor:2>,<enderio:item_basic_capacitor:2>],
|
|
[<enderio:item_basic_capacitor:2>,<enderio:item_basic_capacitor:2>,<enderio:item_basic_capacitor:2>]]);
|
|
|
|
recipes.addShaped(doublecompressedoctadiccap, [
|
|
[compressedoctadiccap,compressedoctadiccap,compressedoctadiccap],
|
|
[compressedoctadiccap,compressedoctadiccap,compressedoctadiccap],
|
|
[compressedoctadiccap,compressedoctadiccap,compressedoctadiccap]]);
|
|
|
|
//Replace old compressed capacitors with functional ones
|
|
recipes.addShapeless(compressedoctadiccap, [<contenttweaker:compressedoctadiccapacitor>]);
|
|
recipes.addShapeless(doublecompressedoctadiccap, [<contenttweaker:doublecompressedoctadiccapacitor>]);
|
|
|
|
//An attempt to do the same in JEI
|
|
mods.jei.JEI.addItem(compressedoctadiccap);
|
|
mods.jei.JEI.addItem(doublecompressedoctadiccap);
|
|
<contenttweaker:compressedoctadiccapacitor>.addTooltip(format.white("Put the item into a crafting window if it has no lore"));
|
|
<contenttweaker:doublecompressedoctadiccapacitor>.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[] = [
|
|
<enderio:item_basic_capacitor:1>,
|
|
<enderio:item_basic_capacitor:2>
|
|
];
|
|
|
|
var wafers as IItemStack[] = [
|
|
<metaitem:wafer.glowstone>,
|
|
<metaitem:wafer.naquadah>
|
|
];
|
|
|
|
for i, wafer in wafers {
|
|
bonus = bonus * 2;
|
|
cost = cost * 2;
|
|
|
|
// EnderIO Light
|
|
makeShaped("enderio_light_" + bonus, <enderio:block_electric_light> * bonus, [
|
|
"GGG",
|
|
"WDW",
|
|
"WCW"
|
|
], {
|
|
W: wafer,
|
|
D: <ore:dustGlowstone>,
|
|
G: <ore:fusedQuartz>,
|
|
C: capacitors[i]
|
|
});
|
|
}
|
|
|
|
|
|
//Alloy Smelter recipe for Organic Black Dye
|
|
alloy.recipeBuilder()
|
|
.inputs(<minecraft:slime_ball>,<metaitem:dustCarbon>)
|
|
.outputs(<enderio:item_material:50>)
|
|
.duration(100)
|
|
.EUt(16)
|
|
.buildAndRegister();
|
|
|
|
// Z-Logic Controller (Cheap)
|
|
recipes.addShaped(<enderio:item_material:41>, [
|
|
[<metaitem:ingotSoularium>,<minecraft:skull:2> ,<metaitem:ingotSoularium>],
|
|
[<metaitem:ingotSoularium>,<ore:circuitGood> ,<metaitem:ingotSoularium>],
|
|
[<metaitem:wafer.silicon>, <metaitem:blockRedAlloy>,<metaitem:wafer.silicon>]
|
|
]);
|
|
|
|
//Ensure Correct Solidification
|
|
|
|
//val liquidMap as IItemStack[][ILiquidStack] = {
|
|
// <liquid:electrical_steel> : [<enderio:item_alloy_ingot:0>, <enderio:block_alloy:0>, <enderio:item_alloy_nugget:0>],
|
|
// <liquid:energetic_alloy> : [<enderio:item_alloy_ingot:1>, <enderio:block_alloy:1>, <enderio:item_alloy_nugget:1>],
|
|
// <liquid:vibrant_alloy> : [<enderio:item_alloy_ingot:2>, <enderio:block_alloy:2>, <enderio:item_alloy_nugget:2>],
|
|
// <liquid:conductive_iron> : [<enderio:item_alloy_ingot:4>, <enderio:block_alloy:4>, <enderio:item_alloy_nugget:4>],
|
|
// <liquid:pulsating_iron> : [<enderio:item_alloy_ingot:5>, <enderio:block_alloy:5>, <enderio:item_alloy_nugget:5>],
|
|
// <liquid:dark_steel> : [<enderio:item_alloy_ingot:6>, <enderio:block_alloy:6>, <enderio:item_alloy_nugget:6>],
|
|
// <liquid:end_steel> : [<enderio:item_alloy_ingot:8>, <enderio:block_alloy:8>, <enderio:item_alloy_nugget:8>]
|
|
//};
|
|
//
|
|
//for liquid, items in liquidMap {
|
|
//
|
|
// //Ingots
|
|
// solidifier.findRecipe(7, [<metaitem:shape.mold.ingot>], [liquid * 144]).remove();
|
|
// solidifier.recipeBuilder()
|
|
// .fluidInputs(liquid * 144)
|
|
// .notConsumable(<metaitem:shape.mold.ingot>)
|
|
// .outputs(items[0])
|
|
// .duration(20).EUt(8).buildAndRegister();
|
|
//
|
|
// //Blocks
|
|
// solidifier.findRecipe(7, [<metaitem:shape.mold.block>], [liquid * 1296]).remove();
|
|
// solidifier.recipeBuilder()
|
|
// .fluidInputs(liquid * 1296)
|
|
// .notConsumable(<metaitem:shape.mold.block>)
|
|
// .outputs(items[1])
|
|
// .duration(98).EUt(8).buildAndRegister();
|
|
//
|
|
// //Nuggets
|
|
// solidifier.findRecipe(7, [<metaitem:shape.mold.nugget>], [liquid * 144]).remove();
|
|
// solidifier.recipeBuilder()
|
|
// .fluidInputs(liquid * 144)
|
|
// .notConsumable(<metaitem:shape.mold.nugget>)
|
|
// .outputs(items[2] * 9)
|
|
// .duration(98).EUt(8).buildAndRegister();
|
|
//}
|
|
//
|
|
//val packagerArray = [
|
|
// [<enderio:item_alloy_nugget:6>,<enderio:item_alloy_ingot:6>],
|
|
// [<enderio:item_alloy_nugget:8>,<enderio:item_alloy_ingot:8>],
|
|
// [<enderio:item_alloy_nugget:5>,<enderio:item_alloy_ingot:5>],
|
|
// [<enderio:item_alloy_nugget:4>,<enderio:item_alloy_ingot:4>],
|
|
// [<enderio:item_alloy_nugget:1>,<enderio:item_alloy_ingot:1>],
|
|
// [<enderio:item_alloy_nugget:0>,<enderio:item_alloy_ingot:0>],
|
|
// [<enderio:item_alloy_nugget:2>,<enderio:item_alloy_ingot:2>]
|
|
//] as IItemStack[][];
|
|
//
|
|
//for nugget in packagerArray {
|
|
//
|
|
// compressor.findRecipe(2, [nugget[0] * 9], [null]).remove();
|
|
//
|
|
// compressor.recipeBuilder()
|
|
// .inputs(nugget[0]*9)
|
|
//// .notConsumable(<metaitem:circuit.integrated>.withTag({Configuration: 1}))
|
|
// .outputs(nugget[1])
|
|
// .duration(300).EUt(2).buildAndRegister();
|
|
//}
|
|
|
|
////Furnace Recipes
|
|
////End Steel
|
|
//furnace.remove(<metaitem:ingotEndSteel>, <metaitem:dustEndSteel>);
|
|
//furnace.addRecipe(<enderio:item_alloy_ingot:8>, <metaitem:dustEndSteel>);
|
|
//
|
|
////Vibrant Alloy
|
|
//furnace.remove(<metaitem:ingotVibrantAlloy>, <metaitem:dustVibrantAlloy>);
|
|
//furnace.addRecipe(<enderio:item_alloy_ingot:2>, <metaitem:dustVibrantAlloy>);
|
|
//
|
|
////Pulsating Iron
|
|
//furnace.remove(<metaitem:ingotPulsatingIron>, <metaitem:dustPulsatingIron>);
|
|
//furnace.addRecipe(<enderio:item_alloy_ingot:5>, <metaitem:dustPulsatingIron>);
|
|
//
|
|
////Energetic Alloy
|
|
//furnace.remove(<metaitem:ingotEnergeticAlloy>, <metaitem:dustEnergeticAlloy>);
|
|
//furnace.addRecipe(<enderio:item_alloy_ingot:1>, <metaitem:dustEnergeticAlloy>);
|
|
//
|
|
////Electrical Steel
|
|
//furnace.remove(<metaitem:ingotElectricalSteel>, <metaitem:dustElectricalSteel>);
|
|
//furnace.addRecipe(<enderio:item_alloy_ingot:0>, <metaitem:dustElectricalSteel>);
|
|
//
|
|
////Dark Steel
|
|
//furnace.remove(<metaitem:ingotDarkSteel>, <metaitem:dustDarkSteel>);
|
|
//furnace.addRecipe(<enderio:item_alloy_ingot:6>, <metaitem:dustDarkSteel>);
|
|
////Fixing Multismelter output of the dusts of the GTCE variants of Ender IO ingots
|
|
//val materialList as IItemStack[][] = [
|
|
//
|
|
// [<metaitem:dustElectricalSteel>, <enderio:item_alloy_ingot>],
|
|
// [<metaitem:dustEnergeticAlloy>, <enderio:item_alloy_ingot:1>],
|
|
// [<metaitem:dustVibrantAlloy>, <enderio:item_alloy_ingot:2>],
|
|
// [<metaitem:dustDarkSteel>, <enderio:item_alloy_ingot:6>],
|
|
// [<metaitem:dustEndSteel>, <enderio:item_alloy_ingot:8>],
|
|
// [<metaitem:dustPulsatingIron>, <enderio:item_alloy_ingot:5>],
|
|
// [<metaitem:dustConductiveIron>, <enderio:item_alloy_ingot:4>]
|
|
//
|
|
//
|
|
//] as IItemStack[][];
|
|
|
|
|
|
//for dust in materialList {
|
|
//
|
|
// furnace.recipeBuilder()
|
|
// .inputs(dust[0])
|
|
// .outputs(dust[1])
|
|
// .duration(128).EUt(4).buildAndRegister();
|
|
//
|
|
//}
|
|
|
|
recipes.addShapeless(<enderio:block_cap_bank:1>, [<enderio:block_cap_bank:1>]);
|
|
recipes.addShapeless(<enderio:block_cap_bank:2>, [<enderio:block_cap_bank:2>]);
|
|
recipes.addShapeless(<enderio:block_cap_bank:3>, [<enderio:block_cap_bank:3>]);
|