crafting.lua 24 KB

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