/* SevTech: Ages GalactiCraft Recipe Script This script handles the recipes for GalactiCraft. 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.IItemStack; import crafttweaker.item.IIngredient; import scripts.crafttweaker.utils; /* Shaped Recipes */ static shapedRecipes as IIngredient[][][][IItemStack] = { : [ [ [metals.aluminum.plate, , metals.aluminum.plate], [metals.aluminum.plate, , metals.aluminum.plate], [, , ] ] ], : [ [ [, , ], [, , ], [, , ] ] ], : [ [ [, null, ], [null, metals.invar.gear, null], [, null, ] ] ], : [ [ [, , ], [, , ], [, , ] ] ], : [ [ [, , ], [, , ], [, metals.lead.ingot, ] ] ], : [ [ [metals.lead.ingot, metals.lead.ingot, metals.lead.ingot], [metals.lead.ingot, , metals.lead.ingot], [metals.lead.ingot, metals.lead.ingot, metals.lead.ingot] ] ], : [ [ [metals.lead.ingot, , metals.lead.ingot], [, metals.lead.ingot, ], [metals.lead.ingot, , metals.lead.ingot] ] ], : [ [ [metals.lead.ingot, , metals.lead.ingot], [, metals.lead.ingot, ], [metals.lead.ingot, , metals.lead.ingot] ] ], : [ [ [, , ], [, , ], [, .withTag({Potion: "minecraft:healing"}), .withTag({Potion: "minecraft:long_night_vision"})] ] ] }; static namedShapedRecipes as IIngredient[][][][string][IItemStack] = {}; /* Mirrored Recipes */ static mirroredRecipes as IIngredient[][][][IItemStack] = {}; static namedMirroredRecipes as IIngredient[][][][string][IItemStack] = {}; /* Shapeless Recipes */ static shapelessRecipes as IIngredient[][][IItemStack] = { * 16 : [ [, , , ] ], * 32 : [ [, , , ] ], : [ [, ] ] }; static namedShapelessRecipes as IIngredient[][][string][IItemStack] = {}; /* Furnace Recipes */ static furnaceRecipes as IIngredient[][IItemStack] = { .firstItem: [], metals.titanium.ingot.firstItem: [, ], .firstItem: [] }; /* Recipe Removals */ static removeRecipes as IItemStack[] = [ , , , , , , , , , , , ]; static removeFurnace as IIngredient[] = [ , , , ]; function initParachuteRecipes() { for i in 0 to 16 { var parachute as IItemStack = .definition.makeStack(i); if (i == 0) { recipes.removeByRecipeName("galacticraftcore:parachute_" ~ i ~ "_alt"); } else { recipes.removeByRecipeName("galacticraftcore:parachute_" ~ i); } recipes.addShapeless(parachute, [, oreDict.get("dye" ~ utils.capitalize(parachuteDyeIdTable[i]))]); } } function init() { // Un-named recipes recipeUtil.process(shapedRecipes, false); recipeUtil.process(mirroredRecipes, true); recipeUtil.process(shapelessRecipes); // Named recipes recipeUtil.processNamed(namedShapedRecipes, false); recipeUtil.processNamed(namedMirroredRecipes, true); recipeUtil.processNamed(namedShapelessRecipes); // Furnace recipes recipeUtil.processFurnace(furnaceRecipes); recipeUtil.removeRecipes(removeRecipes); recipeUtil.removeFurnace(removeFurnace); // Create the parachute reicpes scripts.crafttweaker.recipes.mods.galacticraft.initParachuteRecipes(); // Remove the Lead Block recipe. recipes.removeShaped(, [ [, , ], [, , ], [, , ] ]); // Remove the conversion recipe. recipes.removeShaped( * 9, [ [] ]); }