Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import crafttweaker.item.IItemStack;
- import crafttweaker.item.IIngredient;
- import crafttweaker.recipes.ICraftingRecipe;
- val planks = <ore:plankWood>;
- val logs = <ore:logWood>;
- val desCount = 1;
- for item in planks.items {
- val RecList = recipes.getRecipesFor(item);
- for item in RecList {
- val input = item.ingredients1D;
- val inputStack = input[1].items;
- val result = item.output;
- if(logs has inputStack) {
- recipes.removeByRecipeName(item.name);
- val desResult = result * desCount;
- recipes.addShapeless(desResult, input);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement