crafting.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. --
  2. -- Crafting definition
  3. --
  4. minetest.register_craft({
  5. output = 'default:wood 2',
  6. recipe = {
  7. {'group:tree_horizontal'},
  8. }
  9. })
  10. minetest.register_craft({
  11. output = 'nodetest:tree_horizontal 2',
  12. recipe = {
  13. {'', 'default:tree'},
  14. {'default:tree', ''},
  15. }
  16. })
  17. minetest.register_craft({
  18. output = 'default:tree 2',
  19. recipe = {
  20. {'', 'nodetest:tree_horizontal'},
  21. {'nodetest:tree_horizontal', ''},
  22. }
  23. })
  24. minetest.register_craft({
  25. output = 'nodetest:jungletree_horizontal 2',
  26. recipe = {
  27. {'', 'default:jungletree'},
  28. {'default:jungletree', ''},
  29. }
  30. })
  31. minetest.register_craft({
  32. output = 'default:jungletree 2',
  33. recipe = {
  34. {'', 'nodetest:jungletree_horizontal'},
  35. {'nodetest:jungletree_horizontal', ''},
  36. }
  37. })
  38. minetest.register_craft({
  39. output = 'nodetest:papyrus_roots',
  40. recipe = {
  41. {'default:papyrus', 'default:papyrus', 'default:papyrus'},
  42. {'default:papyrus', 'default:papyrus', 'default:papyrus'},
  43. {'default:papyrus', 'default:papyrus', 'default:papyrus'},
  44. }
  45. })
  46. minetest.register_craft({
  47. output = 'default:papyrus 9',
  48. recipe = {
  49. {'nodetest:papyrus_roots'},
  50. }
  51. })
  52. minetest.register_craft({
  53. output = 'nodetest:bone 9',
  54. recipe = {
  55. {'bones:bones'},
  56. }
  57. })
  58. minetest.register_craft({
  59. output = 'bones:bones',
  60. recipe = {
  61. {'nodetest:bone', 'nodetest:bone', 'nodetest:bone'},
  62. {'nodetest:bone', 'nodetest:bone', 'nodetest:bone'},
  63. {'nodetest:bone', 'nodetest:bone', 'nodetest:bone'},
  64. }
  65. })
  66. minetest.register_craft({
  67. output = 'dye:white',
  68. recipe = {
  69. {'nodetest:bone'},
  70. }
  71. })
  72. minetest.register_craft({
  73. output = 'nodetest:spearwood',
  74. recipe = {
  75. {'', '', 'default:stick'},
  76. {'', 'default:stick', ''},
  77. {'default:stick', '', ''},
  78. }
  79. })
  80. minetest.register_craft({
  81. output = 'nodetest:spearstone',
  82. recipe = {
  83. {'', '', 'group:stone'},
  84. {'', 'default:stick', ''},
  85. {'default:stick', '', ''},
  86. }
  87. })
  88. minetest.register_craft({
  89. type = "cooking",
  90. output = "default:coal_lump",
  91. recipe = "group:tree_horizontal",
  92. })
  93. minetest.register_craft({
  94. output = 'nodetest:seedling 4',
  95. recipe = {
  96. {'group:sapling'},
  97. }
  98. })
  99. minetest.register_craft({
  100. output = "nodetest:bonfire",
  101. recipe = {
  102. {"", "group:leaves", ""},
  103. {"group:stick", "group:stick", "group:stick"},
  104. }
  105. })
  106. --
  107. -- Fuels
  108. --
  109. minetest.register_craft({
  110. type = "fuel",
  111. recipe = "group:tree_horizontal",
  112. burntime = 30,
  113. })
  114. minetest.register_craft({
  115. type = "fuel",
  116. recipe = "nodetest:seedling",
  117. burntime = 1,
  118. })
  119. minetest.register_craft({
  120. type = "fuel",
  121. recipe = "nodetest:bonfire",
  122. burntime = 15,
  123. })