/* SevTech: Ages Wood Script This script handles adding/removing recipes for logs to planks. 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; import mods.betterwithmods.Kiln; import mods.betterwithmods.Saw; import mods.primaltech.WaterSaw; /* This listing contains the pairs for the Logs -> Planks. */ static plankLogPairs as IIngredient[][IItemStack] = { : [ , ], : [ ], : [ ], : [ ], : [ , , , , , ], : [ , , , , , ], : [ , , ], : [ , ], : [ , , ], : [ , , ], : [ , ], : [ ], : [ ], : [ ], : [ ], : [ ], : [ ], : [ ], : [ ], : [ ], : [ ], : [ ], : [ ], : [ , ], : [ , ], : [ ], : [ , ], : [ ], : [ ], : [ , ], : [ , ], : [ ], : [ , , ], : [ , ], : [ ], : [ ], : [ ], : [ ], : [ ], : [ ] }; /* This array listing should only contain logs which don't have planks from the mod or don't make sense to convert to Vanilla Planks. This will then remove the log from processig recipes (in higher tech) to not turn out as chopping blocks. */ static logsToRemove as IItemStack[] = [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ]; static sawSlabs as IItemStack[IItemStack] = { : , : , : , : , : , : , : , : }; function init() { // Add the recipes needed. for plank, logs in plankLogPairs { for log in logs { // Horse Power horsePower.addChopping(plank * 4, log, 4, true); horsePower.addChopping(plank * 4, log, 2, false); // Primal Tech WaterSaw.addRecipe(plank, log, 80); // Mekanism mekanism.removeSawmill(log); // For any recipes that need logs as an IItemStack. for logItem in log.items { // Better With Mods Saw.builder() .buildRecipe(log, [plank * 6, .firstItem * 2]) .setInputBlockDrop(logItem as IItemStack) .build(); Kiln.builder() .buildRecipe(log, []) .setHeat(2) .build(); // Mekanism mekanism.addSawmill(logItem, plank * 6, .firstItem * 2, 0.25); } } } // Remove the recipes for the log. for log in logsToRemove { mekanism.removeSawmill(log); } // Better stick recipes. (Lower tech recipe to use slabs to convert to sticks before players unlock higher tech) for slab in .items { var hasThinSlab = false; for slabWithThin in sawSlabs.keys { if (slab.matches(slabWithThin)) { hasThinSlab = true; break; } } if !hasThinSlab { Saw.builder() .buildRecipe(slab, [ * 4]) .build(); } } for slab, thinSlab in sawSlabs { Saw.builder() .buildRecipe(slab, [thinSlab * 2]) .setInputBlockDrop(slab) .build(); Saw.builder() .buildRecipe(thinSlab, [ * 2] as IItemStack[]) .setInputBlockDrop(thinSlab) .build(); } }