recipes_crystal_w.lua 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. local tool_repair ={
  2. {'default:sword_diamond', 'default:diamond'},
  3. {'default:axe_diamond', 'default:diamond'},
  4. {'default:shovel_diamond', 'default:diamond'},
  5. {'default:pick_diamond', 'default:diamond'},
  6. {'default:sword_mese', 'default:mese_crystal'},
  7. {'default:axe_mese', 'default:mese_crystal'},
  8. {'default:shovel_mese', 'default:mese_crystal'},
  9. {'default:pick_mese', 'default:mese_crystal'},
  10. {'3d_armor:boots_diamond', 'default:diamond'},
  11. {'3d_armor:chestplate_diamond', 'default:diamond'},
  12. {'3d_armor:helmet_diamond', 'default:diamond'},
  13. {'3d_armor:leggings_diamond', 'default:diamond'},
  14. {'shields:shield_diamond', 'default:diamond'},
  15. {'epic:axe_glowingdiamond', 'epic:glowingdiamond'},
  16. {'epic:pick_glowingdiamond', 'epic:glowingdiamond'},
  17. {'epic:shovel_glowingdiamond', 'epic:glowingdiamond'},
  18. {'epic:sword_glowingdiamond', 'epic:glowingdiamond'},
  19. }
  20. for i in ipairs (tool_repair) do
  21. local tool = tool_repair[i][1]
  22. local matrl = tool_repair[i][2]
  23. simplecrafting_lib.register('crystal_w', {
  24. input = {
  25. [tool] = 1,
  26. [matrl] = 1,
  27. ['stations:chitin'] = 1,
  28. },
  29. output = tool,
  30. })
  31. end
  32. --Diamond tools
  33. stations.dual_register_recipe('crystal_w', {
  34. input = {
  35. ['stations:chitin'] = 1,
  36. ['default:diamond'] = 3,
  37. },
  38. output = 'default:sword_diamond',
  39. })
  40. stations.dual_register_recipe('crystal_w', {
  41. input = {
  42. ['stations:chitin'] = 1,
  43. ['default:diamond'] = 3,
  44. ['group:stick'] = 1,
  45. },
  46. output = 'default:axe_diamond',
  47. })
  48. stations.dual_register_recipe('crystal_w', {
  49. input = {
  50. ['stations:chitin'] = 1,
  51. ['default:diamond'] = 3,
  52. ['group:stick'] = 1,
  53. },
  54. output = 'default:pick_diamond',
  55. })
  56. stations.dual_register_recipe('crystal_w', {
  57. input = {
  58. ['stations:chitin'] = 1,
  59. ['default:diamond'] = 1,
  60. ['group:stick'] = 2,
  61. },
  62. output = 'default:shovel_diamond',
  63. })
  64. --Mese tools
  65. stations.dual_register_recipe('crystal_w', {
  66. input = {
  67. ['stations:chitin'] = 1,
  68. ['default:mese_crystal'] = 3,
  69. ['group:stick'] = 1,
  70. },
  71. output = 'default:pick_mese',
  72. })
  73. stations.dual_register_recipe('crystal_w', {
  74. input = {
  75. ['stations:chitin'] = 1,
  76. ['default:mese_crystal'] = 3,
  77. ['group:stick'] = 1,
  78. },
  79. output = 'default:axe_mese',
  80. })
  81. stations.dual_register_recipe('crystal_w', {
  82. input = {
  83. ['stations:chitin'] = 1,
  84. ['default:mese_crystal'] = 1,
  85. ['group:stick'] = 2,
  86. },
  87. output = 'default:shovel_mese',
  88. })
  89. stations.dual_register_recipe('crystal_w', {
  90. input = {
  91. ['stations:chitin'] = 1,
  92. ['default:mese_crystal'] = 3,
  93. },
  94. output = 'default:sword_mese',
  95. })
  96. --glowingdiamond Tools
  97. stations.dual_register_recipe('crystal_w', {
  98. input = {
  99. ['stations:chitin'] = 1,
  100. ['epic:glowingdiamond'] = 3,
  101. },
  102. output = 'epic:sword_glowingdiamond',
  103. })
  104. stations.dual_register_recipe('crystal_w', {
  105. input = {
  106. ['stations:chitin'] = 1,
  107. ['epic:glowingdiamond'] = 3,
  108. ['group:stick'] = 1,
  109. },
  110. output = 'epic:axe_glowingdiamond',
  111. })
  112. stations.dual_register_recipe('crystal_w', {
  113. input = {
  114. ['stations:chitin'] = 1,
  115. ['epic:glowingdiamond'] = 3,
  116. ['group:stick'] = 1,
  117. },
  118. output = 'epic:pick_glowingdiamond',
  119. })
  120. stations.dual_register_recipe('crystal_w', {
  121. input = {
  122. ['stations:chitin'] = 1,
  123. ['epic:glowingdiamond'] = 1,
  124. ['group:stick'] = 2,
  125. },
  126. output = 'epic:shovel_glowingdiamond',
  127. })
  128. --armor_material caverealms:salt_gem,
  129. --{'epic:float_crystal', 'gravity'},
  130. --{'epic:bloodstone', 'healing'},
  131. --{'epic:huntite', 'fire'},
  132. --{'ocean:prismarine_crystals', 'water'},
  133. --{'epic:garnet', 'speed'},
  134. --{'quartz:quartz_crystal_piece', 'jump'}
  135. local armor_material = {
  136. gravity = 'epic:float_crystal',
  137. healing = 'epic:bloodstone',
  138. water = 'ocean:prismarine_crystals',
  139. fire = 'epic:huntite',
  140. speed = 'epic:garnet',
  141. }
  142. for name, mat in pairs(armor_material) do
  143. stations.dual_register_recipe('crystal_w', {
  144. input = {
  145. ['default:diamond'] = 5,
  146. ['mobs:leather'] = 1,
  147. ['stations:chitin'] = 1,
  148. [mat] = 1,
  149. },
  150. output = 'epic:helmet_'..name,
  151. })
  152. stations.dual_register_recipe('crystal_w', {
  153. input = {
  154. ['default:diamond'] = 8,
  155. ['mobs:leather'] = 1,
  156. ['stations:chitin'] = 1,
  157. [mat] = 1,
  158. },
  159. output = 'epic:chestplate_'..name,
  160. })
  161. stations.dual_register_recipe('crystal_w', {
  162. input = {
  163. ['default:diamond'] = 7,
  164. ['mobs:leather'] = 1,
  165. ['stations:chitin'] = 1,
  166. [mat] = 1,
  167. },
  168. output = 'epic:leggings_'..name,
  169. })
  170. stations.dual_register_recipe('crystal_w', {
  171. input = {
  172. ['default:diamond'] = 4,
  173. ['mobs:leather'] = 1,
  174. ['stations:chitin'] = 1,
  175. [mat] = 1,
  176. },
  177. output = 'epic:boots_'..name,
  178. })
  179. stations.dual_register_recipe('crystal_w', {
  180. input = {
  181. ['default:diamond'] = 5,
  182. ['group:fabric'] = 1,
  183. ['stations:chitin'] = 1,
  184. [mat] = 1,
  185. },
  186. output = 'epic:helmet_'..name,
  187. })
  188. stations.dual_register_recipe('crystal_w', {
  189. input = {
  190. ['default:diamond'] = 8,
  191. ['group:fabric'] = 1,
  192. ['stations:chitin'] = 1,
  193. [mat] = 1,
  194. },
  195. output = 'epic:chestplate_'..name,
  196. })
  197. stations.dual_register_recipe('crystal_w', {
  198. input = {
  199. ['default:diamond'] = 7,
  200. ['group:fabric'] = 1,
  201. ['stations:chitin'] = 1,
  202. [mat] = 1,
  203. },
  204. output = 'epic:leggings_'..name,
  205. })
  206. stations.dual_register_recipe('crystal_w', {
  207. input = {
  208. ['default:diamond'] = 4,
  209. ['group:fabric'] = 1,
  210. ['stations:chitin'] = 1,
  211. [mat] = 1,
  212. },
  213. output = 'epic:boots_'..name,
  214. })
  215. stations.dual_register_recipe('crystal_w', {
  216. input = {
  217. ['default:diamond'] = 1,
  218. ['epic:helmet_'..name] = 1,
  219. ['stations:chitin'] = 1,
  220. [mat] = 1,
  221. },
  222. output = 'epic:helmet_'..name,
  223. })
  224. simplecrafting_lib.register('crystal_w', {
  225. input = {
  226. ['default:diamond'] = 1,
  227. ['epic:chestplate_'..name] = 1,
  228. ['stations:chitin'] = 1,
  229. [mat] = 1,
  230. },
  231. output = 'epic:chestplate_'..name,
  232. })
  233. simplecrafting_lib.register('crystal_w', {
  234. input = {
  235. ['default:diamond'] = 1,
  236. ['epic:leggings_'..name] = 1,
  237. ['stations:chitin'] = 1,
  238. [mat] = 1,
  239. },
  240. output = 'epic:leggings_'..name,
  241. })
  242. simplecrafting_lib.register('crystal_w', {
  243. input = {
  244. ['default:diamond'] = 1,
  245. ['epic:boots_'..name] = 1,
  246. ['stations:chitin'] = 1,
  247. [mat] = 1,
  248. },
  249. output = 'epic:boots_'..name,
  250. })
  251. end
  252. --Diamond armor
  253. stations.dual_register_recipe('crystal_w', {
  254. input = {
  255. ['default:diamond'] = 5,
  256. ['mobs:leather'] = 1,
  257. ['stations:chitin'] = 1,
  258. },
  259. output = '3d_armor:helmet_diamond',
  260. })
  261. stations.dual_register_recipe('crystal_w', {
  262. input = {
  263. ['default:diamond'] = 8,
  264. ['mobs:leather'] = 1,
  265. ['stations:chitin'] = 1,
  266. },
  267. output = '3d_armor:chestplate_diamond',
  268. })
  269. stations.dual_register_recipe('crystal_w', {
  270. input = {
  271. ['default:diamond'] = 7,
  272. ['mobs:leather'] = 1,
  273. ['stations:chitin'] = 1,
  274. },
  275. output = '3d_armor:leggings_diamond',
  276. })
  277. stations.dual_register_recipe('crystal_w', {
  278. input = {
  279. ['default:diamond'] = 4,
  280. ['mobs:leather'] = 1,
  281. ['stations:chitin'] = 1,
  282. },
  283. output = '3d_armor:boots_diamond',
  284. })
  285. stations.dual_register_recipe('crystal_w', {
  286. input = {
  287. ['default:diamond'] = 7,
  288. ['mobs:leather'] = 1,
  289. ['stations:chitin'] = 1,
  290. },
  291. output = 'shields:shield_diamond',
  292. })
  293. stations.dual_register_recipe('crystal_w', {
  294. input = {
  295. ['default:diamond'] = 5,
  296. ['group:fabric'] = 1,
  297. ['stations:chitin'] = 1,
  298. },
  299. output = '3d_armor:helmet_diamond',
  300. })
  301. stations.dual_register_recipe('crystal_w', {
  302. input = {
  303. ['default:diamond'] = 8,
  304. ['group:fabric'] = 1,
  305. ['stations:chitin'] = 1,
  306. },
  307. output = '3d_armor:chestplate_diamond',
  308. })
  309. stations.dual_register_recipe('crystal_w', {
  310. input = {
  311. ['default:diamond'] = 7,
  312. ['group:fabric'] = 1,
  313. ['stations:chitin'] = 1,
  314. },
  315. output = '3d_armor:leggings_diamond',
  316. })
  317. stations.dual_register_recipe('crystal_w', {
  318. input = {
  319. ['default:diamond'] = 4,
  320. ['group:fabric'] = 1,
  321. ['stations:chitin'] = 1,
  322. },
  323. output = '3d_armor:boots_diamond',
  324. })
  325. stations.dual_register_recipe('crystal_w', {
  326. input = {
  327. ['default:diamond'] = 7,
  328. ['group:fabric'] = 1,
  329. ['stations:chitin'] = 1,
  330. },
  331. output = 'shields:shield_diamond',
  332. })
  333. stations.dual_register_recipe('crystal_w', {
  334. input = {
  335. ['default:mese_crystal'] = 1,
  336. },
  337. output = 'mobs:horseshoe_mese',
  338. })
  339. stations.dual_register_recipe('crystal_w', {
  340. input = {
  341. ['default:diamond'] = 1,
  342. },
  343. output = 'mobs:horseshoe_diamond',
  344. })
  345. stations.dual_register_recipe('crystal_w', {
  346. input = {
  347. ['epic:float_crystal_shard'] = 20,
  348. ['stations:chitin'] = 1,
  349. },
  350. output = 'epic:float_crystal',
  351. })
  352. stations.dual_register_recipe('crystal_w', {
  353. input = {
  354. ['epic:float_crystal'] = 5,
  355. ['default:diamondblock'] = 1,
  356. ['default:mese'] = 1,
  357. ['stations:chitin'] = 6,
  358. },
  359. output = 'epic:laputa',
  360. })
  361. stations.dual_register_recipe('crystal_w', {
  362. input = {
  363. ['epic:glowstone_fragment'] = 1,
  364. ['default:diamond'] = 1,
  365. ['stations:chitin'] = 2,
  366. },
  367. output = 'epic:glowingdiamond',
  368. })