ores.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. local has_technic_mod = minetest.get_modpath("technic")
  2. local clust_scarcity = 64 * 64 * 64
  3. local clust_num_ores = 6
  4. local clust_size = 4
  5. minetest.register_ore({
  6. ore_type = "scatter",
  7. ore = "default:stone_with_copper",
  8. wherein = "default:stone",
  9. clust_scarcity = clust_scarcity,
  10. clust_num_ores = clust_num_ores,
  11. clust_size = clust_size,
  12. y_max = planet_moon.maxy - 100,
  13. y_min = planet_moon.miny,
  14. })
  15. if has_technic_mod then
  16. minetest.register_ore({
  17. ore_type = "scatter",
  18. ore = "technic:mineral_uranium",
  19. wherein = "default:stone",
  20. clust_scarcity = clust_scarcity,
  21. clust_num_ores = clust_num_ores,
  22. clust_size = clust_size,
  23. y_max = planet_moon.maxy - 100,
  24. y_min = planet_moon.miny,
  25. })
  26. minetest.register_ore({
  27. ore_type = "scatter",
  28. ore = "technic:mineral_chromium",
  29. wherein = "default:stone",
  30. clust_scarcity = clust_scarcity,
  31. clust_num_ores = clust_num_ores,
  32. clust_size = clust_size,
  33. y_max = planet_moon.maxy - 100,
  34. y_min = planet_moon.miny,
  35. })
  36. minetest.register_ore({
  37. ore_type = "scatter",
  38. ore = "technic:mineral_zinc",
  39. wherein = "default:stone",
  40. clust_scarcity = clust_scarcity,
  41. clust_num_ores = clust_num_ores,
  42. clust_size = clust_size,
  43. y_max = planet_moon.maxy - 100,
  44. y_min = planet_moon.miny,
  45. })
  46. minetest.register_ore({
  47. ore_type = "scatter",
  48. ore = "technic:mineral_lead",
  49. wherein = "default:stone",
  50. clust_scarcity = clust_scarcity,
  51. clust_num_ores = clust_num_ores,
  52. clust_size = clust_size,
  53. y_max = planet_moon.maxy - 100,
  54. y_min = planet_moon.miny,
  55. })
  56. minetest.register_ore({
  57. ore_type = "scatter",
  58. ore = "technic:mineral_sulfur",
  59. wherein = "default:stone",
  60. clust_scarcity = clust_scarcity,
  61. clust_num_ores = clust_num_ores,
  62. clust_size = clust_size,
  63. y_max = planet_moon.maxy - 100,
  64. y_min = planet_moon.miny,
  65. })
  66. end
  67. minetest.register_ore({
  68. ore_type = "scatter",
  69. ore = "planet_moon:radioactive_stone",
  70. wherein = "default:stone",
  71. clust_scarcity = 8 * 8 * 8,
  72. clust_num_ores = 9,
  73. clust_size = 3,
  74. y_max = planet_moon.maxy,
  75. y_min = planet_moon.miny,
  76. })