crafting.lua 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. ----------------------------
  2. ----------------------------
  3. if rweapons_gun_crafting == "true" then
  4. minetest.register_craft({
  5. output = "rangedweapons:aa12",
  6. recipe = {
  7. {"rangedweapons:gunsteel_ingot", "default:steel_ingot", "default:steel_ingot"},
  8. {"default:diamondblock", "default:steel_ingot", "rangedweapons:plastic_sheet"},
  9. {"default:steel_ingot", "dye:black", "rangedweapons:plastic_sheet"},
  10. }
  11. })
  12. minetest.register_craft({
  13. output = "rangedweapons:aa12",
  14. recipe = {
  15. {"moreores:silver_ingot", "default:steel_ingot", "default:steel_ingot"},
  16. {"default:diamondblock", "default:steel_ingot", "rangedweapons:plastic_sheet"},
  17. {"default:steel_ingot", "dye:black", "rangedweapons:plastic_sheet"},
  18. }
  19. })
  20. minetest.register_craft({
  21. output = "rangedweapons:ak47",
  22. recipe = {
  23. {"default:diamond", "default:steel_ingot", "group:tree"},
  24. {"group:tree", "default:mese", "default:steel_ingot"},
  25. {"default:steel_ingot", "", "group:tree"},
  26. }
  27. })
  28. minetest.register_craft({
  29. output = "rangedweapons:awp",
  30. recipe = {
  31. {"rangedweapons:gunsteel_ingot", "default:diamondblock", "rangedweapons:gunsteel_ingot"},
  32. {"rangedweapons:gunsteel_ingot", "rangedweapons:gunsteel_ingot", "rangedweapons:gunsteel_ingot"},
  33. {"dye:dark_green", "default:diamond", "rangedweapons:plastic_sheet"},
  34. }
  35. })
  36. minetest.register_craft({
  37. output = "rangedweapons:benelli",
  38. recipe = {
  39. {"rangedweapons:gunsteel_ingot", "default:diamond", "default:steel_ingot"},
  40. {"rangedweapons:plastic_sheet", "default:diamond", "default:steel_ingot"},
  41. {"", "default:mese_crystal", ""},
  42. }
  43. })
  44. minetest.register_craft({
  45. output = "rangedweapons:beretta",
  46. recipe = {
  47. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  48. {"", "default:mese_crystal", "rangedweapons:plastic_sheet"},
  49. {"", "", "rangedweapons:plastic_sheet"},
  50. }
  51. })
  52. minetest.register_craft({
  53. output = "rangedweapons:m1991",
  54. recipe = {
  55. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  56. {"", "default:mese_crystal", "group:tree"},
  57. {"", "", "group:tree"},
  58. }
  59. })
  60. minetest.register_craft({
  61. output = "rangedweapons:deagle",
  62. recipe = {
  63. {"rangedweapons:gunsteel_ingot", "rangedweapons:gunsteel_ingot", "rangedweapons:gunsteel_ingot"},
  64. {"rangedweapons:gunsteel_ingot", "default:diamond", "rangedweapons:plastic_sheet"},
  65. {"", "", "rangedweapons:plastic_sheet"},
  66. }
  67. })
  68. minetest.register_craft({
  69. output = "rangedweapons:golden_deagle",
  70. recipe = {
  71. {"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
  72. {"default:gold_ingot", "rangedweapons:deagle", "default:gold_ingot"},
  73. {"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
  74. }
  75. })
  76. minetest.register_craft({
  77. output = "rangedweapons:deagle",
  78. recipe = {
  79. {"moreores:silver_ingot", "moreores:silver_ingot", "moreores:silver_ingot"},
  80. {"moreores:silver_ingot", "default:diamond", "rangedweapons:plastic_sheet"},
  81. {"", "", "rangedweapons:plastic_sheet"},
  82. }
  83. })
  84. minetest.register_craft({
  85. output = "rangedweapons:python",
  86. recipe = {
  87. {"rangedweapons:gunsteel_ingot", "rangedweapons:gunsteel_ingot", "rangedweapons:gunsteel_ingot"},
  88. {"", "default:diamond", "rangedweapons:tree"},
  89. {"", "default:mese_crystal", "rangedweapons:tree"},
  90. }
  91. })
  92. minetest.register_craft({
  93. output = "rangedweapons:python",
  94. recipe = {
  95. {"moreores:silver_ingot", "moreores:silver_ingot", "moreores:silver_ingot"},
  96. {"", "default:diamond", "rangedweapons:tree"},
  97. {"", "default:mese_crystal", "rangedweapons:tree"},
  98. }
  99. })
  100. minetest.register_craft({
  101. output = "rangedweapons:g36",
  102. recipe = {
  103. {"default:diamond", "default:mese", "default:diamond"},
  104. {"default:steel_ingot", "default:diamond", "default:steel_ingot"},
  105. {"default:steel_ingot", "", "default:steel_ingot"},
  106. }
  107. })
  108. minetest.register_craft({
  109. output = "rangedweapons:glock17",
  110. recipe = {
  111. {"rangedweapons:plastic_sheet", "rangedweapons:plastic_sheet", "rangedweapons:plastic_sheet"},
  112. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  113. {"", "default:diamond", "rangedweapons:plastic_sheet"},
  114. }
  115. })
  116. minetest.register_craft({
  117. output = "rangedweapons:jackhammer",
  118. recipe = {
  119. {"", "rangedweapons:gunsteel_ingot", "rangedweapons:gunsteel_ingot"},
  120. {"default:mese", "default:steelblock", "default:diamondblock"},
  121. {"", "default:mese", "default:diamondblock"},
  122. }
  123. })
  124. minetest.register_craft({
  125. output = "rangedweapons:kriss_sv",
  126. recipe = {
  127. {"rangedweapons:plastic_sheet", "rangedweapons:plastic_sheet", "rangedweapons:plastic_sheet"},
  128. {"default:gold_ingot", "default:mese_crystal", "rangedweapons:plastic_sheet"},
  129. {"rangedweapons:plastic_sheet", "default:gold_ingot", ""},
  130. }
  131. })
  132. minetest.register_craft({
  133. output = "rangedweapons:laser_blaster",
  134. recipe = {
  135. {"default:steel_ingot", "rangedweapons:gun_power_core", "default:steel_ingot"},
  136. {"rangedweapons:gunsteel_ingot", "rangedweapons:gunsteel_ingot", "rangedweapons:gunsteel_ingot"},
  137. {"", "default:mese_crystal_fragment", "default:steel_ingot"},
  138. }
  139. })
  140. minetest.register_craft({
  141. output = "rangedweapons:forcegun",
  142. recipe = {
  143. {"rangedweapons:gunsteel_ingot", "default:diamondblock", "default:mese"},
  144. {"rangedweapons:gunsteel_ingot", "rangedweapons:gunsteel_ingot", "rangedweapons:gunsteel_ingot"},
  145. {"", "rangedweapons:gun_power_core", "default:steel_ingot"},
  146. }
  147. })
  148. minetest.register_craft({
  149. output = "rangedweapons:laser_rifle",
  150. recipe = {
  151. {"rangedweapons:ultra_gunsteel_ingot", "rangedweapons:gun_power_core", "rangedweapons:ultra_gunsteel_ingot"},
  152. {"rangedweapons:gun_power_core", "rangedweapons:ultra_gunsteel_ingot", "default:gold_ingot"},
  153. {"default:gold_ingot", "default:mese", "rangedweapons:ultra_gunsteel_ingot"},
  154. }
  155. })
  156. minetest.register_craft({
  157. output = "rangedweapons:laser_shotgun",
  158. recipe = {
  159. {"rangedweapons:ultra_gunsteel_ingot", "rangedweapons:gun_power_core", "rangedweapons:ultra_gunsteel_ingot"},
  160. {"rangedweapons:gun_power_core", "rangedweapons:gun_power_core", "rangedweapons:ultra_gunsteel_ingot"},
  161. {"", "rangedweapons:ultra_gunsteel_ingot", "rangedweapons:ultra_gunsteel_ingot"},
  162. }
  163. })
  164. minetest.register_craft({
  165. output = "rangedweapons:luger",
  166. recipe = {
  167. {"", "", "default:mese_crystal_fragment"},
  168. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  169. {"", "default:mese_crystal_fragment", "group:tree"},
  170. }
  171. })
  172. minetest.register_craft({
  173. output = "rangedweapons:m16",
  174. recipe = {
  175. {"default:diamond", "default:steelblock", "default:steel_ingot"},
  176. {"default:steel_ingot", "default:diamond", "default:steel_ingot"},
  177. {"default:steel_ingot", "", "default:steel_ingot"},
  178. }
  179. })
  180. minetest.register_craft({
  181. output = "rangedweapons:m60",
  182. recipe = {
  183. {"default:diamond", "default:mese", "default:mese"},
  184. {"default:steel_ingot", "default:steelblock", "default:steelblock"},
  185. {"dye:black", "default:diamond", "default:steel_ingot"},
  186. }
  187. })
  188. minetest.register_craft({
  189. output = "rangedweapons:m79",
  190. recipe = {
  191. {"default:steel_ingot", "", "default:mese_crystal"},
  192. {"default:steelblock", "default:diamond", "group:tree"},
  193. {"group:tree", "group:tree", "group:tree"},
  194. }
  195. })
  196. minetest.register_craft({
  197. output = "rangedweapons:m200",
  198. recipe = {
  199. {"default:diamondblock", "default:steel_ingot", "default:diamondblock"},
  200. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  201. {"default:steel_ingot", "default:diamond", "default:steel_ingot"},
  202. }
  203. })
  204. minetest.register_craft({
  205. output = "rangedweapons:makarov",
  206. recipe = {
  207. {"", "default:steel_ingot", "default:steel_ingot"},
  208. {"", "default:mese_crystal_fragment", "group:tree"},
  209. {"", "", "dye:black"},
  210. }
  211. })
  212. minetest.register_craft({
  213. output = "rangedweapons:milkor",
  214. recipe = {
  215. {"default:diamond", "default:steel_ingot", "default:diamond"},
  216. {"default:steel_ingot", "default:steelblock", "default:steel_ingot"},
  217. {"default:steel_ingot", "default:mese", "default:steel_ingot"},
  218. }
  219. })
  220. minetest.register_craft({
  221. output = "rangedweapons:minigun",
  222. recipe = {
  223. {"", "default:steelblock", "default:mese"},
  224. {"default:diamondblock", "default:diamondblock", "default:diamondblock"},
  225. {"default:steelblock", "default:steelblock", "default:steelblock"},
  226. }
  227. })
  228. minetest.register_craft({
  229. output = "rangedweapons:mp5",
  230. recipe = {
  231. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  232. {"default:steel_ingot", "default:diamond", "default:steel_ingot"},
  233. {"default:steel_ingot", "rangedweapons:plastic_sheet", "dye:black"},
  234. }
  235. })
  236. minetest.register_craft({
  237. output = "rangedweapons:thompson",
  238. recipe = {
  239. {"default:steel_ingot", "default:steel_ingot", "default:diamond"},
  240. {"group:tree", "group:tree", "default:steel_ingot"},
  241. {"default:steel_ingot", "default:diamond", "group:tree"},
  242. }
  243. })
  244. minetest.register_craft({
  245. output = "rangedweapons:mp40",
  246. recipe = {
  247. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  248. {"default:steel_ingot", "default:mese_crystal", "default:steel_ingot"},
  249. {"default:steel_ingot", "default:mese_crystal_fragment", ""},
  250. }
  251. })
  252. minetest.register_craft({
  253. output = "rangedweapons:remington",
  254. recipe = {
  255. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  256. {"group:tree", "default:mese_crystal", "group:tree"},
  257. }
  258. })
  259. minetest.register_craft({
  260. output = "rangedweapons:rpg",
  261. recipe = {
  262. {"default:diamond", "default:steel_ingot", ""},
  263. {"default:steelblock", "group:tree", "default:diamondblock"},
  264. {"default:diamond", "group:tree", ""},
  265. }
  266. })
  267. minetest.register_craft({
  268. output = "rangedweapons:rpk",
  269. recipe = {
  270. {"default:diamond", "rangedweapons:ak47", ""},
  271. {"default:steel_ingot", "default:steelblock", "group:tree"},
  272. {"", "default:diamond", "default:steel_ingot"},
  273. }
  274. })
  275. minetest.register_craft({
  276. output = "rangedweapons:scar",
  277. recipe = {
  278. {"default:diamond", "default:mese", "default:mese"},
  279. {"default:steel_ingot", "default:steel_ingot", "default:mese"},
  280. {"rangedweapons:plastic_sheet", "", "default:mese_crystal"},
  281. }
  282. })
  283. minetest.register_craft({
  284. output = "rangedweapons:spas12",
  285. recipe = {
  286. {"", "default:steel_ingot", "default:steel_ingot"},
  287. {"default:steel_ingot", "default:mese", "default:diamond"},
  288. {"rangedweapons:plastic_sheet", "default:diamond", "default:steel_ingot"},
  289. }
  290. })
  291. minetest.register_craft({
  292. output = "rangedweapons:svd",
  293. recipe = {
  294. {"default:steel_ingot", "default:diamondblock", "default:steel_ingot"},
  295. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  296. {"group:tree", "default:diamond", "group:tree"},
  297. }
  298. })
  299. minetest.register_craft({
  300. output = "rangedweapons:taurus",
  301. recipe = {
  302. {"rangedweapons:gunsteel_ingot", "default:mese_crystal", "default:mese_crystal_fragment"},
  303. {"rangedweapons:gunsteel_ingot", "default:diamondblock", "rangedweapons:gunsteel_ingot"},
  304. {"", "rangedweapons:gunsteel_ingot", "rangedweapons:plastic_sheet"},
  305. }
  306. })
  307. minetest.register_craft({
  308. output = "rangedweapons:taurus",
  309. recipe = {
  310. {"moreores:silver_ingot", "default:mese_crystal", "default:mese_crystal_fragment"},
  311. {"moreores:silver_ingot", "default:diamondblock", "moreores:silver_ingot"},
  312. {"", "moreores:silver_ingot", "rangedweapons:plastic_sheet"},
  313. }
  314. })
  315. minetest.register_craft({
  316. output = "rangedweapons:tec9",
  317. recipe = {
  318. {"rangedweapons:plastic_sheet", "rangedweapons:plastic_sheet", "rangedweapons:plastic_sheet"},
  319. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  320. {"default:steel_ingot", "default:mese_crystal_fragment", "default:steel_ingot"},
  321. }
  322. })
  323. minetest.register_craft({
  324. output = "rangedweapons:tmp",
  325. recipe = {
  326. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  327. {"default:steel_ingot", "default:mese_crystal_fragment", "default:steel_ingot"},
  328. {"", "dye:black", "default:steel_ingot"},
  329. }
  330. })
  331. minetest.register_craft({
  332. output = "rangedweapons:ump",
  333. recipe = {
  334. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  335. {"rangedweapons:gunsteel_ingot", "default:diamond", "default:diamond"},
  336. {"default:steel_ingot", "default:mese_crystal", "default:steel_ingot"},
  337. }
  338. })
  339. minetest.register_craft({
  340. output = "rangedweapons:uzi",
  341. recipe = {
  342. {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
  343. {"default:diamond", "rangedweapons:plastic_sheet", "default:steel_ingot"},
  344. {"", "default:steel_ingot", ""},
  345. }
  346. })
  347. end
  348. ----------------------------------
  349. ----------------------------------
  350. if rweapons_other_weapon_crafting == "true" then
  351. minetest.register_craft({
  352. output = "rangedweapons:barrel",
  353. recipe = {
  354. {"default:wood", "tnt:gunpowder", "default:wood"},
  355. {"default:wood", "tnt:tnt", "default:wood"},
  356. }
  357. })
  358. minetest.register_craft({
  359. output = "rangedweapons:hand_grenade",
  360. recipe = {
  361. {"", "", "default:mese_crystal_fragment"},
  362. {"default:steel_ingot", "tnt:gunpowder", ""},
  363. {"tnt:gunpowder", "tnt:gunpowder", ""},
  364. }
  365. })
  366. minetest.register_craft({
  367. output = "rangedweapons:javelin 1",
  368. recipe = {
  369. {"default:diamond", "default:steel_ingot", ""},
  370. {"default:steel_ingot", "", "group:stick"},
  371. {"", "", "group:stick"},
  372. }
  373. })
  374. minetest.register_craft({
  375. output = "rangedweapons:wooden_shuriken 20",
  376. recipe = {
  377. {"", "group:wood", ""},
  378. {"group:wood", "", "group:wood"},
  379. {"", "group:wood", ""},
  380. }
  381. })
  382. minetest.register_craft({
  383. output = "rangedweapons:stone_shuriken 10",
  384. recipe = {
  385. {"", "default:cobble", ""},
  386. {"default:cobble", "", "default:cobble"},
  387. {"", "default:cobble", ""},
  388. }
  389. })
  390. minetest.register_craft({
  391. output = "rangedweapons:steel_shuriken 30",
  392. recipe = {
  393. {"", "default:steel_ingot", ""},
  394. {"default:steel_ingot", "", "default:steel_ingot"},
  395. {"", "default:steel_ingot", ""},
  396. }
  397. })
  398. minetest.register_craft({
  399. output = "rangedweapons:bronze_shuriken 35",
  400. recipe = {
  401. {"", "default:bronze_ingot", ""},
  402. {"default:bronze_ingot", "", "default:bronze_ingot"},
  403. {"", "default:bronze_ingot", ""},
  404. }
  405. })
  406. minetest.register_craft({
  407. output = "rangedweapons:golden_shuriken 42",
  408. recipe = {
  409. {"", "default:gold_ingot", ""},
  410. {"default:gold_ingot", "", "default:gold_ingot"},
  411. {"", "default:gold_ingot", ""},
  412. }
  413. })
  414. minetest.register_craft({
  415. output = "rangedweapons:mese_shuriken 55",
  416. recipe = {
  417. {"", "default:mese_crystal", ""},
  418. {"default:mese_crystal", "", "default:mese_crystal"},
  419. {"", "default:mese_crystal", ""},
  420. }
  421. })
  422. minetest.register_craft({
  423. output = "rangedweapons:diamond_shuriken 69",
  424. recipe = {
  425. {"", "default:diamond", ""},
  426. {"default:diamond", "", "default:diamond"},
  427. {"", "default:diamond", ""},
  428. }
  429. })
  430. end
  431. ------------------------------------
  432. ------------------------------------
  433. if rweapons_ammo_crafting == "true" then
  434. minetest.register_craft({
  435. output = "rangedweapons:9mm 40",
  436. recipe = {
  437. {"default:steel_ingot", "", ""},
  438. {"tnt:gunpowder", "", ""},
  439. {"default:copper_ingot", "", ""},
  440. }
  441. })
  442. minetest.register_craft({
  443. output = "rangedweapons:45acp 40",
  444. recipe = {
  445. {"","default:bronze_ingot", ""},
  446. {"default:gold_ingot","tnt:gunpowder", "default:gold_ingot"},
  447. {"","default:tin_ingot", ""},
  448. }
  449. })
  450. minetest.register_craft({
  451. output = "rangedweapons:10mm 60",
  452. recipe = {
  453. {"", "default:bronze_ingot", ""},
  454. {"default:steel_ingot", "tnt:gunpowder", "default:steel_ingot"},
  455. {"default:steel_ingot", "tnt:gunpowder", "default:steel_ingot"},
  456. }
  457. })
  458. minetest.register_craft({
  459. output = "rangedweapons:357 15",
  460. recipe = {
  461. {"default:copper_ingot", "", ""},
  462. {"tnt:gunpowder", "", ""},
  463. {"default:gold_ingot", "", ""},
  464. }
  465. })
  466. minetest.register_craft({
  467. output = "rangedweapons:50ae 15",
  468. recipe = {
  469. {"default:bronze_ingot", "default:coal_lump", "default:bronze_ingot"},
  470. {"default:gold_ingot", "tnt:gunpowder", "default:gold_ingot"},
  471. {"default:gold_ingot", "tnt:gunpowder", "default:gold_ingot"},
  472. }
  473. })
  474. minetest.register_craft({
  475. output = "rangedweapons:44 15",
  476. recipe = {
  477. {"default:bronze_ingot", "default:coal_lump", ""},
  478. {"tnt:gunpowder", "", ""},
  479. {"default:gold_ingot", "", ""},
  480. }
  481. })
  482. minetest.register_craft({
  483. output = "rangedweapons:762mm 50",
  484. recipe = {
  485. {"default:bronze_ingot", "tnt:gunpowder", "default:bronze_ingot"},
  486. {"default:gold_ingot", "tnt:gunpowder", "default:gold_ingot"},
  487. {"default:gold_ingot", "tnt:gunpowder", "default:gold_ingot"},
  488. }
  489. })
  490. minetest.register_craft({
  491. output = "rangedweapons:408cheytac 10",
  492. recipe = {
  493. {"default:bronze_ingot", "tnt:gunpowder", "default:bronze_ingot"},
  494. {"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
  495. {"default:gold_ingot", "tnt:gunpowder", "default:gold_ingot"},
  496. }
  497. })
  498. minetest.register_craft({
  499. output = "rangedweapons:556mm 90",
  500. recipe = {
  501. {"", "default:gold_ingot", ""},
  502. {"default:gold_ingot", "tnt:gunpowder", "default:gold_ingot"},
  503. {"default:gold_ingot", "tnt:gunpowder", "default:gold_ingot"},
  504. }
  505. })
  506. minetest.register_craft({
  507. output = "rangedweapons:shell 12",
  508. recipe = {
  509. {"default:bronze_ingot", "default:steel_ingot", "default:bronze_ingot"},
  510. {"default:bronze_ingot", "tnt:gunpowder", "default:bronze_ingot"},
  511. {"default:gold_ingot", "tnt:gunpowder", "default:gold_ingot"},
  512. }
  513. })
  514. minetest.register_craft({
  515. output = "rangedweapons:308winchester 15",
  516. recipe = {
  517. {"", "default:steel_ingot", ""},
  518. {"default:bronze_ingot", "tnt:gunpowder", "default:bronze_ingot"},
  519. {"default:gold_ingot", "tnt:gunpowder", "default:gold_ingot"},
  520. }
  521. })
  522. minetest.register_craft({
  523. output = "rangedweapons:40mm 5",
  524. recipe = {
  525. {"", "default:gold_ingot", ""},
  526. {"default:steel_ingot", "tnt:gunpowder", "default:steel_ingot"},
  527. {"tnt:gunpowder", "default:bronze_ingot", "tnt:gunpowder"},
  528. }
  529. })
  530. minetest.register_craft({
  531. output = "rangedweapons:rocket 1",
  532. recipe = {
  533. {"", "", "rangedweapons:40mm"},
  534. {"", "tnt:gunpowder", ""},
  535. {"default:steel_ingot", "", ""},
  536. }
  537. })
  538. end
  539. -------------------------------------
  540. -------------------------------------
  541. if rweapons_item_crafting == "true" then
  542. minetest.register_craft({
  543. output = "rangedweapons:generator",
  544. recipe = {
  545. {"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
  546. {"rangedweapons:gunsteel_ingot", "rangedweapons:gun_power_core", "rangedweapons:gunsteel_ingot"},
  547. {"rangedweapons:gunsteel_ingot", "rangedweapons:gunsteel_ingot", "rangedweapons:gunsteel_ingot"},
  548. }
  549. })
  550. minetest.register_craft({
  551. output = "rangedweapons:gunsteel_ingot",
  552. recipe = {
  553. {"default:steel_ingot", "default:tin_ingot", "default:coal_lump"},
  554. }
  555. })
  556. minetest.register_craft({
  557. output = "rangedweapons:ultra_gunsteel_ingot",
  558. recipe = {
  559. {"", "default:mese_crystal", ""},
  560. {"default:gold_ingot", "rangedweapons:gunsteel_ingot", "default:gold_ingot"},
  561. {"", "default:diamond", ""},
  562. }
  563. })
  564. minetest.register_craft({
  565. output = "rangedweapons:plastic_sheet",
  566. recipe = {
  567. {"group:tree", "default:coal_lump", "group:tree"},
  568. {"default:coal_lump", "group:tree", "default:coal_lump"},
  569. }
  570. })
  571. minetest.register_craft({
  572. output = "rangedweapons:gun_power_core",
  573. recipe = {
  574. {"rangedweapons:gunsteel_ingot", "default:goldblock", "rangedweapons:gunsteel_ingot"},
  575. {"default:diamondblock", "default:mese", "default:diamondblock"},
  576. {"rangedweapons:gunsteel_ingot", "default:goldblock", "rangedweapons:gunsteel_ingot"},
  577. }
  578. })
  579. end