import crafttweaker.item.IItemStack; import crafttweaker.liquid.ILiquidStack; import crafttweaker.item.IIngredient; import crafttweaker.oredict.IOreDict; import crafttweaker.oredict.IOreDictEntry; import mods.artisanworktables.builder.RecipeBuilder; import mods.gregtech.material.MaterialRegistry; import mods.gregtech.material.Material; print("---------------Microcrafting Start------------------"); /* Templates #Artisan Worktables RecipeBuilder.get("basic") .setMinimumTier(int minimumTier) .setMaximumTier(int maximumTier) .setShaped(IItemStack[]) .setShapeless(IItemStack[]) .setSecondaryIngredients(IIngredient[] secondaryIngredients) .setConsumeSecondaryIngredients(boolean consumeSecondaryIngredients) .setFluid( * 250) .addTool(IIngredient tool, int damage) .addOutput(IItemStack output, @Optional int weight) .setExtraOutputOne(, 0.75) .create(); */ print("------------------Block Recipes Start-----------------"); #Slabs var slabsChanged as IItemStack[IItemStack] = { : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : }; for slab, block in slabsChanged { recipes.remove(slab); recipes.addShaped(block, [ [slab], [slab]]); RecipeBuilder.get("basic") .setShapeless([block]) .addTool(, 5) .addOutput(slab*2) .create(); } #Add max damage values to saws .maxDamage = 160; .maxDamage = 320; .maxDamage = 480; #Combining Saws recipes.addShapeless("stoneSawCombination", , [ .anyDamage().marked("saw1").noReturn(), .anyDamage().marked("saw2").noReturn()], function(out, ins, cInfo) { return ins.saw1.withDamage(max(0, 160 -((160 - ins.saw1.damage)+(160 - ins.saw2.damage)))); }, null); recipes.addShapeless("ironSawCombination", , [ .anyDamage().marked("saw1").noReturn(), .anyDamage().marked("saw2").noReturn()], function(out, ins, cInfo) { return ins.saw1.withDamage(max(0, 320 -((320 - ins.saw1.damage)+(320 - ins.saw2.damage)))); }, null); recipes.addShapeless("diamondSawCombination", , [ .anyDamage().marked("saw1").noReturn(), .anyDamage().marked("saw2").noReturn()], function(out, ins, cInfo) { return ins.saw1.withDamage(max(0, 480 -((480 - ins.saw1.damage)+(480 - ins.saw2.damage)))); }, null); print("-------------Block Recipes Initialized------------"); ################################################################# print("------------------Dust Recipes Start-----------------"); #dustBronze recipes.remove(); recipes.addShapeless(, [, , , ]); #dustInvar recipes.remove(); recipes.addShapeless(, [, , ]); #dustNickel recipes.remove(); recipes.addShapeless(, [, ]); #dustConstantan recipes.remove(); print("-------------Dust Recipes Initialized------------"); ################################################################# print("------------------Furnace Recipes Start-----------------"); var furnaceOresRecipesDisabled as IItemStack[IItemStack] = { : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : }; for ore, ingot in furnaceOresRecipesDisabled { furnace.remove(ingot, ore); } #constantan furnace.remove(); recipes.remove(); var furnaceRecipesDisabled as IIngredient[] = [ , , , ]; for i in furnaceRecipesDisabled { furnace.remove(i); } print("-------------Furnace Initialized------------"); ####################################################### print("-------------Gears Start------------"); print("--------------------------Gear Recipes Intialized -------------------------"); ###################################################################################### print("--------------------------Plate Recipes Start -------------------------"); print("--------------------------Plate Recipes Intialized -------------------------"); ############################################################## print("------------------Wood Recipes Start-----------------"); var plankWoodNerfed as IItemStack[IItemStack] = { : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : , : }; #Recipe Removal for plank, log in plankWoodNerfed { recipes.remove(plank); } #Stick Nerf - Removing all stick crafting for x in .items { recipes.remove(x); } #Worktable for plank, log in plankWoodNerfed { RecipeBuilder.get("basic") .setShapeless([log]) .addTool(, 15) .addOutput(plank*2) .create(); } print("-------------Wood Recipes Initialized------------"); ################################################################ print("----------------Microcrafting End-------------------");