materials.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. local forge = ...
  2. -- these numbers represent the proportions of the node, not the minetest-style chances
  3. forge.register_ore("default:desert_cobble", 400, {
  4. steel = 1,
  5. copper = 3,
  6. tin = 2,
  7. slag = 40,
  8. })
  9. forge.register_ore("default:cobble", 400, {
  10. steel = 3,
  11. copper = 1,
  12. tin = 1,
  13. slag = 40,
  14. })
  15. forge.register_ore("default:mossycobble", 400, {
  16. steel = 3,
  17. copper = 1,
  18. tin = 1,
  19. slag = 40,
  20. })
  21. forge.register_ore("default:dirt", 550, {
  22. steel = 10,
  23. gold = 1,
  24. slag = 1000,
  25. })
  26. forge.register_ore("default:dirt_with_grass", 550, {
  27. steel = 10,
  28. gold = 1,
  29. slag = 1000,
  30. })
  31. forge.register_ore("default:gravel", 380, {
  32. steel = 2,
  33. gold = 1,
  34. slag = 100,
  35. })
  36. forge.register_ore("default:desert_sand", 350, {
  37. glass = 10,
  38. slag = 1,
  39. })
  40. forge.register_ore("default:sand", 350, {
  41. glass = 20,
  42. slag = 1,
  43. })
  44. forge.register_ore("default:sandstone", 370, {
  45. glass = 10,
  46. slag = 1,
  47. tin = 1,
  48. })
  49. forge.register_ore("geology:hematite", 370, {
  50. slag = 4,
  51. steel = 1,
  52. })
  53. -- remelting
  54. forge.register_ore("default:steelblock", 200, {steel = 1})
  55. forge.register_ore("default:copperblock", 200, {copper = 1})
  56. forge.register_ore("default:goldblock", 200, {gold = 1})
  57. forge.register_ore("default:bronzeblock", 200, {bronze = 1})
  58. forge.register_ore("default:tin_block", 100, {tin = 1})
  59. forge.register_ore("moreores:silver_block", 200, {silver = 1})
  60. forge.register_ore("technic:chromium_block", 200, {chromium = 1})
  61. forge.register_ore("technic:zinc_block", 200, {zinc = 1})
  62. forge.register_ore("technic:lead_block", 60, {lead = 1})
  63. forge.register_ore("technic:stainless_steel_block", 200, {stainless_steel = 1})
  64. forge.register_ore("technic:carbon_steel_block", 200, {steel = 1})
  65. forge.register_ore("technic:cast_iron_block", 200, {steel = 1})
  66. forge.register_ore("technic:brass_block", 200, {brass = 1})
  67. forge.register_ore("default:glass", 200, {glass = 1})
  68. forge.register_metal({
  69. name="steel",
  70. Name="Steel",
  71. cools="default:steelblock",
  72. ingot="default:steel_ingot",
  73. ingot_color="#eee:255",
  74. density=10,
  75. })
  76. forge.register_metal({
  77. name="copper",
  78. Name="Copper",
  79. cools="default:copperblock",
  80. ingot="default:copper_ingot",
  81. ingot_color="#a60:255",
  82. density=8,
  83. })
  84. forge.register_metal({
  85. name="bronze",
  86. Name="Bronze",
  87. cools="default:bronzeblock",
  88. ingot="default:bronze_ingot",
  89. ingot_color="#840:255",
  90. density=9,
  91. })
  92. forge.register_metal({
  93. name="gold",
  94. Name="Gold",
  95. cools="default:goldblock",
  96. ingot="default:gold_ingot",
  97. ingot_color="#fe0:255",
  98. density=20,
  99. })
  100. forge.register_metal({
  101. name="silver",
  102. Name="Silver",
  103. cools="moreores:silver_block",
  104. ingot="moreores:silver_ingot",
  105. ingot_color="#ccf:255",
  106. density=16,
  107. })
  108. forge.register_metal({
  109. name="zinc",
  110. Name="Zinc",
  111. cools="technic:zinc_block",
  112. ingot="technic:zinc_ingot",
  113. ingot_color="#ccf:255",
  114. density=4,
  115. })
  116. forge.register_metal({
  117. name="tin",
  118. Name="Tin",
  119. cools="default:tinblock",
  120. ingot="default:tin_ingot",
  121. ingot_color="#ddd:255",
  122. density=4,
  123. })
  124. forge.register_metal({
  125. name="chromium",
  126. Name="Chromium",
  127. cools="technic:chromium_block",
  128. ingot="technic:chromium_ingot",
  129. ingot_color="#eee:255",
  130. density=12,
  131. })
  132. forge.register_metal({
  133. name="lead",
  134. Name="Lead",
  135. cools="technic:lead_block",
  136. ingot="technic:lead_ingot",
  137. ingot_color="#555:255",
  138. density=19,
  139. })
  140. forge.register_metal({
  141. name="carbon_steel",
  142. Name="Carbon Steel",
  143. cools="technic:carbon_steel_block",
  144. ingot="technic:carbon_steel_ingot",
  145. ingot_color="#555:255",
  146. density=10,
  147. })
  148. forge.register_metal({
  149. name="stainless_steel",
  150. Name="Stainless Steel",
  151. cools="technic:stainless_steel_block",
  152. ingot="technic:stainless_steel_ingot",
  153. ingot_color="#eef:255",
  154. density=10,
  155. })
  156. forge.register_metal({
  157. name="cast_iron",
  158. Name="Cast Iron",
  159. cools="technic:cast_iron_block",
  160. ingot="technic:cast_iron_ingot",
  161. ingot_color="#666:255",
  162. density=10,
  163. })
  164. forge.register_metal({
  165. name="brass",
  166. Name="Brass",
  167. cools="technic:brass_block",
  168. ingot="technic:brass_ingot",
  169. ingot_color="#cf0:255",
  170. density=7,
  171. })
  172. forge.register_metal({
  173. name="glass",
  174. Name="Glass",
  175. cools="default:glass",
  176. ingot="vessels:glass_fragments",
  177. ingot_color="#fff:255",
  178. density=3,
  179. })