init.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. minetest.register_craftitem("dusts:iron", {
  2. description = "Wrought Iron Shavings",
  3. inventory_image = "grinder_iron_dust.png"
  4. })
  5. minetest.register_craftitem("dusts:copper", {
  6. description = "Copper Shavings",
  7. inventory_image = "grinder_copper_dust.png"
  8. })
  9. minetest.register_craftitem("dusts:gold", {
  10. description = "Gold Dust",
  11. inventory_image = "grinder_gold_dust.png"
  12. })
  13. minetest.register_craftitem("dusts:coal", {
  14. description = "Coal Powder",
  15. inventory_image = "grinder_coal_dust.png"
  16. })
  17. minetest.register_craftitem("dusts:diamond_shard", {
  18. description = "Diamond Shard",
  19. inventory_image = "grinder_diamond_shard.png"
  20. })
  21. minetest.register_craftitem("dusts:diamond", {
  22. description = "Diamond Fragments",
  23. inventory_image = "grinder_diamond_dust.png"
  24. })
  25. minetest.register_craftitem("dusts:tin", {
  26. description = "Tin Shavings",
  27. inventory_image = "grinder_tin_dust.png"
  28. })
  29. minetest.register_craftitem("dusts:silver", {
  30. description = "Silver Dust",
  31. inventory_image = "grinder_silver_dust.png"
  32. })
  33. minetest.register_craftitem("dusts:mithril", {
  34. description = "Mithril Dust",
  35. inventory_image = "grinder_mithril_dust.png"
  36. })
  37. -- Compatibility.
  38. minetest.register_alias("grinder:diamond_shard", "dusts:diamond_shard")
  39. minetest.register_alias("grinder:diamond_dust", "dusts:diamond")
  40. minetest.register_alias("grinder:coal_dust", "dusts:coal")
  41. minetest.register_alias("grinder:gold_dust", "dusts:gold")
  42. minetest.register_alias("grinder:copper_dust", "dusts:copper")
  43. minetest.register_alias("grinder:iron_dust", "dusts:iron")
  44. minetest.register_alias("grinder:tin_dust", "dusts:tin")
  45. minetest.register_alias("grinder:silver_dust", "dusts:silver")
  46. minetest.register_alias("grinder:mithril_dust", "dusts:mithril")
  47. minetest.register_craft({
  48. type = "grinding",
  49. output = 'dusts:iron 2',
  50. recipe = 'default:iron_lump',
  51. time = 8,
  52. })
  53. minetest.register_craft({
  54. type = "grinding",
  55. output = 'dusts:iron',
  56. recipe = 'default:steel_ingot',
  57. time = 8,
  58. })
  59. minetest.register_craft({
  60. type = "grinding",
  61. output = 'dusts:copper 2',
  62. recipe = 'default:copper_lump',
  63. time = 8,
  64. })
  65. minetest.register_craft({
  66. type = "grinding",
  67. output = 'dusts:copper',
  68. recipe = 'default:copper_ingot',
  69. time = 8,
  70. })
  71. minetest.register_craft({
  72. type = "grinding",
  73. output = 'dusts:gold 2',
  74. recipe = 'default:gold_lump',
  75. time = 7,
  76. })
  77. minetest.register_craft({
  78. type = "grinding",
  79. output = 'dusts:gold',
  80. recipe = 'default:gold_ingot',
  81. time = 7,
  82. })
  83. minetest.register_craft({
  84. type = "grinding",
  85. output = 'dusts:coal 2',
  86. recipe = 'default:coal_lump',
  87. time = 7,
  88. })
  89. -- It needs to be possible to obtain coal dust by hand,
  90. -- otherwise whole branches of the tech tree are unreachable
  91. -- due to circular dependencies.
  92. minetest.register_craft({
  93. type = "shapeless",
  94. output = 'dusts:coal 2',
  95. -- Coal dust is obtainable by grinding lumps together in the hands.
  96. recipe = {'default:coal_lump', 'default:coal_lump'},
  97. })
  98. minetest.register_craft({
  99. type = "grinding",
  100. output = 'dusts:diamond 2',
  101. recipe = 'dusts:diamond_shard',
  102. time = 15,
  103. })
  104. minetest.register_craft({
  105. type = "grinding",
  106. output = 'dusts:diamond_shard 3',
  107. recipe = 'default:diamond',
  108. time = 15,
  109. })
  110. minetest.register_craft({
  111. type = "grinding",
  112. output = 'dusts:silver 2',
  113. recipe = 'moreores:silver_lump',
  114. time = 7,
  115. })
  116. minetest.register_craft({
  117. type = "grinding",
  118. output = 'dusts:silver',
  119. recipe = 'moreores:silver_ingot',
  120. time = 7,
  121. })
  122. minetest.register_craft({
  123. type = "grinding",
  124. output = 'dusts:tin 2',
  125. recipe = 'moreores:tin_lump',
  126. time = 8,
  127. })
  128. minetest.register_craft({
  129. type = "grinding",
  130. output = 'dusts:tin',
  131. recipe = 'moreores:tin_ingot',
  132. time = 8,
  133. })
  134. minetest.register_craft({
  135. type = "grinding",
  136. output = 'dusts:mithril 2',
  137. recipe = 'moreores:mithril_lump',
  138. time = 7,
  139. })
  140. minetest.register_craft({
  141. type = "grinding",
  142. output = 'dusts:mithril',
  143. recipe = 'moreores:mithril_ingot',
  144. time = 7,
  145. })
  146. minetest.register_craft({
  147. type = "cooking",
  148. output = "default:steel_ingot",
  149. recipe = "dusts:iron",
  150. })
  151. minetest.register_craft({
  152. type = "cooking",
  153. output = "default:copper_ingot",
  154. recipe = "dusts:copper",
  155. })
  156. minetest.register_craft({
  157. type = "cooking",
  158. output = "default:gold_ingot",
  159. recipe = "dusts:gold",
  160. })
  161. minetest.register_craft({
  162. type = "cooking",
  163. output = "moreores:silver_ingot",
  164. recipe = "dusts:silver",
  165. })
  166. minetest.register_craft({
  167. type = "cooking",
  168. output = "moreores:tin_ingot",
  169. recipe = "dusts:tin",
  170. })
  171. minetest.register_craft({
  172. type = "cooking",
  173. output = "moreores:mithril_ingot",
  174. recipe = "dusts:mithril",
  175. })