init.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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 = "anvil",
  100. output = 'dusts:coal 2',
  101. recipe = 'default:coal_lump',
  102. })
  103. minetest.register_craft({
  104. type = "grinding",
  105. output = 'dusts:diamond 2',
  106. recipe = 'dusts:diamond_shard',
  107. time = 15,
  108. })
  109. minetest.register_craft({
  110. type = "grinding",
  111. output = 'dusts:diamond_shard 9',
  112. recipe = 'default:diamond',
  113. time = 15,
  114. })
  115. minetest.register_craft({
  116. type = "anvil",
  117. output = 'dusts:diamond_shard 9',
  118. recipe = 'default:diamond',
  119. })
  120. minetest.register_craft({
  121. type = "grinding",
  122. output = 'dusts:silver 2',
  123. recipe = 'moreores:silver_lump',
  124. time = 7,
  125. })
  126. minetest.register_craft({
  127. type = "grinding",
  128. output = 'dusts:silver',
  129. recipe = 'moreores:silver_ingot',
  130. time = 7,
  131. })
  132. minetest.register_craft({
  133. type = "grinding",
  134. output = 'dusts:tin 2',
  135. recipe = 'moreores:tin_lump',
  136. time = 8,
  137. })
  138. minetest.register_craft({
  139. type = "grinding",
  140. output = 'dusts:tin',
  141. recipe = 'moreores:tin_ingot',
  142. time = 8,
  143. })
  144. minetest.register_craft({
  145. type = "grinding",
  146. output = 'dusts:mithril 2',
  147. recipe = 'moreores:mithril_lump',
  148. time = 7,
  149. })
  150. minetest.register_craft({
  151. type = "grinding",
  152. output = 'dusts:mithril',
  153. recipe = 'moreores:mithril_ingot',
  154. time = 7,
  155. })
  156. minetest.register_craft({
  157. type = "cooking",
  158. output = "default:steel_ingot",
  159. recipe = "dusts:iron",
  160. })
  161. minetest.register_craft({
  162. type = "cooking",
  163. output = "default:copper_ingot",
  164. recipe = "dusts:copper",
  165. })
  166. minetest.register_craft({
  167. type = "cooking",
  168. output = "default:gold_ingot",
  169. recipe = "dusts:gold",
  170. })
  171. minetest.register_craft({
  172. type = "cooking",
  173. output = "moreores:silver_ingot",
  174. recipe = "dusts:silver",
  175. })
  176. minetest.register_craft({
  177. type = "cooking",
  178. output = "moreores:tin_ingot",
  179. recipe = "dusts:tin",
  180. })
  181. minetest.register_craft({
  182. type = "cooking",
  183. output = "moreores:mithril_ingot",
  184. recipe = "dusts:mithril",
  185. })