Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.18 KB | None | 0 0
  1. import mods.mfr.AutoSpawner;
  2. import mods.gregtech.CuttingSaw;
  3.  
  4. // Blacklist Butterfly from MFR AutoSpawner
  5.  
  6. AutoSpawner.addBlacklist("forestry.lepidopterology.entities.EntityButterfly");
  7.  
  8. // Custom Stamp recipe
  9.  
  10. recipes.remove(<Forestry:stamps> );
  11. recipes.addShaped(<Forestry:stamps>, [
  12. [<ore:gemApatite>, <ore:gemApatite>, <ore:gemApatite>],
  13. [<minecraft:paper>, <minecraft:paper>, <minecraft:paper>],
  14. [<Forestry:honeyDrop> ,<Forestry:honeyDrop> ,<Forestry:honeyDrop>]
  15. ]);
  16.  
  17. /*
  18. Forestry4 wood recipes a la Gregtech sauce.
  19. There are currently 29 wood types in Forestry:
  20. LARCH, TEAK, ACACIA, LIME, CHESTNUT, WENGE, BAOBAB, SEQUOIA, KAPOK, EBONY, MAHOGANY, BALSA, WILLOW, WALNUT, GREENHEART, CHERRY, MAHOE, POPLAR, PALM, PAPAYA, PINE, PLUM, MAPLE, CITRUS, GIGANTEUM, IPE, PADAUK, COCOBOLO, ZEBRAWOOD
  21. */
  22.  
  23. var woodTypes = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28] as int[];
  24. val dustWood = <gregtech:gt.metaitem.01:2809>;
  25. val toolSaw = <ore:craftingToolSaw>;
  26. val water = <liquid:water>;
  27. val distilledWater = <liquid:ic2distilledwater>;
  28. val lubricant = <liquid:lubricant>;
  29.  
  30. for woodType in woodTypes
  31. {
  32. var plankWood = <Forestry:planks>.definition.makeStack(woodType);
  33. var plankWoodFireproof = <Forestry:planksFireproof>.definition.makeStack(woodType);
  34. var logWood = <Forestry:logs>.definition.makeStack(woodType);
  35. var logWoodFireproof = <Forestry:logsFireproof>.definition.makeStack(woodType);
  36. var slabWood = <Forestry:slabs>.definition.makeStack(woodType);
  37. var slabWoodFireproof = <Forestry:slabsFireproof>.definition.makeStack(woodType);
  38.  
  39. // Planks from Slabs
  40.  
  41. // Combine 2 Slabs into a Plank
  42. recipes.addShaped(plankWood, [[slabWood], [slabWood]]);
  43. recipes.addShaped(plankWoodFireproof, [[slabWoodFireproof], [slabWoodFireproof]]);
  44.  
  45. // Planks from Logs
  46.  
  47. // Hand slash a Log into 2 Planks (Steve's super power nerfed)
  48. recipes.remove(plankWood * 2);
  49. recipes.addShapeless(plankWood * 2, [logWood]);
  50. recipes.remove(plankWoodFireproof * 2);
  51. recipes.addShapeless(plankWoodFireproof * 2, [logWoodFireproof]);
  52.  
  53. // Saw a Log into 4 Planks
  54. recipes.remove(plankWood * 4);
  55. recipes.addShaped(plankWood * 4, [[toolSaw],[logWood]]);
  56. recipes.remove(plankWoodFireproof * 4);
  57. recipes.addShaped(plankWoodFireproof * 4, [[toolSaw],[logWoodFireproof]]);
  58.  
  59. // Planks with a Log in CuttingSaw
  60. CuttingSaw.addRecipe([plankWood * 4, dustWood * 2], logWood, water, 400, 8);
  61. CuttingSaw.addRecipe([plankWood * 4, dustWood * 2], logWood, distilledWater, 400, 8);
  62. CuttingSaw.addRecipe([plankWood * 6, dustWood * 1], logWood, lubricant, 200, 8);
  63. CuttingSaw.addRecipe([plankWoodFireproof * 4, dustWood * 2], logWoodFireproof, water, 400, 8);
  64. CuttingSaw.addRecipe([plankWoodFireproof * 4, dustWood * 2], logWoodFireproof, distilledWater, 400, 8);
  65. CuttingSaw.addRecipe([plankWoodFireproof * 6, dustWood * 1], logWoodFireproof, lubricant, 200, 8);
  66.  
  67. // Slabs from Planks
  68.  
  69. // 2 Slabs from a Plank with Saw
  70. recipes.remove(slabWood);
  71. recipes.addShaped(slabWood * 2, [[toolSaw, plankWood]]);
  72. recipes.remove(slabWoodFireproof);
  73. recipes.addShaped(slabWoodFireproof * 2, [[toolSaw, plankWoodFireproof]]);
  74.  
  75. // 2 Slabs with a Plank in CuttingSaw
  76. CuttingSaw.addRecipe([slabWood * 2], plankWood, water, 40, 4);
  77. CuttingSaw.addRecipe([slabWood * 2], plankWood, distilledWater, 40, 4);
  78. CuttingSaw.addRecipe([slabWood * 2], plankWood, lubricant, 20, 4);
  79. CuttingSaw.addRecipe([slabWoodFireproof * 2], plankWoodFireproof, water, 40, 4);
  80. CuttingSaw.addRecipe([slabWoodFireproof * 2], plankWoodFireproof, distilledWater, 40, 4);
  81. CuttingSaw.addRecipe([slabWoodFireproof * 2], plankWoodFireproof, lubricant, 20, 4);
  82. }
  83.  
  84. /*
  85. 2 GT Wood covers from 1 Forestry Slab
  86. Gregtech 5.09.12 still doess not have all forestry WoodTypes as covers.
  87. Damage values above 32499 are occupied by crop products, so we are screwed.
  88. Forestry woods GT covers start at Damage 32476.
  89. GT covers only use first 24 Forestry wood types.
  90. */
  91.  
  92. var coverGTForestryWoods = [
  93. 32476, 32477, 32478, 32479, 32480, 32481, 32482, 32483, 32484, 32485,
  94. 32486, 32487, 32488, 32489, 32490, 32491, 32492, 32493, 32494, 32495,
  95. 32496, 32497, 32498, 32499
  96. ] as int[];
  97.  
  98. for woodType, coverID in coverGTForestryWoods
  99. {
  100. var cover = <gregtech:gt.metaitem.02>.definition.makeStack(coverID);
  101. var slabWood = <Forestry:slabs>.definition.makeStack(woodType);
  102. var slabWoodFireproof = <Forestry:slabsFireproof>.definition.makeStack(woodType);
  103.  
  104. // 2 Covers using Saw on a Slab
  105. recipes.addShaped(cover * 2, [[toolSaw], [null, slabWood]]);
  106. recipes.addShaped(cover * 2, [[toolSaw], [null, slabWoodFireproof]]);
  107.  
  108. // 2 Covers using Cutting Machine on a Slab
  109. CuttingSaw.addRecipe([cover * 2], slabWood, water, 100, 8);
  110. CuttingSaw.addRecipe([cover * 2], slabWood, distilledWater, 100, 8);
  111. CuttingSaw.addRecipe([cover * 2], slabWood, lubricant, 40, 8);
  112.  
  113. // 2 Covers using Cutting Machine on a Fireproof Slab
  114. CuttingSaw.addRecipe([cover * 2], slabWoodFireproof, water, 100, 8);
  115. CuttingSaw.addRecipe([cover * 2], slabWoodFireproof, distilledWater, 100, 8);
  116. CuttingSaw.addRecipe([cover * 2], slabWoodFireproof, lubricant, 40, 8);
  117. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement