Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. import crafttweaker.item.IItemStack;
  2. import crafttweaker.item.IIngredient;
  3.  
  4. var logArr as IItemStack[];
  5. var plankArr as IItemStack[];
  6. var length = 0;
  7.  
  8. /*Make Plaster and Bandage actually useful*/
  9. recipes.remove(<roughtweaks:plaster>);
  10. recipes.remove(<roughtweaks:bandage>);
  11. recipes.addShapeless(<roughtweaks:plaster>, [<ore:paper>, <ore:paper>]);
  12. recipes.addShapeless(<roughtweaks:bandage>, [<ore:fatAnimal>, <ore:paper>, <ore:paper>, <ore:paper>]);
  13.  
  14. /*Fix plank recipes*/
  15. /*recipes.removeByRegex("(biomesoplenty|extratrees|pvj)\:(planks\_[a-z]+|[a-z]+\_(planks|[a-z]+\_planks))");*/
  16. recipes.removeShapeless(<ore:plankWood> * 4, [<ore:logWood>]);
  17. print("Removed plank recipes");
  18. /*recipes.addShaped(<ore:plankWood> * 2, [[<ore:toolAxe> | <ore:toolHatchet>, null], [<ore:logWood>, null]]);*/
  19. /*recipes.addShaped("pcPlanks", <ore:plankWood>, [[<ore:toolAxe>,null,null], [<ore:logWood>,null,null], [null,null,null]]);*/
  20.  
  21. for log in <ore:logWood>.items {
  22. logArr += log;
  23. length += 1;
  24. }
  25.  
  26. for plank in <ore:plankWood>.items {
  27. plankArr += plank;
  28. }
  29.  
  30. for i in 0 to length{
  31. var theLog = logArr[i] as IItemStack;
  32. var thePlank = plankArr[i] as IItemStack;
  33. recipes.addShaped(theLog.displayName+"ToPlanks", thePlank * 2, [[<ore:toolAxe>], [theLog]]);
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement