recipes_anvil.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. local tool_repair ={
  2. {'default:axe_steel', 'default:steel_ingot'},
  3. {'default:pick_steel', 'default:steel_ingot'},
  4. {'default:shovel_steel', 'default:steel_ingot'},
  5. {'default:sword_steel', 'default:steel_ingot'},
  6. {'farming:hoe_steel', 'default:steel_ingot'},
  7. {'mobs:shears', 'default:steel_ingot'},
  8. {'default:axe_bronze', 'default:bronze_ingot'},
  9. {'default:pick_bronze', 'default:bronze_ingot'},
  10. {'default:shovel_bronze', 'default:bronze_ingot'},
  11. {'default:sword_bronze', 'default:bronze_ingot'},
  12. {'default:axe_mese', 'default:mese_crystal'},
  13. {'default:pick_mese', 'default:mese_crystal'},
  14. {'default:shovel_mese', 'default:mese_crystal'},
  15. {'default:sword_mese', 'default:mese_crystal'},
  16. {'3d_armor:boots_bronze', 'default:bronze_ingot'},
  17. {'3d_armor:boots_steel', 'default:steel_ingot'},
  18. {'3d_armor:boots_gold', 'default:gold_ingot'},
  19. {'3d_armor:chestplate_bronze', 'default:bronze_ingot'},
  20. {'3d_armor:chestplate_steel', 'default:steel_ingot'},
  21. {'3d_armor:chestplate_gold', 'default:gold_ingot'},
  22. {'3d_armor:helmet_bronze', 'default:bronze_ingot'},
  23. {'3d_armor:helmet_steel', 'default:steel_ingot'},
  24. {'3d_armor:helmet_gold', 'default:gold_ingot'},
  25. {'3d_armor:leggings_bronze', 'default:bronze_ingot'},
  26. {'3d_armor:leggings_gold', 'default:gold_ingot'},
  27. {'3d_armor:leggings_steel', 'default:steel_ingot'},
  28. {'shields:shield_bronze', 'default:bronze_ingot'},
  29. {'shields:shield_steel', 'default:steel_ingot'},
  30. {'shields:shield_gold', 'default:gold_ingot'},
  31. {'castle_weapons:battleaxe', 'default:steel_ingot'},
  32. {'castle_weapons:crossbow', 'default:steel_ingot'},
  33. {'stations:hammer', 'default:steel_ingot'},
  34. {'epic:pick_titanium', 'epic:titanium_ingot'},
  35. {'epic:shovel_titanium', 'epic:titanium_ingot'},
  36. {'epic:axe_titanium', 'epic:titanium_ingot'},
  37. {'epic:sword_titanium', 'epic:titanium_ingot'},
  38. {'epic:helmet_titanium', 'epic:titanium_ingot'},
  39. {'epic:boots_titanium', 'epic:titanium_ingot'},
  40. {'epic:chestplate_titanium', 'epic:titanium_ingot'},
  41. {'epic:leggings_titanium', 'epic:titanium_ingot'},
  42. {'epic:shield_titanium', 'epic:titanium_ingot'},
  43. {'epic:shovel_soft', 'default:tin_ingot'},
  44. {'farming:scythe', 'epic:titanium_ingot'},
  45. {'torch_bomb:torch_crossbow_steel', 'default:steel_ingot'},
  46. {'torch_bomb:torch_crossbow_bronze', 'default:bronze_ingot'}
  47. }
  48. for i in ipairs (tool_repair) do
  49. local tool = tool_repair[i][1]
  50. local material = tool_repair[i][2]
  51. -- no stations.dual_register_recipe() to ignore registering repair recipes...
  52. --
  53. simplecrafting_lib.register('anvil', {
  54. input = {
  55. [tool] = 1,
  56. [material] = 1,
  57. },
  58. output = tool,
  59. })
  60. end
  61. --Steel Tools
  62. stations.dual_register_recipe('anvil', {
  63. input = {
  64. ['default:steel_ingot'] = 3,
  65. ['group:stick'] = 1,
  66. },
  67. output = 'default:pick_steel',
  68. })
  69. stations.dual_register_recipe('anvil', {
  70. input = {
  71. ['default:steel_ingot'] = 3,
  72. ['group:stick'] = 1,
  73. },
  74. output = 'default:axe_steel',
  75. })
  76. stations.dual_register_recipe('anvil', {
  77. input = {
  78. ['default:steel_ingot'] = 1,
  79. ['default:stick'] = 2,
  80. },
  81. output = 'default:shovel_steel',
  82. })
  83. stations.dual_register_recipe('anvil', {
  84. input = {
  85. ['default:steel_ingot'] = 3,
  86. },
  87. output = 'default:sword_steel',
  88. })
  89. --Bronze tools
  90. stations.dual_register_recipe('anvil', {
  91. input = {
  92. ['default:bronze_ingot'] = 3,
  93. ['group:stick'] = 1,
  94. },
  95. output = 'default:pick_bronze',
  96. })
  97. stations.dual_register_recipe('anvil', {
  98. input = {
  99. ['default:bronze_ingot'] = 3,
  100. ['group:stick'] = 1,
  101. },
  102. output = 'default:axe_bronze',
  103. })
  104. stations.dual_register_recipe('anvil', {
  105. input = {
  106. ['default:bronze_ingot'] = 1,
  107. ['group:stick'] = 2,
  108. },
  109. output = 'default:shovel_bronze',
  110. })
  111. stations.dual_register_recipe('anvil', {
  112. input = {
  113. ['default:bronze_ingot'] = 3,
  114. },
  115. output = 'default:sword_bronze',
  116. })
  117. --Mese tools
  118. stations.dual_register_recipe('anvil', {
  119. input = {
  120. ['default:mese_crystal'] = 3,
  121. ['group:stick'] = 1,
  122. },
  123. output = 'default:pick_mese',
  124. })
  125. stations.dual_register_recipe('anvil', {
  126. input = {
  127. ['default:mese_crystal'] = 3,
  128. ['group:stick'] = 1,
  129. },
  130. output = 'default:axe_mese',
  131. })
  132. stations.dual_register_recipe('anvil', {
  133. input = {
  134. ['default:mese_crystal'] = 1,
  135. ['group:stick'] = 2,
  136. },
  137. output = 'default:shovel_mese',
  138. })
  139. stations.dual_register_recipe('anvil', {
  140. input = {
  141. ['default:mese_crystal'] = 3,
  142. },
  143. output = 'default:sword_mese',
  144. })
  145. --Titanium tools
  146. stations.dual_register_recipe('anvil', {
  147. input = {
  148. ['epic:titanium_ingot'] = 3,
  149. ['darkage:iron_stick'] = 1,
  150. },
  151. output = 'epic:pick_titanium',
  152. })
  153. stations.dual_register_recipe('anvil', {
  154. input = {
  155. ['epic:titanium_ingot'] = 1,
  156. ['darkage:iron_stick'] = 2,
  157. },
  158. output = 'epic:shovel_titanium',
  159. })
  160. stations.dual_register_recipe('anvil', {
  161. input = {
  162. ['epic:titanium_ingot'] = 3,
  163. ['darkage:iron_stick'] = 1,
  164. },
  165. output = 'epic:axe_titanium',
  166. })
  167. stations.dual_register_recipe('anvil', {
  168. input = {
  169. ['epic:titanium_ingot'] = 3,
  170. },
  171. output = 'epic:sword_titanium',
  172. })
  173. --Misc
  174. stations.dual_register_recipe('anvil', {
  175. input = {
  176. ['ropes:ropesegment'] = 1,
  177. ['default:steel_ingot'] = 2,
  178. },
  179. output = 'epic:sign_post_metal',
  180. })
  181. stations.dual_register_recipe('anvil', {
  182. input = {
  183. ['ocean:prismarine_crystals'] = 1,
  184. ['epic:bloodstone'] = 1,
  185. ['default:steel_ingot'] = 1,
  186. },
  187. output = 'furniture:lantern_ceiling',
  188. })
  189. stations.dual_register_recipe('anvil', {
  190. input = {
  191. ['default:tin_ingot'] = 3,
  192. ['darkage:iron_stick'] = 2,
  193. },
  194. output = 'epic:shovel_soft',
  195. })
  196. stations.dual_register_recipe('anvil', {
  197. input = {
  198. ['default:steel_ingot'] = 6,
  199. },
  200. output = 'castle_weapons:battleaxe',
  201. })
  202. stations.dual_register_recipe('anvil', {
  203. input = {
  204. ['epic:titanium_ingot'] = 2,
  205. ['group:stick'] = 1,
  206. },
  207. output = 'farming:scythe',
  208. })
  209. stations.dual_register_recipe('anvil', {
  210. input = {
  211. ['default:steel_ingot'] = 4,
  212. ['default:tin_ingot'] = 1,
  213. },
  214. output = 'stations:stain',
  215. })
  216. stations.dual_register_recipe('anvil', {
  217. input = {
  218. ['default:steel_ingot'] = 1,
  219. },
  220. output = 'epic:arrow_tip 20',
  221. })
  222. stations.dual_register_recipe('anvil', {
  223. input = {
  224. ['default:steel_ingot'] = 1,
  225. },
  226. output = 'mobs:horseshoe_steel',
  227. })
  228. stations.dual_register_recipe('anvil', {
  229. input = {
  230. ['default:bronze_ingot'] = 1,
  231. },
  232. output = 'mobs:horseshoe_bronze',
  233. })
  234. stations.dual_register_recipe('anvil', {
  235. input = {
  236. ['default:mese_crystal'] = 1,
  237. },
  238. output = 'mobs:horseshoe_mese',
  239. })
  240. stations.dual_register_recipe('anvil', {
  241. input = {
  242. ['default:steel_ingot'] = 2,
  243. },
  244. output = 'scaffolding:scaffolding_wrench',
  245. })
  246. stations.dual_register_recipe('anvil', {
  247. input = {
  248. ['epic:lead_lump'] = 1,
  249. },
  250. output = 'epic:lead_wire 10',
  251. })
  252. stations.dual_register_recipe('anvil', {
  253. input = {
  254. ['default:steel_ingot'] = 1,
  255. },
  256. output = 'furniture:hinge 10',
  257. })
  258. stations.dual_register_recipe('anvil', {
  259. input = {
  260. ['default:steel_ingot'] = 1,
  261. },
  262. output = 'furniture:lock',
  263. })
  264. stations.dual_register_recipe('anvil', {
  265. input = {
  266. ['default:steel_ingot'] = 2,
  267. },
  268. output = 'default:sign_wall_steel',
  269. })
  270. stations.dual_register_recipe('anvil', {
  271. input = {
  272. ['default:diamondblock'] = 1,
  273. ['default:goldblock'] = 1,
  274. ['epic:titanium_ingot'] = 1,
  275. ['epic:glowingdiamond'] = 1,
  276. },
  277. output = 'filler:filler',
  278. })
  279. --3d_Armor recipes
  280. local armor_material = {
  281. steel = 'default:steel_ingot',
  282. bronze = 'default:bronze_ingot',
  283. gold = 'default:gold_ingot',
  284. titanium = 'epic:titanium_ingot',
  285. }
  286. for name, mat in pairs(armor_material) do
  287. stations.dual_register_recipe('anvil', {
  288. input = {
  289. [mat] = 5,
  290. ['mobs:leather'] = 1,
  291. },
  292. output = '3d_armor:helmet_'..name,
  293. })
  294. stations.dual_register_recipe('anvil', {
  295. input = {
  296. [mat] = 8,
  297. ['mobs:leather'] = 1,
  298. },
  299. output = '3d_armor:chestplate_'..name,
  300. })
  301. stations.dual_register_recipe('anvil', {
  302. input = {
  303. [mat] = 7,
  304. ['mobs:leather'] = 1,
  305. },
  306. output = '3d_armor:leggings_'..name,
  307. })
  308. stations.dual_register_recipe('anvil', {
  309. input = {
  310. [mat] = 4,
  311. ['mobs:leather'] = 1,
  312. },
  313. output = '3d_armor:boots_'..name,
  314. })
  315. stations.dual_register_recipe('anvil', {
  316. input = {
  317. [mat] = 7,
  318. },
  319. output = 'shields:shield_'..name,
  320. })
  321. end
  322. --Armor recipes
  323. local armor_material = {
  324. titanium = 'epic:titanium_ingot',
  325. }
  326. for name, mat in pairs(armor_material) do
  327. stations.dual_register_recipe('anvil', {
  328. input = {
  329. [mat] = 5,
  330. ['mobs:leather'] = 1,
  331. },
  332. output = 'epic:helmet_'..name,
  333. })
  334. stations.dual_register_recipe('anvil', {
  335. input = {
  336. [mat] = 8,
  337. ['mobs:leather'] = 1,
  338. },
  339. output = 'epic:chestplate_'..name,
  340. })
  341. stations.dual_register_recipe('anvil', {
  342. input = {
  343. [mat] = 7,
  344. ['mobs:leather'] = 1,
  345. },
  346. output = 'epic:leggings_'..name,
  347. })
  348. stations.dual_register_recipe('anvil', {
  349. input = {
  350. [mat] = 4,
  351. ['mobs:leather'] = 1,
  352. },
  353. output = 'epic:boots_'..name,
  354. })
  355. stations.dual_register_recipe('anvil', {
  356. input = {
  357. [mat] = 7,
  358. },
  359. output = 'epic:shield_'..name,
  360. })
  361. end
  362. --[[ only needed once I find out how to use the fuel stuff.
  363. stations.dual_register_recipe('anvil_fuel', {
  364. input = {['default:coal_lump'] = 1},
  365. output = 'simplecrafting_lib:heat 20',
  366. })
  367. stations.dual_register_recipe('anvil_fuel', {
  368. input = {['default:coalblock'] = 1},
  369. output = 'simplecrafting_lib:heat 180',
  370. })
  371. stations.dual_register_recipe('anvil_fuel', {
  372. input = {['charcoal:charcoal'] = 1},
  373. output = 'simplecrafting_lib:heat 15',
  374. })
  375. stations.dual_register_recipe('anvil_fuel', {
  376. input = {['charcoal:charcoal_block'] = 1},
  377. output = 'simplecrafting_lib:heat 135',
  378. })
  379. --]]
  380. --shapes
  381. stations.dual_register_recipe('anvil', {
  382. input = {
  383. ['default:gold_ingot'] = 1,
  384. },
  385. output = 'shapes:gold_triangle_0',
  386. })
  387. --Hoppers
  388. stations.dual_register_recipe('anvil', {
  389. input = {
  390. ['epic:titanium_ingot'] = 2,
  391. ['default:gold_ingot'] = 1,
  392. ['default:steel_ingot'] = 1,
  393. },
  394. output = 'hopper:chute',
  395. })
  396. stations.dual_register_recipe('anvil', {
  397. input = {
  398. ['epic:titanium_ingot'] = 5,
  399. ['default:gold_ingot'] = 1,
  400. ['default:steel_ingot'] = 1,
  401. },
  402. output = 'hopper:hopper',
  403. })
  404. stations.dual_register_recipe('anvil', {
  405. input = {
  406. ['epic:titanium_ingot'] = 2,
  407. ['default:gold_ingot'] = 1,
  408. ['default:steel_ingot'] = 1,
  409. ['default:mese'] = 1,
  410. },
  411. output = 'hopper:sorter',
  412. })
  413. stations.dual_register_recipe('anvil', {
  414. input = {
  415. ['epic:titanium_ingot'] = 2,
  416. ['default:gold_ingot'] = 1,
  417. ['default:steel_ingot'] = 1,
  418. ['stations:hammer'] = 1,
  419. },
  420. output = 'hopper:trash',
  421. })