/* SevTech: Ages Mekanism Craft Script This script handles custom integration control to a mod. Note: These scripts are created and for the usage in SevTech: Ages and other modpacks curated by DarkPacks. You can use these scripts for reference and for learning but not for copying and pasting and claiming as your own. */ import crafttweaker.item.IIngredient; import crafttweaker.item.IItemStack; // Map for additional Precision Sawmill recipes - output: [inputs]. Will produce 6 times output, and // 25% chance of sawdust. static sawRecipes as IIngredient[][IItemStack] = { .firstItem: [ ], : [ ], : [ ], : [ ] }; // Sticks to be turned into a dust at a 1:1 ratio static sticksToDust as IItemStack[] = [ , .firstItem, , ]; // These recipes must be explicitly removed - for some reason oredict removal doesn't catch them. static sawRecipeRemove as IIngredient[] = [ , , , , , , , , ]; function init() { /* Chemical Injection Recipes */ // Add a recipe to make Sulfer using the Chemical Injection. TODO: Use the resources global once completed. mekanism.addChemicalInjection(, , .firstItem); /* Combiner Recipes */ // Generic Removals mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(); mekanism.removeCombiner(, * 8, ); /* Enrichment Recipes */ // Obsidian Fix mekanism.removeEnrichment(); mekanism.addEnrichment(, .firstItem * 4); mekanism.removeEnrichment(, ); /* Metallurgic Infuser */ mekanism.addInfusion("OBSIDIAN", 20, .firstItem, * 2); mekanism.addInfusion("OBSIDIAN", 20, , ); // Correct steel dust mekanism.addInfusion("CARBON", 10, , metals.steel.dust.firstItem); mekanism.addInfusion("DIAMOND", 80, , ); /* Energized Smelter */ mekanism.removeSmelter(); /* Crusher */ mekanism.addCrusher(, * 4); mekanism.addCrusher(, ); mekanism.addCrusher(, ); mekanism.addCrusher(, ); mekanism.addCrusher(, ); mekanism.addCrusher(, * 9); mekanism.addCrusher(, * 2); mekanism.addCrusher(, ); mekanism.addCrusher(, ); mekanism.addCrusher(, ); mekanism.addCrusher(, * 2); mekanism.addCrusher(.withTag({}), * 3); // Death Compass -> Bone Meal /* Saw */ for input in sawRecipeRemove { mekanism.removeSawmill(input); } for output, inputs in sawRecipes { for inputIngredient in inputs { mekanism.removeSawmill(inputIngredient); for input in inputIngredient.items { mekanism.addSawmill(input, output * 6, .firstItem, 0.25); } } } // Slabs to sticks - re-create as they output mekanism sawdust mekanism.removeSawmill(); mekanism.addSawmill(, .firstItem * 3, .firstItem, 0.13); for input in sticksToDust { mekanism.addSawmill(input, .firstItem); } // Jukebox handling mekanism.removeSawmill( as IIngredient); mekanism.addSawmill(, * 8, , 1.0); /* Pressurised Reaction Chamber */ // mekanism.removePRC(null, , , , ); // TODO: Was not able to remove the recipe mekanism.addPRC(, * 20, * 20, null, * 20, 0.0, 30); }