crafting.lua 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034
  1. --[[
  2. More Blocks: crafting recipes
  3. Copyright (c) 2011-2017 Hugo Locurcio and contributors.
  4. 2018-2023 Och_Noe
  5. Licensed under the zlib license. See LICENSE.md for more information.
  6. --]]
  7. minetest.register_craft({
  8. output = "default:stick",
  9. recipe = {{"default:dry_shrub"},}
  10. })
  11. minetest.register_craft({
  12. output = "default:stick",
  13. recipe = {{"group:sapling"},}
  14. })
  15. minetest.register_craft({
  16. output = "default:wood 2",
  17. recipe = { {"group:wood","",""},
  18. {"group:wood","",""},
  19. {"","",""}}
  20. })
  21. minetest.register_craft({
  22. output = "default:wood",
  23. recipe = {
  24. {"default:stick", "default:stick"},
  25. {"default:stick", "default:stick"},
  26. }
  27. })
  28. minetest.register_craft({
  29. output = "default:dirt_with_grass",
  30. type = "shapeless",
  31. recipe = {"default:junglegrass", "default:dirt"},
  32. })
  33. minetest.register_craft({
  34. output = "default:dirt_with_grass",
  35. type = "shapeless",
  36. recipe = {"default:mese", "default:dirt"},
  37. })
  38. minetest.register_craft({
  39. output = "default:mossycobble",
  40. type = "shapeless",
  41. recipe = {"default:junglegrass", "default:cobble"},
  42. })
  43. minetest.register_craft({
  44. output = "default:mossycobble",
  45. type = "shapeless",
  46. recipe = {"default:mese_crystal_fragment", "default:cobble"},
  47. })
  48. minetest.register_craft({
  49. output = "moreblocks:wood_tile 9",
  50. recipe = {
  51. {"default:wood", "default:wood", "default:wood"},
  52. {"default:wood", "default:wood", "default:wood"},
  53. {"default:wood", "default:wood", "default:wood"},
  54. }
  55. })
  56. minetest.register_craft({
  57. output = "moreblocks:wood_tile_flipped",
  58. recipe = {{"moreblocks:wood_tile"},}
  59. })
  60. minetest.register_craft({
  61. output = "moreblocks:wood_tile_center 9",
  62. recipe = {
  63. {"default:wood", "default:wood", "default:wood"},
  64. {"default:wood", "moreblocks:wood_tile", "default:wood"},
  65. {"default:wood", "default:wood", "default:wood"},
  66. }
  67. })
  68. minetest.register_craft({
  69. output = "moreblocks:wood_tile_full 4",
  70. recipe = {
  71. {"moreblocks:wood_tile", "moreblocks:wood_tile"},
  72. {"moreblocks:wood_tile", "moreblocks:wood_tile"},
  73. }
  74. })
  75. minetest.register_craft({
  76. output = "moreblocks:wood_tile_up",
  77. recipe = {
  78. {"default:stick"},
  79. {"moreblocks:wood_tile_center"},
  80. }
  81. })
  82. minetest.register_craft({
  83. output = "moreblocks:wood_tile_down",
  84. recipe = {
  85. {"moreblocks:wood_tile_center"},
  86. {"default:stick"},
  87. }
  88. })
  89. minetest.register_craft({
  90. output = "moreblocks:wood_tile_left",
  91. recipe = {
  92. {"default:stick", "moreblocks:wood_tile_center"},
  93. }
  94. })
  95. minetest.register_craft({
  96. output = "moreblocks:wood_tile_right",
  97. recipe = {
  98. {"moreblocks:wood_tile_center", "default:stick"},
  99. }
  100. })
  101. minetest.register_craft({
  102. output = "moreblocks:circle_stone_bricks 8",
  103. recipe = {
  104. {"default:stone", "default:stone", "default:stone"},
  105. {"default:stone", "", "default:stone"},
  106. {"default:stone", "default:stone", "default:stone"},
  107. }
  108. })
  109. minetest.register_craft({
  110. output = "moreblocks:all_faces_tree 8",
  111. recipe = {
  112. {"default:tree", "default:tree", "default:tree"},
  113. {"default:tree", "", "default:tree"},
  114. {"default:tree", "default:tree", "default:tree"},
  115. }
  116. })
  117. minetest.register_craft({
  118. output = "moreblocks:all_faces_jungle_tree 8",
  119. recipe = {
  120. {"default:jungletree", "default:jungletree", "default:jungletree"},
  121. {"default:jungletree", "", "default:jungletree"},
  122. {"default:jungletree", "default:jungletree", "default:jungletree"},
  123. }
  124. })
  125. minetest.register_craft({
  126. output = "moreblocks:all_faces_pine_tree 8",
  127. recipe = {
  128. {"default:pine_tree", "default:pine_tree", "default:pine_tree"},
  129. {"default:pine_tree", "", "default:pine_tree"},
  130. {"default:pine_tree", "default:pine_tree", "default:pine_tree"},
  131. }
  132. })
  133. minetest.register_craft({
  134. output = "moreblocks:all_faces_acacia_tree 8",
  135. recipe = {
  136. {"default:acacia_tree", "default:acacia_tree", "default:acacia_tree"},
  137. {"default:acacia_tree", "", "default:acacia_tree"},
  138. {"default:acacia_tree", "default:acacia_tree", "default:acacia_tree"},
  139. }
  140. })
  141. minetest.register_craft({
  142. output = "moreblocks:all_faces_aspen_tree 8",
  143. recipe = {
  144. {"default:aspen_tree", "default:aspen_tree", "default:aspen_tree"},
  145. {"default:aspen_tree", "", "default:aspen_tree"},
  146. {"default:aspen_tree", "default:aspen_tree", "default:aspen_tree"},
  147. }
  148. })
  149. minetest.register_craft({
  150. output = "moreblocks:all_faces_mushroom_tree 8",
  151. recipe = {
  152. {"ethereal:mushroom_trunk", "ethereal:mushroom_trunk", "ethereal:mushroom_trunk"},
  153. {"ethereal:mushroom_trunk", "", "ethereal:mushroom_trunk"},
  154. {"ethereal:mushroom_trunk", "ethereal:mushroom_trunk", "ethereal:mushroom_trunk"},
  155. }
  156. })
  157. minetest.register_craft({
  158. output = "moreblocks:sweeper 4",
  159. recipe = {
  160. {"default:junglegrass"},
  161. {"default:stick"},
  162. }
  163. })
  164. minetest.register_craft({
  165. output = "moreblocks:stone_tile 4",
  166. recipe = {
  167. {"default:cobble", "default:cobble"},
  168. {"default:cobble", "default:cobble"},
  169. }
  170. })
  171. -- added 2020-04-27 - requested by ywang
  172. minetest.register_craft({
  173. output = "moreblocks:stone_tile 36",
  174. recipe = {
  175. {"moreblocks:cobble_compressed", "moreblocks:cobble_compressed"},
  176. {"moreblocks:cobble_compressed", "moreblocks:cobble_compressed"},
  177. }
  178. })
  179. -- added 2020-08-29 - requested by ywang
  180. minetest.register_craft({
  181. output = "moreblocks:stone_tile 324",
  182. recipe = {
  183. {"moreblocks:cobble_condensed", "moreblocks:cobble_condensed"},
  184. {"moreblocks:cobble_condensed", "moreblocks:cobble_condensed"},
  185. }
  186. })
  187. minetest.register_craft({
  188. output = "moreblocks:split_stone_tile",
  189. recipe = {
  190. {"moreblocks:stone_tile"},
  191. }
  192. })
  193. minetest.register_craft({
  194. output = "moreblocks:split_stone_tile 9",
  195. recipe = {
  196. {"moreblocks:stone_tile","moreblocks:stone_tile","moreblocks:stone_tile"},
  197. {"moreblocks:stone_tile","moreblocks:stone_tile","moreblocks:stone_tile"},
  198. {"moreblocks:stone_tile","moreblocks:stone_tile","moreblocks:stone_tile"},
  199. }
  200. })
  201. minetest.register_craft({
  202. output = "moreblocks:split_stone_tile_alt",
  203. recipe = {
  204. {"moreblocks:split_stone_tile"},
  205. }
  206. })
  207. minetest.register_craft({
  208. output = "moreblocks:split_stone_tile_alt 9",
  209. recipe = {
  210. {"moreblocks:split_stone_tile","moreblocks:split_stone_tile","moreblocks:split_stone_tile"},
  211. {"moreblocks:split_stone_tile","moreblocks:split_stone_tile","moreblocks:split_stone_tile"},
  212. {"moreblocks:split_stone_tile","moreblocks:split_stone_tile","moreblocks:split_stone_tile"},
  213. }
  214. })
  215. minetest.register_craft({
  216. output = "moreblocks:stone_tile",
  217. recipe = {
  218. {"moreblocks:split_stone_tile_alt"},
  219. }
  220. })
  221. minetest.register_craft({
  222. output = "moreblocks:stone_tile 9",
  223. recipe = {
  224. {"moreblocks:split_stone_tile_alt","moreblocks:split_stone_tile_alt","moreblocks:split_stone_tile_alt"},
  225. {"moreblocks:split_stone_tile_alt","moreblocks:split_stone_tile_alt","moreblocks:split_stone_tile_alt"},
  226. {"moreblocks:split_stone_tile_alt","moreblocks:split_stone_tile_alt","moreblocks:split_stone_tile_alt"},
  227. }
  228. })
  229. minetest.register_craft({
  230. output = "moreblocks:grey_bricks 2",
  231. type = "shapeless",
  232. recipe = {"default:stone", "default:brick"},
  233. })
  234. minetest.register_craft({
  235. output = "moreblocks:grey_bricks 2",
  236. type = "shapeless",
  237. recipe = {"default:stonebrick", "default:brick"},
  238. })
  239. minetest.register_craft({
  240. output = "moreblocks:empty_bookshelf",
  241. type = "shapeless",
  242. recipe = {"moreblocks:sweeper", "default:bookshelf"},
  243. replacements = {{"default:bookshelf", "default:book 3"}},
  244. -- When obtaining an empty bookshelf, return the books used in it as well
  245. })
  246. minetest.register_craft({
  247. output = "moreblocks:coal_stone_bricks 4",
  248. recipe = {
  249. {"moreblocks:coal_stone", "moreblocks:coal_stone"},
  250. {"moreblocks:coal_stone", "moreblocks:coal_stone"},
  251. }
  252. })
  253. minetest.register_craft({
  254. output = "moreblocks:iron_stone_bricks 4",
  255. recipe = {
  256. {"moreblocks:iron_stone", "moreblocks:iron_stone"},
  257. {"moreblocks:iron_stone", "moreblocks:iron_stone"},
  258. }
  259. })
  260. minetest.register_craft({
  261. output = "moreblocks:plankstone 4",
  262. recipe = {
  263. {"default:stone", "default:wood"},
  264. {"default:wood", "default:stone"},
  265. }
  266. })
  267. minetest.register_craft({
  268. output = "moreblocks:plankstone 4",
  269. recipe = {
  270. {"default:wood", "default:stone"},
  271. {"default:stone", "default:wood"},
  272. }
  273. })
  274. minetest.register_craft({
  275. output = "moreblocks:coal_checker 4",
  276. recipe = {
  277. {"default:stone", "default:coal_lump"},
  278. {"default:coal_lump", "default:stone"},
  279. }
  280. })
  281. minetest.register_craft({
  282. output = "moreblocks:coal_checker 4",
  283. recipe = {
  284. {"default:coal_lump", "default:stone"},
  285. {"default:stone", "default:coal_lump"},
  286. }
  287. })
  288. minetest.register_craft({
  289. output = "moreblocks:iron_checker 4",
  290. recipe = {
  291. {"default:steel_ingot", "default:stone"},
  292. {"default:stone", "default:steel_ingot"},
  293. }
  294. })
  295. minetest.register_craft({
  296. output = "moreblocks:iron_checker 4",
  297. recipe = {
  298. {"default:stone", "default:steel_ingot"},
  299. {"default:steel_ingot", "default:stone"},
  300. }
  301. })
  302. minetest.register_craft({
  303. output = "default:chest_locked",
  304. type = "shapeless",
  305. recipe = {"default:steel_ingot", "default:chest"},
  306. })
  307. minetest.register_craft({
  308. output = "default:chest_locked",
  309. type = "shapeless",
  310. recipe = {"default:copper_ingot", "default:chest"},
  311. })
  312. minetest.register_craft({
  313. output = "default:chest_locked",
  314. type = "shapeless",
  315. recipe = {"default:bronze_ingot", "default:chest"},
  316. })
  317. minetest.register_craft({
  318. output = "default:chest_locked",
  319. type = "shapeless",
  320. recipe = {"default:gold_ingot", "default:chest"},
  321. })
  322. minetest.register_craft({
  323. output = "moreblocks:iron_glass",
  324. type = "shapeless",
  325. recipe = {"default:steel_ingot", "default:glass"},
  326. })
  327. minetest.register_craft({
  328. output = "default:glass",
  329. type = "shapeless",
  330. recipe = {"default:coal_lump", "moreblocks:iron_glass"},
  331. })
  332. minetest.register_craft({
  333. output = "moreblocks:coal_glass",
  334. type = "shapeless",
  335. recipe = {"default:coal_lump", "default:glass"},
  336. })
  337. minetest.register_craft({
  338. output = "default:glass",
  339. type = "shapeless",
  340. recipe = {"default:steel_ingot", "moreblocks:coal_glass"},
  341. })
  342. minetest.register_craft({
  343. output = "moreblocks:clean_glass",
  344. type = "shapeless",
  345. recipe = {"moreblocks:sweeper", "default:glass"},
  346. })
  347. minetest.register_craft({
  348. output = "moreblocks:glow_glass",
  349. type = "shapeless",
  350. recipe = {"default:torch", "default:glass"},
  351. })
  352. minetest.register_craft({
  353. output = "moreblocks:trap_glow_glass",
  354. type = "shapeless",
  355. recipe = {"default:mese_crystal_fragment", "default:glass", "default:torch"},
  356. })
  357. minetest.register_craft({
  358. output = "moreblocks:trap_glow_glass",
  359. type = "shapeless",
  360. recipe = {"default:mese_crystal_fragment", "moreblocks:glow_glass"},
  361. })
  362. minetest.register_craft({
  363. output = "moreblocks:super_glow_glass",
  364. type = "shapeless",
  365. recipe = {"default:torch", "default:torch", "default:glass"},
  366. })
  367. minetest.register_craft({
  368. output = "moreblocks:super_glow_glass",
  369. type = "shapeless",
  370. recipe = {"default:torch", "moreblocks:glow_glass"},
  371. })
  372. minetest.register_craft({
  373. output = "moreblocks:dim_glow_glass 3",
  374. type = "shapeless",
  375. recipe = {"default:glass", "default:glass", "default:glass",
  376. "default:torch", "dye:white"},
  377. })
  378. minetest.register_craft({
  379. output = "moreblocks:bright_glow_glass 2",
  380. type = "shapeless",
  381. recipe = {"default:glass", "default:glass", "dye:white",
  382. "default:torch", "default:torch", "default:torch" },
  383. })
  384. minetest.register_craft({
  385. output = "moreblocks:low_glow_glass 2",
  386. type = "shapeless",
  387. recipe = {"default:glass", "default:glass", "default:torch"},
  388. })
  389. minetest.register_craft({
  390. output = "moreblocks:trap_super_glow_glass",
  391. type = "shapeless",
  392. recipe = {"default:mese_crystal_fragment", "default:glass", "default:torch", "default:torch"},
  393. })
  394. minetest.register_craft({
  395. output = "moreblocks:trap_super_glow_glass",
  396. type = "shapeless",
  397. recipe = {"default:mese_crystal_fragment", "moreblocks:super_glow_glass"},
  398. })
  399. minetest.register_craft({
  400. output = "moreblocks:coal_stone",
  401. type = "shapeless",
  402. recipe = {"default:coal_lump", "default:stone"},
  403. })
  404. minetest.register_craft({
  405. output = "default:stone",
  406. type = "shapeless",
  407. recipe = {"default:steel_ingot", "moreblocks:coal_stone"},
  408. })
  409. minetest.register_craft({
  410. output = "moreblocks:iron_stone",
  411. type = "shapeless",
  412. recipe = {"default:steel_ingot", "default:stone"},
  413. })
  414. minetest.register_craft({
  415. output = "default:stone",
  416. type = "shapeless",
  417. recipe = {"default:coal_lump", "moreblocks:iron_stone"},
  418. })
  419. minetest.register_craft({
  420. output = "moreblocks:trap_stone",
  421. type = "shapeless",
  422. recipe = {"default:mese_crystal_fragment", "default:stone"},
  423. })
  424. minetest.register_craft({
  425. output = "moreblocks:trap_desert_stone",
  426. type = "shapeless",
  427. recipe = {"default:mese_crystal_fragment", "default:desert_stone"},
  428. })
  429. minetest.register_craft({
  430. output = "moreblocks:trap_glass",
  431. type = "shapeless",
  432. recipe = {"default:mese_crystal_fragment", "default:glass"},
  433. })
  434. minetest.register_craft({
  435. output = "moreblocks:trap_obsidian_glass",
  436. type = "shapeless",
  437. recipe = {"default:mese_crystal_fragment", "default:obsidian_glass"},
  438. })
  439. minetest.register_craft({
  440. output = "moreblocks:trap_obsidian",
  441. type = "shapeless",
  442. recipe = {"default:mese_crystal_fragment", "default:obsidian"},
  443. })
  444. minetest.register_craft({
  445. output = "moreblocks:trap_sandstone",
  446. type = "shapeless",
  447. recipe = {"default:mese_crystal_fragment", "default:sandstone"},
  448. })
  449. minetest.register_craft({
  450. output = "moreblocks:cactus_brick",
  451. type = "shapeless",
  452. recipe = {"default:cactus", "default:brick"},
  453. })
  454. minetest.register_craft({
  455. output = "moreblocks:cactus_checker 4",
  456. recipe = {
  457. {"default:cactus", "default:stone"},
  458. {"default:stone", "default:cactus"},
  459. }
  460. })
  461. minetest.register_craft({
  462. output = "moreblocks:cactuschecker 4",
  463. recipe = {
  464. {"default:stone", "default:cactus"},
  465. {"default:cactus", "default:stone"},
  466. }
  467. })
  468. minetest.register_craft({
  469. output = "moreblocks:rope 3",
  470. recipe = {
  471. {"default:junglegrass"},
  472. {"default:junglegrass"},
  473. {"default:junglegrass"},
  474. }
  475. })
  476. minetest.register_craft({
  477. output = "moreblocks:dirt_compressed",
  478. recipe = {
  479. {'default:dirt', 'default:dirt', 'default:dirt'},
  480. {'default:dirt', 'default:dirt', 'default:dirt'},
  481. {'default:dirt', 'default:dirt', 'default:dirt'},
  482. }
  483. })
  484. minetest.register_craft({
  485. output = "default:dirt 9",
  486. recipe = {{"moreblocks:dirt_compressed"}},
  487. })
  488. minetest.register_craft({
  489. output = "moreblocks:cobble_compressed",
  490. recipe = {
  491. {"default:cobble", "default:cobble", "default:cobble"},
  492. {"default:cobble", "default:cobble", "default:cobble"},
  493. {"default:cobble", "default:cobble", "default:cobble"},
  494. }
  495. })
  496. minetest.register_craft({
  497. output = "default:cobble 9",
  498. recipe = {
  499. {"moreblocks:cobble_compressed"},
  500. }
  501. })
  502. minetest.register_craft({
  503. output = "moreblocks:cobble_condensed",
  504. recipe = {
  505. {"moreblocks:cobble_compressed", "moreblocks:cobble_compressed",
  506. "moreblocks:cobble_compressed"},
  507. {"moreblocks:cobble_compressed", "moreblocks:cobble_compressed",
  508. "moreblocks:cobble_compressed"},
  509. {"moreblocks:cobble_compressed", "moreblocks:cobble_compressed",
  510. "moreblocks:cobble_compressed"},
  511. }
  512. })
  513. minetest.register_craft({
  514. type = "shapeless",
  515. output = "moreblocks:cobble_compressed 9",
  516. recipe = {"moreblocks:cobble_condensed"}
  517. })
  518. minetest.register_craft({
  519. type = "cooking",
  520. output = "moreblocks:tar",
  521. recipe = "default:gravel",
  522. })
  523. -- 2019-06-01
  524. -- minetest.register_craft({
  525. -- type = "cooking",
  526. -- cooktime = 45, -- 5*9
  527. -- output = "default:stone 81",
  528. -- recipe = "moreblocks:cobble_condensed"
  529. -- })
  530. -- minetest.register_craft({
  531. -- type = "grinding",
  532. -- time = 27, -- 3*9
  533. -- output = "default:cobble 81",
  534. -- recipe = "moreblocks:cobble_condensed"
  535. -- })
  536. minetest.register_craft({
  537. type = "shapeless",
  538. output = "moreblocks:copperpatina",
  539. recipe = {"bucket:bucket_water", "default:copperblock"},
  540. replacements = {
  541. {"bucket:bucket_water", "bucket:bucket_empty"}
  542. }
  543. })
  544. minetest.register_craft({
  545. type = "shapeless",
  546. output = "moreblocks:copperpatina",
  547. recipe = {"bucket:bucket_river_water", "default:copperblock"},
  548. replacements = {
  549. {"bucket:bucket_river_water", "bucket:bucket_empty"}
  550. }
  551. })
  552. minetest.register_craft({
  553. output = "default:copper_ingot 9",
  554. recipe = {
  555. {"moreblocks:copperpatina"},
  556. }
  557. })
  558. if minetest.settings:get_bool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
  559. minetest.register_craft({
  560. output = "moreblocks:circular_saw",
  561. recipe = {
  562. { "", "default:steel_ingot", "" },
  563. { "group:wood", "group:wood", "group:wood"},
  564. { "group:wood", "", "group:wood"},
  565. }
  566. })
  567. end
  568. local tinted_glass_colour_list =
  569. {
  570. "blue", "cyan", "green", "grey",
  571. "magenta", "red", "white", "yellow",
  572. "brown", "orange", "pink", "violet",
  573. "dark_green", "dark_grey",
  574. }
  575. local tinted_dark_glass_colour_list =
  576. {
  577. "blue", "brown", "cyan",
  578. "magenta", "orange",
  579. "pink", "red", "violet", "yellow",
  580. }
  581. for _,c in pairs(tinted_glass_colour_list) do
  582. minetest.register_craft({
  583. type = "shapeless",
  584. output = "moreblocks:"..c.."_tinted_glass 8",
  585. recipe = {"default:glass", "default:glass", "default:glass",
  586. "default:glass", "dye:"..c, "default:glass",
  587. "default:glass", "default:glass", "default:glass"}
  588. })
  589. end
  590. for _,c in pairs(tinted_dark_glass_colour_list) do
  591. minetest.register_craft({
  592. type = "shapeless",
  593. output = "moreblocks:dark_"..c.."_tinted_glass 7",
  594. recipe = {"default:glass", "default:glass", "default:glass",
  595. "default:glass", "dye:"..c, "default:glass",
  596. "default:glass", "dye:black", "default:glass"}
  597. })
  598. end
  599. --[[
  600. minetest.register_craft({
  601. type = "shapeless",
  602. output = "moreblocks:blue_tinted_glass 8",
  603. recipe = {"default:glass", "default:glass", "default:glass",
  604. "default:glass", "dye:blue", "default:glass",
  605. "default:glass", "default:glass", "default:glass"}
  606. })
  607. minetest.register_craft({
  608. type = "shapeless",
  609. output = "moreblocks:cyan_tinted_glass 8",
  610. recipe = {"default:glass", "default:glass", "default:glass",
  611. "default:glass", "dye:cyan", "default:glass",
  612. "default:glass", "default:glass", "default:glass"}
  613. })
  614. minetest.register_craft({
  615. type = "shapeless",
  616. output = "moreblocks:green_tinted_glass 8",
  617. recipe = {"default:glass", "default:glass", "default:glass",
  618. "default:glass", "dye:green", "default:glass",
  619. "default:glass", "default:glass", "default:glass"}
  620. })
  621. minetest.register_craft({
  622. type = "shapeless",
  623. output = "moreblocks:grey_tinted_glass 8",
  624. recipe = {"default:glass", "default:glass", "default:glass",
  625. "default:glass", "dye:grey", "default:glass",
  626. "default:glass", "default:glass", "default:glass"}
  627. })
  628. minetest.register_craft({
  629. type = "shapeless",
  630. output = "moreblocks:magenta_tinted_glass 8",
  631. recipe = {"default:glass", "default:glass", "default:glass",
  632. "default:glass", "dye:magenta", "default:glass",
  633. "default:glass", "default:glass", "default:glass"}
  634. })
  635. minetest.register_craft({
  636. type = "shapeless",
  637. output = "moreblocks:red_tinted_glass 8",
  638. recipe = {"default:glass", "default:glass", "default:glass",
  639. "default:glass", "dye:red", "default:glass",
  640. "default:glass", "default:glass", "default:glass"}
  641. })
  642. minetest.register_craft({
  643. type = "shapeless",
  644. output = "moreblocks:white_tinted_glass 8",
  645. recipe = {"default:glass", "default:glass", "default:glass",
  646. "default:glass", "dye:white", "default:glass",
  647. "default:glass", "default:glass", "default:glass"}
  648. })
  649. minetest.register_craft({
  650. type = "shapeless",
  651. output = "moreblocks:yellow_tinted_glass 8",
  652. recipe = {"default:glass", "default:glass", "default:glass",
  653. "default:glass", "dye:yellow", "default:glass",
  654. "default:glass", "default:glass", "default:glass"}
  655. })
  656. --]]
  657. -- "brown_tinted_glass"
  658. -- "dark_blue_tinted_glass"
  659. -- "dark_brown_tinted_glass"
  660. -- "dark_cyan_tinted_glass"
  661. -- "dark_green_tinted_glass"
  662. -- "dark_grey_tinted_glass"
  663. -- "dark_magenta_tinted_glass"
  664. -- "dark_orange_tinted_glass"
  665. -- "dark_pink_tinted_glass"
  666. -- "dark_red_tinted_glass"
  667. -- "dark_violet_tinted_glass"
  668. -- "dark_yellow_tinted_glass"
  669. -- "orange_tinted_glass"
  670. -- "pink_tinted_glass"
  671. -- "violet_tinted_glass"
  672. minetest.register_craft({
  673. output = "moreblocks:gravel_stonebrick 2",
  674. recipe = {
  675. { "default:gravel" },
  676. { "default:stonebrick"},
  677. }
  678. })
  679. minetest.register_craft({
  680. output = "moreblocks:gravel_slope 6",
  681. recipe = {
  682. { "","","" },
  683. { "","","default:gravel", },
  684. { "", "default:gravel", "default:gravel" },
  685. }
  686. })
  687. -- first part of the 2m slope (1/4 node)
  688. minetest.register_craft({
  689. output = "moreblocks:gravel_slope_2a 8",
  690. recipe = {
  691. { "","","" },
  692. { "","","", },
  693. { "", "default:gravel", "default:gravel" },
  694. }
  695. })
  696. -- second part of the 2m slope (3/4 node)
  697. minetest.register_craft({
  698. output = "moreblocks:gravel_slope_2b 4",
  699. recipe = {
  700. { "","","default:gravel", },
  701. { "","","" },
  702. { "", "default:gravel", "default:gravel" },
  703. }
  704. })
  705. -- first part of the 3m slope (1/6 node)
  706. minetest.register_craft({
  707. output = "moreblocks:gravel_slope_3a 18",
  708. recipe = {
  709. { "","","" },
  710. { "","","", },
  711. { "default:gravel", "default:gravel", "default:gravel" },
  712. }
  713. })
  714. -- second part of the 3m slope (3/6 node)
  715. minetest.register_craft({
  716. output = "moreblocks:gravel_slope_3b 8",
  717. recipe = {
  718. { "","","" },
  719. { "","","default:gravel", },
  720. { "default:gravel", "default:gravel", "default:gravel" },
  721. }
  722. })
  723. -- third part of the 3m slope (5/6 node)
  724. minetest.register_craft({
  725. output = "moreblocks:gravel_slope_3c 6",
  726. recipe = {
  727. { "","","default:gravel", },
  728. { "","default:gravel","" },
  729. { "default:gravel", "default:gravel", "default:gravel" },
  730. }
  731. })
  732. -- -------------------------------------------------
  733. -- -------------------------------------------------
  734. -- (hopefully) temporary addition: permafrost nodes
  735. -- -------------------------------------------------
  736. -- 2020-07-02 Och Noe
  737. -- -------------------------------------------------
  738. -- -------------------------------------------------
  739. -- permafrost
  740. minetest.register_craft({
  741. output = "default:permafrost 2",
  742. recipe = {
  743. {"default:snowblock","",""},
  744. {"default:dirt","",""},
  745. {"","",""},
  746. },
  747. })
  748. minetest.register_craft({
  749. output = "default:permafrost 6",
  750. recipe = {
  751. {"default:ice","",""},
  752. {"default:dirt","default:dirt","default:dirt",},
  753. {"","",""},
  754. },
  755. })
  756. -- permafrost with stones
  757. minetest.register_craft({
  758. output = "default:permafrost_with_stones 2",
  759. recipe = {
  760. {"default:snowblock","",""},
  761. {"default:gravel","",""},
  762. {"","",""},
  763. },
  764. })
  765. minetest.register_craft({
  766. output = "default:permafrost_with_stones 6",
  767. recipe = {
  768. {"default:ice","",""},
  769. {"default:gravel","default:gravel","default:gravel",},
  770. {"","",""},
  771. },
  772. })
  773. -- permafrost with moss
  774. minetest.register_craft({
  775. output = "default:permafrost_with_moss 2",
  776. recipe = {
  777. {"default:snowblock","",""},
  778. {"default:dirt_with_grass","",""},
  779. {"","",""},
  780. },
  781. })
  782. minetest.register_craft({
  783. output = "default:permafrost_with_moss 6",
  784. recipe = {
  785. {"default:ice","",""},
  786. {"default:dirt_with_grass","default:dirt_with_grass","default:dirt_with_grass"},
  787. {"","",""},
  788. },
  789. })
  790. -- dry dirt - should be in another mod
  791. minetest.register_craft({
  792. output = "default:dry_dirt 2",
  793. recipe = {
  794. {"ethereal:dry_dirt","",""},
  795. {"ethereal:dry_dirt","",""},
  796. {"","",""},
  797. },
  798. })
  799. minetest.register_craft({
  800. output = "ethereal:dry_dirt 2",
  801. recipe = {
  802. {"default:dry_dirt","",""},
  803. {"default:dry_dirt","",""},
  804. {"","",""},
  805. },
  806. })
  807. -- stone tiles back to cobble
  808. minetest.register_craft({
  809. output = "default:cobble 4",
  810. recipe = {
  811. {"moreblocks:stone_tile", "moreblocks:stone_tile"},
  812. {"moreblocks:stone_tile", "moreblocks:stone_tile"},
  813. }
  814. })
  815. -- gravel slopes (2,3) back to gravel
  816. -- 1/2 + 1/2
  817. minetest.register_craft({
  818. output = "default:gravel",
  819. recipe = {
  820. {"moreblocks:gravel_slope_2a", "",""},
  821. {"moreblocks:gravel_slope_2b", "",""},
  822. { "","","" },
  823. }
  824. })
  825. -- 3/6 + 3/6
  826. minetest.register_craft({
  827. output = "default:gravel",
  828. recipe = {
  829. {"moreblocks:gravel_slope_3b", "",""},
  830. {"moreblocks:gravel_slope_3b", "",""},
  831. { "","","" },
  832. }
  833. })
  834. -- 1/6 + 5/6
  835. minetest.register_craft({
  836. output = "default:gravel",
  837. recipe = {
  838. {"moreblocks:gravel_slope_3a", "",""},
  839. {"moreblocks:gravel_slope_3c", "",""},
  840. { "","","" },
  841. }
  842. })
  843. -- 2022-08-23 default:marram_grass
  844. minetest.register_craft({
  845. output = "default:marram_grass",
  846. recipe = {
  847. {"default:grass", "",""},
  848. {"default:sand", "",""},
  849. { "","","" },
  850. }
  851. })
  852. -- 2023-08-21 default:dry_dirt_with_dry_grass
  853. minetest.register_craft({
  854. output = "default:dry_dirt_with_dry_grass",
  855. recipe = {
  856. { "default:dry_grass_1","","" },
  857. { "default:dry_dirt","","" },
  858. { "","","" },
  859. }
  860. })