LezChap

SF4.0.5 - bdsandm.zs "fix"

May 18th, 2019
758
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 KB | None | 0 0
  1. /*
  2. SkyFactory 4 BDSandM Recipe Script
  3.  
  4. This script handles the recipes for BDSandM.
  5. */
  6. import crafttweaker.item.IItemStack;
  7. import crafttweaker.item.IIngredient;
  8. /*
  9. Shaped Recipes
  10. */
  11. static shapedRecipes as IIngredient[][][][IItemStack] = {
  12. <bdsandm:wood_crate>.withTag({crateCap: {maxCap: 1024, objColors: [-1, -1] as int[], oreDict: 0 as byte, overflow: 0 as byte, refStack: {id: "minecraft:air", Count: 0 as byte, tag: {}, Damage: 0 as short}, count: 0, locked: 0 as byte, stackCap: 64}}): [
  13. [
  14. [<ore:plankWood>, <ore:plankWood>, <ore:plankWood>],
  15. [null, <minecraft:chest>, null],
  16. [<ore:plankWood>, <ore:plankWood>, <ore:plankWood>]
  17. ]
  18. ],
  19. <bdsandm:wood_barrel>.withTag({barrelCap: {maxCap: 1024, objColors: [-1, -1, -1, -1] as int[], refFluid: {}, oreDict: 0 as byte, overflow: 0 as byte, refStack: {id: "minecraft:air", Count: 1 as byte, tag: {}, Damage: 0 as short}, count: 0, locked: 0 as byte, stackCap: 64}}): [
  20. [
  21. [<ore:plankWood>, <minecraft:wooden_pressure_plate>, <ore:plankWood>],
  22. [<ore:plankWood>, <ore:woodCauldron>, <ore:plankWood>],
  23. [<ore:plankWood>, <minecraft:wooden_pressure_plate>, <ore:plankWood>]
  24. ]
  25. ],
  26. <bdsandm:metal_crate>.withTag({crateCap: {maxCap: 32768, objColors: [-1, -1] as int[], oreDict: 0 as byte, overflow: 0 as byte, refStack: {id: "minecraft:air", Count: 1 as byte, tag: {}, Damage: 0 as short}, count: 0, locked: 0 as byte, stackCap: 64}}): [
  27. [
  28. [<ore:plateIron>, <ore:plateIron>, <ore:plateIron>],
  29. [null, <bdsandm:wood_crate>, null],
  30. [<ore:plateIron>, <ore:plateIron>, <ore:plateIron>]
  31. ]
  32. ],
  33. <bdsandm:metal_barrel>.withTag({barrelCap: {maxCap: 32768, objColors: [-1, -1, -1, -1] as int[], refFluid: {}, oreDict: 0 as byte, overflow: 0 as byte, refStack: {id: "minecraft:air", Count: 1 as byte, tag: {}, Damage: 0 as short}, count: 0, locked: 0 as byte, stackCap: 64}}): [
  34. [
  35. [<ore:plateIron>, <minecraft:heavy_weighted_pressure_plate>, <ore:plateIron>],
  36. [<ore:plateIron>, <bdsandm:wood_barrel>, <ore:plateIron>],
  37. [<ore:plateIron>, <minecraft:heavy_weighted_pressure_plate>, <ore:plateIron>]
  38. ]
  39. ],
  40. <bdsandm:shipping_container>: [
  41. [
  42. [<minecraft:iron_block>, <minecraft:iron_block>, <minecraft:iron_block>],
  43. [<minecraft:iron_block>, <bdsandm:metal_crate>, <minecraft:iron_block>],
  44. [<minecraft:iron_block>, <minecraft:iron_bars>, <minecraft:iron_block>]
  45. ]
  46. ],
  47. <bdsandm:upgrade>: [
  48. [
  49. [<ore:plankWood>, <minecraft:chest>, <ore:plankWood>],
  50. [<ore:plankWood>, <minecraft:wooden_pressure_plate>, <ore:plankWood>],
  51. [<ore:plankWood>, <minecraft:chest>, <ore:plankWood>]
  52. ]
  53. ],
  54. <bdsandm:upgrade:1>: [
  55. [
  56. [<ore:ingotTin>, <minecraft:chest>, <ore:ingotTin>],
  57. [<ore:ingotTin>, <minecraft:stone_pressure_plate>, <ore:ingotTin>],
  58. [<ore:ingotTin>, <minecraft:chest>, <ore:ingotTin>]
  59. ]
  60. ],
  61. <bdsandm:upgrade:2>: [
  62. [
  63. [<minecraft:gold_ingot>, <minecraft:diamond>, <minecraft:gold_ingot>],
  64. [<minecraft:gold_ingot>, <minecraft:heavy_weighted_pressure_plate>, <minecraft:gold_ingot>],
  65. [<minecraft:gold_ingot>, <minecraft:diamond>, <minecraft:gold_ingot>]
  66. ]
  67. ],
  68. <bdsandm:upgrade:3>: [
  69. [
  70. [<minecraft:emerald>, <minecraft:obsidian>, <minecraft:emerald>],
  71. [<minecraft:emerald>, <minecraft:light_weighted_pressure_plate>, <minecraft:emerald>],
  72. [<minecraft:emerald>, <minecraft:obsidian>, <minecraft:emerald>]
  73. ]
  74. ],
  75. <bdsandm:upgrade:5>: [
  76. [
  77. [<ore:plankWood>, <minecraft:dye:4>, <ore:plankWood>],
  78. [<ore:plankWood>, <minecraft:book>, <ore:plankWood>],
  79. [<ore:plankWood>, <minecraft:dye:4>, <ore:plankWood>]
  80. ]
  81. ],
  82. <bdsandm:upgrade:6>: [
  83. [
  84. [<minecraft:obsidian>, <minecraft:chest>, <minecraft:obsidian>],
  85. [<minecraft:obsidian>, <tconstruct:fancy_frame>, <minecraft:obsidian>],
  86. [<minecraft:obsidian>, <minecraft:chest>, <minecraft:obsidian>]
  87. ]
  88. ],
  89. <bdsandm:upgrade:7>: [
  90. [
  91. [null, <bdsandm:upgrade>, null],
  92. [null, <bdsandm:crate_key>, null],
  93. [null, <bdsandm:upgrade>, null]
  94. ]
  95. ]
  96. };
  97.  
  98. static namedShapedRecipes as IIngredient[][][][string][IItemStack] = {
  99. };
  100.  
  101. /*
  102. Mirrored Recipes
  103. */
  104. static mirroredRecipes as IIngredient[][][][IItemStack] = {
  105. };
  106.  
  107. static namedMirroredRecipes as IIngredient[][][][string][IItemStack] = {
  108. };
  109.  
  110. /*
  111. Shapeless Recipes
  112. */
  113. static shapelessRecipes as IIngredient[][][IItemStack] = {
  114. };
  115.  
  116. static namedShapelessRecipes as IIngredient[][][string][IItemStack] = {
  117. };
  118.  
  119. /*
  120. Recipe Removals
  121. */
  122. static removeRecipes as IItemStack[] = [
  123. <bdsandm:metal_barrel>,
  124. <bdsandm:metal_crate>,
  125. <bdsandm:shipping_container>,
  126. <bdsandm:upgrade:1>,
  127. <bdsandm:upgrade:2>,
  128. <bdsandm:upgrade:3>,
  129. <bdsandm:upgrade:5>,
  130. <bdsandm:upgrade>,
  131. <bdsandm:wood_barrel>,
  132. <bdsandm:wood_crate>,
  133. <bdsandm:upgrade:6>,
  134. <bdsandm:upgrade:7>
  135. ];
  136.  
  137. function init() {
  138. // Un-named recipes
  139. recipeUtil.process(shapedRecipes, false);
  140. recipeUtil.process(mirroredRecipes, true);
  141. recipeUtil.process(shapelessRecipes);
  142.  
  143. // Named recipes
  144. recipeUtil.processNamed(namedShapedRecipes, false);
  145. recipeUtil.processNamed(namedMirroredRecipes, true);
  146. recipeUtil.processNamed(namedShapelessRecipes);
  147.  
  148. recipeUtil.removeRecipes(removeRecipes);
  149. }
Add Comment
Please, Sign In to add comment