thephoenixlodge

Earthworks/chisel script

Aug 3rd, 2018
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. import crafttweaker.item.IItemStack;
  2. import mods.chisel.Carving;
  3.  
  4. val arraySlateBlue = [
  5. <earthworks:block_slate>,
  6. <earthworks:block_slate_slab>,
  7. <earthworks:block_slate_shingle>,
  8. <earthworks:block_slate_tile>
  9. ] as IItemStack[];
  10. val arraySlateGreen = [
  11. <earthworks:block_slate_green>,
  12. <earthworks:block_slate_slab_green>,
  13. <earthworks:block_slate_shingle_verte>,
  14. <earthworks:block_slate_tile_verte>
  15. ] as IItemStack[];
  16. val arraySlatePurple = [
  17. <earthworks:block_slate_purple>,
  18. <earthworks:block_slate_slab_purple>,
  19. <earthworks:block_slate_shingle_purple>,
  20. <earthworks:block_slate_tile_purple>
  21. ] as IItemStack[];
  22. val mapVerticalPlanks = {
  23. "planks-oak" : <earthworks:block_planks_vert>,
  24. "planks-spruce" : <earthworks:block_planks_vert:1>,
  25. "planks-birch" : <earthworks:block_planks_vert:2>,
  26. "planks-jungle" : <earthworks:block_planks_vert:3>,
  27. "planks-acacia" : <earthworks:block_planks_vert:4>,
  28. "planks-dark-oak" : <earthworks:block_planks_vert:5>
  29. } as IItemStack[string];
  30. val arrayFramedWattleDaub = [
  31. <earthworks:daub_cob_arrow0>,
  32. <earthworks:daub_cob_arrow1>,
  33. <earthworks:daub_cob_arrow2>,
  34. <earthworks:daub_cob_arrow3>,
  35. <earthworks:daub_cob_barndoor0>,
  36. <earthworks:daub_cob_barndoor1>,
  37. <earthworks:daub_cob_barndoor2>,
  38. <earthworks:daub_cob_barndoor3>,
  39. <earthworks:daub_cob_barndoor4>,
  40. <earthworks:daub_cob_barndoor5>,
  41. <earthworks:daub_cob_barndoor6>,
  42. <earthworks:daub_cob_barndoor7>,
  43. <earthworks:daub_cob_bottom_l>,
  44. <earthworks:daub_cob_bottom>,
  45. <earthworks:daub_cob_bottom_r>,
  46. <earthworks:daub_cob_left>,
  47. <earthworks:daub_cob_parallel_hor>,
  48. <earthworks:daub_cob_parallel_vert>,
  49. <earthworks:daub_cob_right>,
  50. <earthworks:daub_cob_slash_back>,
  51. <earthworks:daub_cob_slash>,
  52. <earthworks:daub_cob_square>,
  53. <earthworks:daub_cob_square_x>,
  54. <earthworks:daub_cob_top_l>,
  55. <earthworks:daub_cob_top>,
  56. <earthworks:daub_cob_top_r>,
  57. <earthworks:daub_cob_triangle0>,
  58. <earthworks:daub_cob_triangle1>,
  59. <earthworks:daub_cob_triangle2>,
  60. <earthworks:daub_cob_triangle3>,
  61. <earthworks:daub_cob_xbottom>,
  62. <earthworks:daub_cob_xdoor0>,
  63. <earthworks:daub_cob_xdoor2>,
  64. <earthworks:daub_cob_xdoor3>,
  65. <earthworks:daub_cob_xleft>,
  66. <earthworks:daub_cob_x>,
  67. <earthworks:daub_cob_xright>,
  68. <earthworks:daub_cob_xtop>
  69. ] as IItemStack[];
  70. val arrayFramedLathPlaster = [
  71. <earthworks:plaster_arrow0>,
  72. <earthworks:plaster_arrow1>,
  73. <earthworks:plaster_arrow2>,
  74. <earthworks:plaster_arrow3>,
  75. <earthworks:plaster_barndoor0>,
  76. <earthworks:plaster_barndoor1>,
  77. <earthworks:plaster_barndoor2>,
  78. <earthworks:plaster_barndoor3>,
  79. <earthworks:plaster_barndoor4>,
  80. <earthworks:plaster_barndoor5>,
  81. <earthworks:plaster_barndoor6>,
  82. <earthworks:plaster_barndoor7>,
  83. <earthworks:plaster_bottom_l>,
  84. <earthworks:plaster_bottom>,
  85. <earthworks:plaster_bottom_r>,
  86. <earthworks:plaster_left>,
  87. <earthworks:plaster_parallel_hor>,
  88. <earthworks:plaster_parallel_vert>,
  89. <earthworks:plaster_right>,
  90. <earthworks:plaster_slash_back>,
  91. <earthworks:plaster_slash>,
  92. <earthworks:plaster_square>,
  93. <earthworks:plaster_square_x>,
  94. <earthworks:plaster_top_l>,
  95. <earthworks:plaster_top>,
  96. <earthworks:plaster_top_r>,
  97. <earthworks:plaster_triangle0>,
  98. <earthworks:plaster_triangle1>,
  99. <earthworks:plaster_triangle2>,
  100. <earthworks:plaster_triangle3>,
  101. <earthworks:plaster_xbottom>,
  102. <earthworks:plaster_xdoor0>,
  103. <earthworks:plaster_xdoor1>,
  104. <earthworks:plaster_xdoor2>,
  105. <earthworks:plaster_xdoor3>,
  106. <earthworks:plaster_xleft>,
  107. <earthworks:plaster_x>,
  108. <earthworks:plaster_xright>,
  109. <earthworks:plaster_xtop>,
  110. ] as IItemStack[];
  111. val itemTimberFrame = <earthworks:item_timber>;
  112. val blockWattleDaub = <earthworks:block_wattle>;
  113. val blockLathPlaster = <earthworks:block_plaster>;
  114.  
  115.  
  116. //Framed Wattle and Daub
  117. Carving.addGroup("framedWattleDaub");
  118. for framedWD in arrayFramedWattleDaub {
  119. recipes.remove(framedWD);
  120. Carving.addVariation("framedWattleDaub", framedWD);
  121. }
  122. recipes.addShaped(arrayFramedWattleDaub[0], [[itemTimberFrame, blockWattleDaub, itemTimberFrame], [blockWattleDaub, blockWattleDaub, blockWattleDaub], [itemTimberFrame, blockWattleDaub, itemTimberFrame]]);
  123.  
  124. //Framed Lath and Plaster
  125. Carving.addGroup("framedLathPlaster");
  126. for framedLP in arrayFramedLathPlaster {
  127. recipes.remove(framedLP);
  128. Carving.addVariation("framedLathPlaster", framedLP);
  129. }
  130. recipes.addShaped(arrayFramedLathPlaster[0], [[itemTimberFrame, blockLathPlaster, itemTimberFrame], [blockLathPlaster, blockLathPlaster, blockLathPlaster], [itemTimberFrame, blockLathPlaster, itemTimberFrame]]);
  131.  
  132.  
  133. //Blue slate
  134. Carving.addGroup("slateBlue");
  135. for slateB in arraySlateBlue {
  136. Carving.addVariation("slateBlue", slateB);
  137. }
  138.  
  139. //Blue slate
  140. Carving.addGroup("slateGreen");
  141. for slateG in arraySlateGreen {
  142. Carving.addVariation("slateGreen", slateG);
  143. }
  144.  
  145. //Purple slate
  146. Carving.addGroup("slatePurple");
  147. for slateP in arraySlatePurple {
  148. Carving.addVariation("slatePurple", slateP);
  149. }
  150.  
  151. //Vertical planks
  152. for plankGroup, vertiPlank in mapVerticalPlanks {
  153. recipes.remove(vertiPlank);
  154. Carving.addVariation(plankGroup, vertiPlank);
  155. }
Advertisement
Add Comment
Please, Sign In to add comment