ores.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. -- Baked Clay (mesa biome is between 1 and 71)
  2. local add_stratum = function(y_min, y_max, node)
  3. minetest.register_ore({
  4. ore_type = "stratum",
  5. ore = node,
  6. wherein = {"bakedclay:orange"},
  7. clust_scarcity = 1,
  8. y_max = y_max,
  9. y_min = y_min,
  10. biomes = {"mesa"}
  11. })
  12. end
  13. add_stratum(5, 10, "bakedclay:red")
  14. add_stratum(15, 20, "bakedclay:grey")
  15. add_stratum(25, 30, "bakedclay:red")
  16. add_stratum(35, 40, "bakedclay:grey")
  17. add_stratum(45, 50, "bakedclay:red")
  18. add_stratum(55, 60, "bakedclay:grey")
  19. local add_ore = function(a, b, c, d, e, f, g)
  20. minetest.register_ore({
  21. ore_type = "scatter",
  22. ore = a,
  23. wherein = b,
  24. clust_scarcity = c,
  25. clust_num_ores = d,
  26. clust_size = e,
  27. y_min = f,
  28. y_max = g
  29. })
  30. end
  31. -- Coal
  32. add_ore("default:stone_with_coal", "default:desert_stone", 24*24*24, 27, 6, -31000, -16)
  33. -- Iron
  34. add_ore("default:stone_with_iron", "default:desert_stone", 9*9*9, 5, 3, -63, -16)
  35. add_ore("default:stone_with_iron", "default:desert_stone", 24*24*24, 27, 6, -31000, -64)
  36. --Mese
  37. add_ore("default:stone_with_mese", "default:desert_stone", 14*14*14, 5, 3, -31000, -256)
  38. -- Gold
  39. add_ore("default:stone_with_gold", "default:desert_stone", 15*15*15, 3, 2, -255, -64)
  40. add_ore("default:stone_with_gold", "default:desert_stone", 13*13*13, 5, 3, -31000, -256)
  41. -- Diamond
  42. add_ore("default:stone_with_diamond", "default:desert_stone", 17*17*17, 4, 3, -255, -128)
  43. add_ore("default:stone_with_diamond", "default:desert_stone", 15*15*15, 4, 3, -31000, -256)
  44. -- Copper
  45. add_ore("default:stone_with_copper", "default:desert_stone", 9*9*9, 5, 3, -31000, -64)
  46. -- Coral Sand
  47. add_ore("ethereal:sandy", "default:sand", 10*10*10, 24, 4, -100, -10)
  48. -- Etherium
  49. minetest.register_ore({
  50. ore_type = "scatter",
  51. ore = "ethereal:etherium_ore",
  52. wherein = "default:desert_stone",
  53. clust_scarcity = 10 * 10 * 10,
  54. clust_num_ores = 1,
  55. clust_size = 1,
  56. y_min = 5,
  57. y_max = 40,
  58. biomes = {"caves"}
  59. })
  60. -- Etherium in floatlands
  61. minetest.register_ore({
  62. ore_type = "scatter",
  63. ore = "ethereal:stone_with_etherium_ore",
  64. wherein = "default:stone",
  65. clust_scarcity = 9 * 9 * 9,
  66. clust_num_ores = 6,
  67. clust_size = 2,
  68. y_min = 1025,
  69. y_max = 31000
  70. })