crafting.lua 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179
  1. -- mods/default/crafting.lua
  2. minetest.register_craft({
  3. output = 'default:wood 4',
  4. recipe = {
  5. {'default:tree'},
  6. }
  7. })
  8. minetest.register_craft({
  9. output = 'default:junglewood 4',
  10. recipe = {
  11. {'default:jungletree'},
  12. }
  13. })
  14. minetest.register_craft({
  15. output = 'default:pine_wood 4',
  16. recipe = {
  17. {'default:pine_tree'},
  18. }
  19. })
  20. minetest.register_craft({
  21. output = 'default:acacia_wood 4',
  22. recipe = {
  23. {'default:acacia_tree'},
  24. }
  25. })
  26. minetest.register_craft({
  27. output = 'default:aspen_wood 4',
  28. recipe = {
  29. {'default:aspen_tree'},
  30. }
  31. })
  32. minetest.register_craft({
  33. output = 'default:wood',
  34. recipe = {
  35. {'default:bush_stem'},
  36. }
  37. })
  38. minetest.register_craft({
  39. output = 'default:acacia_wood',
  40. recipe = {
  41. {'default:acacia_bush_stem'},
  42. }
  43. })
  44. minetest.register_craft({
  45. output = 'default:stick 4',
  46. recipe = {
  47. {'group:wood'},
  48. }
  49. })
  50. minetest.register_craft({
  51. output = 'default:sign_wall_steel 3',
  52. recipe = {
  53. {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
  54. {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
  55. {'', 'group:stick', ''},
  56. }
  57. })
  58. minetest.register_craft({
  59. output = 'default:sign_wall_wood 3',
  60. recipe = {
  61. {'group:wood', 'group:wood', 'group:wood'},
  62. {'group:wood', 'group:wood', 'group:wood'},
  63. {'', 'group:stick', ''},
  64. }
  65. })
  66. minetest.register_craft({
  67. output = 'default:torch 4',
  68. recipe = {
  69. {'default:coal_lump'},
  70. {'group:wood'},
  71. }
  72. })
  73. minetest.register_craft({
  74. output = 'default:pick_wood',
  75. recipe = {
  76. {'group:wood', 'group:wood', 'group:wood'},
  77. {'', 'group:wood', ''},
  78. {'', 'group:wood', ''},
  79. }
  80. })
  81. minetest.register_craft({
  82. output = 'default:pick_stone',
  83. recipe = {
  84. {'group:stone', 'group:stone', 'group:stone'},
  85. {'', 'group:wood', ''},
  86. {'', 'group:wood', ''},
  87. }
  88. })
  89. minetest.register_craft({
  90. output = 'default:pick_steel',
  91. recipe = {
  92. {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
  93. {'', 'group:wood', ''},
  94. {'', 'group:wood', ''},
  95. }
  96. })
  97. minetest.register_craft({
  98. output = 'default:pick_bronze',
  99. recipe = {
  100. {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'},
  101. {'', 'group:wood', ''},
  102. {'', 'group:wood', ''},
  103. }
  104. })
  105. minetest.register_craft({
  106. output = 'default:pick_mese',
  107. recipe = {
  108. {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
  109. {'', 'group:wood', ''},
  110. {'', 'group:wood', ''},
  111. }
  112. })
  113. minetest.register_craft({
  114. output = 'default:pick_diamond',
  115. recipe = {
  116. {'default:diamond', 'default:diamond', 'default:diamond'},
  117. {'', 'group:wood', ''},
  118. {'', 'group:wood', ''},
  119. }
  120. })
  121. minetest.register_craft({
  122. output = 'default:shovel_wood',
  123. recipe = {
  124. {'group:wood'},
  125. {'group:wood'},
  126. {'group:wood'},
  127. }
  128. })
  129. minetest.register_craft({
  130. output = 'default:shovel_stone',
  131. recipe = {
  132. {'group:stone'},
  133. {'group:wood'},
  134. {'group:wood'},
  135. }
  136. })
  137. minetest.register_craft({
  138. output = 'default:shovel_steel',
  139. recipe = {
  140. {'default:steel_ingot'},
  141. {'group:wood'},
  142. {'group:wood'},
  143. }
  144. })
  145. minetest.register_craft({
  146. output = 'default:shovel_bronze',
  147. recipe = {
  148. {'default:bronze_ingot'},
  149. {'group:wood'},
  150. {'group:wood'},
  151. }
  152. })
  153. minetest.register_craft({
  154. output = 'default:shovel_mese',
  155. recipe = {
  156. {'default:mese_crystal'},
  157. {'group:wood'},
  158. {'group:wood'},
  159. }
  160. })
  161. minetest.register_craft({
  162. output = 'default:shovel_diamond',
  163. recipe = {
  164. {'default:diamond'},
  165. {'group:wood'},
  166. {'group:wood'},
  167. }
  168. })
  169. -- Axes
  170. -- Recipes face left to match appearence in textures and inventory
  171. minetest.register_craft({
  172. output = 'default:axe_wood',
  173. recipe = {
  174. {'group:wood', 'group:wood'},
  175. {'group:wood', 'group:wood'},
  176. {'', 'group:wood'},
  177. }
  178. })
  179. minetest.register_craft({
  180. output = 'default:axe_stone',
  181. recipe = {
  182. {'group:stone', 'group:stone'},
  183. {'group:stone', 'group:wood'},
  184. {'', 'group:wood'},
  185. }
  186. })
  187. minetest.register_craft({
  188. output = 'default:axe_steel',
  189. recipe = {
  190. {'default:steel_ingot', 'default:steel_ingot'},
  191. {'default:steel_ingot', 'group:wood'},
  192. {'', 'group:wood'},
  193. }
  194. })
  195. minetest.register_craft({
  196. output = 'default:axe_bronze',
  197. recipe = {
  198. {'default:bronze_ingot', 'default:bronze_ingot'},
  199. {'default:bronze_ingot', 'group:wood'},
  200. {'', 'group:wood'},
  201. }
  202. })
  203. minetest.register_craft({
  204. output = 'default:axe_mese',
  205. recipe = {
  206. {'default:mese_crystal', 'default:mese_crystal'},
  207. {'default:mese_crystal', 'group:wood'},
  208. {'', 'group:wood'},
  209. }
  210. })
  211. minetest.register_craft({
  212. output = 'default:axe_diamond',
  213. recipe = {
  214. {'default:diamond', 'default:diamond'},
  215. {'default:diamond', 'group:wood'},
  216. {'', 'group:wood'},
  217. }
  218. })
  219. minetest.register_craft({
  220. output = 'default:sword_wood',
  221. recipe = {
  222. {'group:wood'},
  223. {'group:wood'},
  224. {'group:wood'},
  225. }
  226. })
  227. minetest.register_craft({
  228. output = 'default:sword_stone',
  229. recipe = {
  230. {'group:stone'},
  231. {'group:stone'},
  232. {'group:wood'},
  233. }
  234. })
  235. minetest.register_craft({
  236. output = 'default:sword_steel',
  237. recipe = {
  238. {'default:steel_ingot'},
  239. {'default:steel_ingot'},
  240. {'group:wood'},
  241. }
  242. })
  243. minetest.register_craft({
  244. output = 'default:sword_bronze',
  245. recipe = {
  246. {'default:bronze_ingot'},
  247. {'default:bronze_ingot'},
  248. {'group:wood'},
  249. }
  250. })
  251. minetest.register_craft({
  252. output = 'default:sword_mese',
  253. recipe = {
  254. {'default:mese_crystal'},
  255. {'default:mese_crystal'},
  256. {'group:wood'},
  257. }
  258. })
  259. minetest.register_craft({
  260. output = 'default:sword_diamond',
  261. recipe = {
  262. {'default:diamond'},
  263. {'default:diamond'},
  264. {'group:wood'},
  265. }
  266. })
  267. minetest.register_craft({
  268. output = 'default:skeleton_key',
  269. recipe = {
  270. {'default:gold_ingot'},
  271. }
  272. })
  273. minetest.register_craft({
  274. output = 'default:chest',
  275. recipe = {
  276. {'group:wood', 'group:wood', 'group:wood'},
  277. {'group:wood', '', 'group:wood'},
  278. {'group:wood', 'group:wood', 'group:wood'},
  279. }
  280. })
  281. minetest.register_craft({
  282. output = 'default:chest_locked',
  283. recipe = {
  284. {'group:wood', 'group:wood', 'group:wood'},
  285. {'group:wood', 'default:steel_ingot', 'group:wood'},
  286. {'group:wood', 'group:wood', 'group:wood'},
  287. }
  288. })
  289. minetest.register_craft( {
  290. type = "shapeless",
  291. output = "default:chest_locked",
  292. recipe = {"default:chest", "default:steel_ingot"},
  293. })
  294. minetest.register_craft({
  295. output = 'default:furnace',
  296. recipe = {
  297. {'group:stone', 'group:stone', 'group:stone'},
  298. {'group:stone', '', 'group:stone'},
  299. {'group:stone', 'group:stone', 'group:stone'},
  300. }
  301. })
  302. minetest.register_craft({
  303. output = 'default:coalblock',
  304. recipe = {
  305. {'default:coal_lump', 'default:coal_lump', 'default:coal_lump'},
  306. {'default:coal_lump', 'default:coal_lump', 'default:coal_lump'},
  307. {'default:coal_lump', 'default:coal_lump', 'default:coal_lump'},
  308. }
  309. })
  310. minetest.register_craft({
  311. output = 'default:coal_lump 9',
  312. recipe = {
  313. {'default:coalblock'},
  314. }
  315. })
  316. minetest.register_craft({
  317. output = 'default:steelblock',
  318. recipe = {
  319. {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
  320. {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
  321. {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
  322. }
  323. })
  324. minetest.register_craft({
  325. output = 'default:steel_ingot 9',
  326. recipe = {
  327. {'default:steelblock'},
  328. }
  329. })
  330. minetest.register_craft({
  331. output = 'default:copperblock',
  332. recipe = {
  333. {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
  334. {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
  335. {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
  336. }
  337. })
  338. minetest.register_craft({
  339. output = 'default:copper_ingot 9',
  340. recipe = {
  341. {'default:copperblock'},
  342. }
  343. })
  344. minetest.register_craft({
  345. output = "default:tinblock",
  346. recipe = {
  347. {"default:tin_ingot", "default:tin_ingot", "default:tin_ingot"},
  348. {"default:tin_ingot", "default:tin_ingot", "default:tin_ingot"},
  349. {"default:tin_ingot", "default:tin_ingot", "default:tin_ingot"},
  350. }
  351. })
  352. minetest.register_craft({
  353. output = "default:tin_ingot 9",
  354. recipe = {
  355. {"default:tinblock"},
  356. }
  357. })
  358. minetest.register_craft({
  359. output = "default:bronze_ingot 9",
  360. recipe = {
  361. {"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
  362. {"default:copper_ingot", "default:tin_ingot", "default:copper_ingot"},
  363. {"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
  364. }
  365. })
  366. minetest.register_craft({
  367. output = 'default:bronzeblock',
  368. recipe = {
  369. {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'},
  370. {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'},
  371. {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'},
  372. }
  373. })
  374. minetest.register_craft({
  375. output = 'default:bronze_ingot 9',
  376. recipe = {
  377. {'default:bronzeblock'},
  378. }
  379. })
  380. minetest.register_craft({
  381. output = 'default:goldblock',
  382. recipe = {
  383. {'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
  384. {'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
  385. {'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
  386. }
  387. })
  388. minetest.register_craft({
  389. output = 'default:gold_ingot 9',
  390. recipe = {
  391. {'default:goldblock'},
  392. }
  393. })
  394. minetest.register_craft({
  395. output = 'default:diamondblock',
  396. recipe = {
  397. {'default:diamond', 'default:diamond', 'default:diamond'},
  398. {'default:diamond', 'default:diamond', 'default:diamond'},
  399. {'default:diamond', 'default:diamond', 'default:diamond'},
  400. }
  401. })
  402. minetest.register_craft({
  403. output = 'default:diamond 9',
  404. recipe = {
  405. {'default:diamondblock'},
  406. }
  407. })
  408. minetest.register_craft({
  409. output = "default:sandstone",
  410. recipe = {
  411. {"default:sand", "default:sand"},
  412. {"default:sand", "default:sand"},
  413. }
  414. })
  415. minetest.register_craft({
  416. output = "default:sand 4",
  417. recipe = {
  418. {"default:sandstone"},
  419. }
  420. })
  421. minetest.register_craft({
  422. output = "default:sandstonebrick 4",
  423. recipe = {
  424. {"default:sandstone", "default:sandstone"},
  425. {"default:sandstone", "default:sandstone"},
  426. }
  427. })
  428. minetest.register_craft({
  429. output = "default:sandstone_block 9",
  430. recipe = {
  431. {"default:sandstone", "default:sandstone", "default:sandstone"},
  432. {"default:sandstone", "default:sandstone", "default:sandstone"},
  433. {"default:sandstone", "default:sandstone", "default:sandstone"},
  434. }
  435. })
  436. minetest.register_craft({
  437. output = "default:desert_sandstone",
  438. recipe = {
  439. {"default:desert_sand", "default:desert_sand"},
  440. {"default:desert_sand", "default:desert_sand"},
  441. }
  442. })
  443. minetest.register_craft({
  444. output = "default:desert_sand 4",
  445. recipe = {
  446. {"default:desert_sandstone"},
  447. }
  448. })
  449. minetest.register_craft({
  450. output = "default:desert_sandstone_brick 4",
  451. recipe = {
  452. {"default:desert_sandstone", "default:desert_sandstone"},
  453. {"default:desert_sandstone", "default:desert_sandstone"},
  454. }
  455. })
  456. minetest.register_craft({
  457. output = "default:desert_sandstone_block 9",
  458. recipe = {
  459. {"default:desert_sandstone", "default:desert_sandstone", "default:desert_sandstone"},
  460. {"default:desert_sandstone", "default:desert_sandstone", "default:desert_sandstone"},
  461. {"default:desert_sandstone", "default:desert_sandstone", "default:desert_sandstone"},
  462. }
  463. })
  464. minetest.register_craft({
  465. output = "default:silver_sandstone",
  466. recipe = {
  467. {"default:silver_sand", "default:silver_sand"},
  468. {"default:silver_sand", "default:silver_sand"},
  469. }
  470. })
  471. minetest.register_craft({
  472. output = "default:silver_sand 4",
  473. recipe = {
  474. {"default:silver_sandstone"},
  475. }
  476. })
  477. minetest.register_craft({
  478. output = "default:silver_sandstone_brick 4",
  479. recipe = {
  480. {"default:silver_sandstone", "default:silver_sandstone"},
  481. {"default:silver_sandstone", "default:silver_sandstone"},
  482. }
  483. })
  484. minetest.register_craft({
  485. output = "default:silver_sandstone_block 9",
  486. recipe = {
  487. {"default:silver_sandstone", "default:silver_sandstone", "default:silver_sandstone"},
  488. {"default:silver_sandstone", "default:silver_sandstone", "default:silver_sandstone"},
  489. {"default:silver_sandstone", "default:silver_sandstone", "default:silver_sandstone"},
  490. }
  491. })
  492. minetest.register_craft({
  493. output = 'default:clay',
  494. recipe = {
  495. {'default:clay_lump', 'default:clay_lump'},
  496. {'default:clay_lump', 'default:clay_lump'},
  497. }
  498. })
  499. minetest.register_craft({
  500. output = 'default:clay_lump 4',
  501. recipe = {
  502. {'default:clay'},
  503. }
  504. })
  505. minetest.register_craft({
  506. output = 'default:brick',
  507. recipe = {
  508. {'default:clay_brick', 'default:clay_brick'},
  509. {'default:clay_brick', 'default:clay_brick'},
  510. }
  511. })
  512. minetest.register_craft({
  513. output = 'default:clay_brick 4',
  514. recipe = {
  515. {'default:brick'},
  516. }
  517. })
  518. minetest.register_craft({
  519. output = 'default:paper',
  520. recipe = {
  521. {'default:papyrus', 'default:papyrus', 'default:papyrus'},
  522. }
  523. })
  524. minetest.register_craft({
  525. output = 'default:book',
  526. recipe = {
  527. {'default:paper'},
  528. {'default:paper'},
  529. {'default:paper'},
  530. }
  531. })
  532. minetest.register_craft({
  533. output = 'default:bookshelf',
  534. recipe = {
  535. {'group:wood', 'group:wood', 'group:wood'},
  536. {'default:book', 'default:book', 'default:book'},
  537. {'group:wood', 'group:wood', 'group:wood'},
  538. }
  539. })
  540. minetest.register_craft({
  541. output = "default:ladder_wood 5",
  542. recipe = {
  543. {"group:stick", "", "group:stick"},
  544. {"group:stick", "group:stick", "group:stick"},
  545. {"group:stick", "", "group:stick"},
  546. }
  547. })
  548. minetest.register_craft({
  549. output = 'default:ladder_steel 15',
  550. recipe = {
  551. {'default:steel_ingot', '', 'default:steel_ingot'},
  552. {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
  553. {'default:steel_ingot', '', 'default:steel_ingot'},
  554. }
  555. })
  556. minetest.register_craft({
  557. output = 'default:mese',
  558. recipe = {
  559. {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
  560. {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
  561. {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
  562. }
  563. })
  564. minetest.register_craft({
  565. output = 'default:mese_crystal 9',
  566. recipe = {
  567. {'default:mese'},
  568. }
  569. })
  570. minetest.register_craft({
  571. output = 'default:mese_crystal_fragment 9',
  572. recipe = {
  573. {'default:mese_crystal'},
  574. }
  575. })
  576. minetest.register_craft({
  577. output = "default:mese_crystal",
  578. recipe = {
  579. {"default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment"},
  580. {"default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment"},
  581. {"default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment"},
  582. }
  583. })
  584. minetest.register_craft({
  585. output = 'default:meselamp',
  586. recipe = {
  587. {'default:glass'},
  588. {'default:mese_crystal'},
  589. }
  590. })
  591. minetest.register_craft({
  592. output = "default:mese_post_light 3",
  593. recipe = {
  594. {"", "default:glass", ""},
  595. {"default:mese_crystal", "default:mese_crystal", "default:mese_crystal"},
  596. {"", "group:wood", ""},
  597. }
  598. })
  599. minetest.register_craft({
  600. output = 'default:obsidian_shard 9',
  601. recipe = {
  602. {'default:obsidian'}
  603. }
  604. })
  605. minetest.register_craft({
  606. output = 'default:obsidian',
  607. recipe = {
  608. {'default:obsidian_shard', 'default:obsidian_shard', 'default:obsidian_shard'},
  609. {'default:obsidian_shard', 'default:obsidian_shard', 'default:obsidian_shard'},
  610. {'default:obsidian_shard', 'default:obsidian_shard', 'default:obsidian_shard'},
  611. }
  612. })
  613. minetest.register_craft({
  614. output = 'default:obsidianbrick 4',
  615. recipe = {
  616. {'default:obsidian', 'default:obsidian'},
  617. {'default:obsidian', 'default:obsidian'}
  618. }
  619. })
  620. minetest.register_craft({
  621. output = 'default:obsidian_block 9',
  622. recipe = {
  623. {'default:obsidian', 'default:obsidian', 'default:obsidian'},
  624. {'default:obsidian', 'default:obsidian', 'default:obsidian'},
  625. {'default:obsidian', 'default:obsidian', 'default:obsidian'},
  626. }
  627. })
  628. minetest.register_craft({
  629. output = 'default:stonebrick 4',
  630. recipe = {
  631. {'default:stone', 'default:stone'},
  632. {'default:stone', 'default:stone'},
  633. }
  634. })
  635. minetest.register_craft({
  636. output = 'default:stone_block 9',
  637. recipe = {
  638. {'default:stone', 'default:stone', 'default:stone'},
  639. {'default:stone', 'default:stone', 'default:stone'},
  640. {'default:stone', 'default:stone', 'default:stone'},
  641. }
  642. })
  643. minetest.register_craft({
  644. output = 'default:desert_stonebrick 4',
  645. recipe = {
  646. {'default:desert_stone', 'default:desert_stone'},
  647. {'default:desert_stone', 'default:desert_stone'},
  648. }
  649. })
  650. minetest.register_craft({
  651. output = 'default:desert_stone_block 9',
  652. recipe = {
  653. {'default:desert_stone', 'default:desert_stone', 'default:desert_stone'},
  654. {'default:desert_stone', 'default:desert_stone', 'default:desert_stone'},
  655. {'default:desert_stone', 'default:desert_stone', 'default:desert_stone'},
  656. }
  657. })
  658. minetest.register_craft({
  659. output = 'default:snowblock',
  660. recipe = {
  661. {'default:snow', 'default:snow', 'default:snow'},
  662. {'default:snow', 'default:snow', 'default:snow'},
  663. {'default:snow', 'default:snow', 'default:snow'},
  664. }
  665. })
  666. minetest.register_craft({
  667. output = 'default:snow 9',
  668. recipe = {
  669. {'default:snowblock'},
  670. }
  671. })
  672. --
  673. -- Crafting (tool repair)
  674. --
  675. minetest.register_craft({
  676. type = "toolrepair",
  677. additional_wear = -0.02,
  678. })
  679. --
  680. -- Cooking recipes
  681. --
  682. minetest.register_craft({
  683. type = "cooking",
  684. output = "default:glass",
  685. recipe = "group:sand",
  686. })
  687. minetest.register_craft({
  688. type = "cooking",
  689. output = "default:obsidian_glass",
  690. recipe = "default:obsidian_shard",
  691. })
  692. minetest.register_craft({
  693. type = "cooking",
  694. output = "default:stone",
  695. recipe = "default:cobble",
  696. })
  697. minetest.register_craft({
  698. type = "cooking",
  699. output = "default:stone",
  700. recipe = "default:mossycobble",
  701. })
  702. minetest.register_craft({
  703. type = "cooking",
  704. output = "default:desert_stone",
  705. recipe = "default:desert_cobble",
  706. })
  707. minetest.register_craft({
  708. type = "cooking",
  709. output = "default:steel_ingot",
  710. recipe = "default:iron_lump",
  711. })
  712. minetest.register_craft({
  713. type = "cooking",
  714. output = "default:copper_ingot",
  715. recipe = "default:copper_lump",
  716. })
  717. minetest.register_craft({
  718. type = "cooking",
  719. output = "default:tin_ingot",
  720. recipe = "default:tin_lump",
  721. })
  722. minetest.register_craft({
  723. type = "cooking",
  724. output = "default:gold_ingot",
  725. recipe = "default:gold_lump",
  726. })
  727. minetest.register_craft({
  728. type = "cooking",
  729. output = "default:clay_brick",
  730. recipe = "default:clay_lump",
  731. })
  732. minetest.register_craft({
  733. type = 'cooking',
  734. output = 'default:gold_ingot',
  735. recipe = 'default:skeleton_key',
  736. cooktime = 5,
  737. })
  738. minetest.register_craft({
  739. type = 'cooking',
  740. output = 'default:gold_ingot',
  741. recipe = 'default:key',
  742. cooktime = 5,
  743. })
  744. --
  745. -- Fuels
  746. --
  747. -- Support use of group:tree
  748. minetest.register_craft({
  749. type = "fuel",
  750. recipe = "group:tree",
  751. burntime = 30,
  752. })
  753. -- Burn time for all woods are in order of wood density,
  754. -- which is also the order of wood colour darkness:
  755. -- aspen, pine, apple, acacia, jungle
  756. minetest.register_craft({
  757. type = "fuel",
  758. recipe = "default:aspen_tree",
  759. burntime = 22,
  760. })
  761. minetest.register_craft({
  762. type = "fuel",
  763. recipe = "default:pine_tree",
  764. burntime = 26,
  765. })
  766. minetest.register_craft({
  767. type = "fuel",
  768. recipe = "default:tree",
  769. burntime = 30,
  770. })
  771. minetest.register_craft({
  772. type = "fuel",
  773. recipe = "default:acacia_tree",
  774. burntime = 34,
  775. })
  776. minetest.register_craft({
  777. type = "fuel",
  778. recipe = "default:jungletree",
  779. burntime = 38,
  780. })
  781. -- Support use of group:wood
  782. minetest.register_craft({
  783. type = "fuel",
  784. recipe = "group:wood",
  785. burntime = 7,
  786. })
  787. minetest.register_craft({
  788. type = "fuel",
  789. recipe = "default:aspen_wood",
  790. burntime = 5,
  791. })
  792. minetest.register_craft({
  793. type = "fuel",
  794. recipe = "default:pine_wood",
  795. burntime = 6,
  796. })
  797. minetest.register_craft({
  798. type = "fuel",
  799. recipe = "default:wood",
  800. burntime = 7,
  801. })
  802. minetest.register_craft({
  803. type = "fuel",
  804. recipe = "default:acacia_wood",
  805. burntime = 8,
  806. })
  807. minetest.register_craft({
  808. type = "fuel",
  809. recipe = "default:junglewood",
  810. burntime = 9,
  811. })
  812. -- Support use of group:sapling
  813. minetest.register_craft({
  814. type = "fuel",
  815. recipe = "group:sapling",
  816. burntime = 10,
  817. })
  818. minetest.register_craft({
  819. type = "fuel",
  820. recipe = "default:bush_sapling",
  821. burntime = 6,
  822. })
  823. minetest.register_craft({
  824. type = "fuel",
  825. recipe = "default:acacia_bush_sapling",
  826. burntime = 7,
  827. })
  828. minetest.register_craft({
  829. type = "fuel",
  830. recipe = "default:aspen_sapling",
  831. burntime = 8,
  832. })
  833. minetest.register_craft({
  834. type = "fuel",
  835. recipe = "default:pine_sapling",
  836. burntime = 9,
  837. })
  838. minetest.register_craft({
  839. type = "fuel",
  840. recipe = "default:sapling",
  841. burntime = 10,
  842. })
  843. minetest.register_craft({
  844. type = "fuel",
  845. recipe = "default:acacia_sapling",
  846. burntime = 11,
  847. })
  848. minetest.register_craft({
  849. type = "fuel",
  850. recipe = "default:junglesapling",
  851. burntime = 12,
  852. })
  853. minetest.register_craft({
  854. type = "fuel",
  855. recipe = "default:fence_aspen_wood",
  856. burntime = 5,
  857. })
  858. minetest.register_craft({
  859. type = "fuel",
  860. recipe = "default:fence_pine_wood",
  861. burntime = 6,
  862. })
  863. minetest.register_craft({
  864. type = "fuel",
  865. recipe = "default:fence_wood",
  866. burntime = 7,
  867. })
  868. minetest.register_craft({
  869. type = "fuel",
  870. recipe = "default:fence_acacia_wood",
  871. burntime = 8,
  872. })
  873. minetest.register_craft({
  874. type = "fuel",
  875. recipe = "default:fence_junglewood",
  876. burntime = 9,
  877. })
  878. minetest.register_craft({
  879. type = "fuel",
  880. recipe = "default:bush_stem",
  881. burntime = 7,
  882. })
  883. minetest.register_craft({
  884. type = "fuel",
  885. recipe = "default:acacia_bush_stem",
  886. burntime = 8,
  887. })
  888. minetest.register_craft({
  889. type = "fuel",
  890. recipe = "default:junglegrass",
  891. burntime = 2,
  892. })
  893. minetest.register_craft({
  894. type = "fuel",
  895. recipe = "group:leaves",
  896. burntime = 1,
  897. })
  898. minetest.register_craft({
  899. type = "fuel",
  900. recipe = "default:cactus",
  901. burntime = 15,
  902. })
  903. minetest.register_craft({
  904. type = "fuel",
  905. recipe = "default:papyrus",
  906. burntime = 1,
  907. })
  908. minetest.register_craft({
  909. type = "fuel",
  910. recipe = "default:bookshelf",
  911. burntime = 30,
  912. })
  913. minetest.register_craft({
  914. type = "fuel",
  915. recipe = "default:ladder_wood",
  916. burntime = 2,
  917. })
  918. minetest.register_craft({
  919. type = "fuel",
  920. recipe = "default:lava_source",
  921. burntime = 60,
  922. })
  923. minetest.register_craft({
  924. type = "fuel",
  925. recipe = "default:torch",
  926. burntime = 4,
  927. })
  928. minetest.register_craft({
  929. type = "fuel",
  930. recipe = "default:sign_wall_wood",
  931. burntime = 10,
  932. })
  933. minetest.register_craft({
  934. type = "fuel",
  935. recipe = "default:chest",
  936. burntime = 30,
  937. })
  938. minetest.register_craft({
  939. type = "fuel",
  940. recipe = "default:chest_locked",
  941. burntime = 30,
  942. })
  943. minetest.register_craft({
  944. type = "fuel",
  945. recipe = "default:apple",
  946. burntime = 3,
  947. })
  948. minetest.register_craft({
  949. type = "fuel",
  950. recipe = "default:coal_lump",
  951. burntime = 40,
  952. })
  953. minetest.register_craft({
  954. type = "fuel",
  955. recipe = "default:coalblock",
  956. burntime = 370,
  957. })
  958. minetest.register_craft({
  959. type = "fuel",
  960. recipe = "default:grass_1",
  961. burntime = 2,
  962. })
  963. minetest.register_craft({
  964. type = "fuel",
  965. recipe = "default:dry_grass_1",
  966. burntime = 2,
  967. })
  968. minetest.register_craft({
  969. type = "fuel",
  970. recipe = "default:paper",
  971. burntime = 1,
  972. })
  973. minetest.register_craft({
  974. type = "fuel",
  975. recipe = "default:book",
  976. burntime = 3,
  977. })
  978. minetest.register_craft({
  979. type = "fuel",
  980. recipe = "default:book_written",
  981. burntime = 3,
  982. })
  983. minetest.register_craft({
  984. type = "fuel",
  985. recipe = "default:dry_shrub",
  986. burntime = 2,
  987. })
  988. minetest.register_craft({
  989. type = "fuel",
  990. recipe = "group:stick",
  991. burntime = 1,
  992. })
  993. minetest.register_craft({
  994. type = "fuel",
  995. recipe = "default:pick_wood",
  996. burntime = 6,
  997. })
  998. minetest.register_craft({
  999. type = "fuel",
  1000. recipe = "default:shovel_wood",
  1001. burntime = 4,
  1002. })
  1003. minetest.register_craft({
  1004. type = "fuel",
  1005. recipe = "default:axe_wood",
  1006. burntime = 6,
  1007. })
  1008. minetest.register_craft({
  1009. type = "fuel",
  1010. recipe = "default:sword_wood",
  1011. burntime = 5,
  1012. })