SHARE
TWEET

Untitled

a guest Feb 23rd, 2020 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import crafttweaker.item.IItemStack;
  2. import crafttweaker.item.IIngredient;
  3. import crafttweaker.recipes.ICraftingRecipe;
  4.  
  5.  
  6. val planks = <ore:plankWood>;
  7. val logs = <ore:logWood>;
  8. val desCount = 1;
  9.  
  10. for item in planks.items {
  11.     val RecList = recipes.getRecipesFor(item);
  12.     for item in RecList {
  13.         val input = item.ingredients1D;
  14.         val inputStack = input[1].items;
  15.         val result = item.output;
  16.         if(logs has inputStack) {
  17.             recipes.removeByRecipeName(item.name);
  18.             val desResult = result * desCount;
  19.             recipes.addShapeless(desResult, input);
  20.         }
  21.     }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top