generation.lua 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ----rocks n stuff--------
  2. local function mg_reg_ore(iore,ymin,ymax,clust)
  3. minetest.register_ore({
  4. ore_type = "blob",
  5. ore = iore,
  6. wherein = {"default:stone"},
  7. clust_scarcity = 25 * 25 * 25,
  8. clust_size = clust,
  9. y_min = ymin,
  10. y_max = ymax,
  11. noise_threshold = 0.0,
  12. noise_params = {
  13. offset = 0.5,
  14. scale = 0.2,
  15. spread = {x = 5, y = 5, z = 5},
  16. seed = 766,
  17. octaves = 1,
  18. persist = 0.0
  19. },
  20. })
  21. end
  22. mg_reg_ore("minerdream:marble_white",-5000,-50,5)
  23. mg_reg_ore("minerdream:marble_pink",-5000,-125,5)
  24. mg_reg_ore("minerdream:marble_red",-5000,-200,5)
  25. mg_reg_ore("minerdream:marble_red",-5000,-300,5)
  26. mg_reg_ore("minerdream:marble_blue",-5000,-425,5)
  27. mg_reg_ore("minerdream:marble_black",-5000,-600,5)
  28. -------desert ores--------
  29. minetest.register_ore({
  30. ore_type = "scatter",
  31. ore = "minerdream:desertstone_with_richiron",
  32. wherein = "default:desert_stone",
  33. clust_scarcity = 10 * 10 * 10,
  34. clust_num_ores = 5,
  35. clust_size = 2,
  36. y_min = -31000,
  37. y_max = 420,
  38. })
  39. minetest.register_ore({
  40. ore_type = "scatter",
  41. ore = "minerdream:desertstone_with_lapislazuli",
  42. wherein = "default:desert_stone",
  43. clust_scarcity = 10 * 10 * 10,
  44. clust_num_ores = 5,
  45. clust_size = 2,
  46. y_min = -31000,
  47. y_max = 420,
  48. })
  49. minetest.register_ore({
  50. ore_type = "scatter",
  51. ore = "minerdream:desertstone_with_coal",
  52. wherein = "default:desert_stone",
  53. clust_scarcity = 12 * 12 * 12,
  54. clust_num_ores = 5,
  55. clust_size = 2,
  56. y_min = -31000,
  57. y_max = 420,
  58. })
  59. minetest.register_ore({
  60. ore_type = "scatter",
  61. ore = "minerdream:desertstone_with_sulfur",
  62. wherein = "default:desert_stone",
  63. clust_scarcity = 15 * 15 * 15,
  64. clust_num_ores = 5,
  65. clust_size = 2,
  66. y_min = -31000,
  67. y_max = 420,
  68. })
  69. minetest.register_ore({
  70. ore_type = "scatter",
  71. ore = "minerdream:desertstone_with_saltpeter",
  72. wherein = "default:desert_stone",
  73. clust_scarcity = 15 * 15 * 15,
  74. clust_num_ores = 5,
  75. clust_size = 2,
  76. y_min = -31000,
  77. y_max = 420,
  78. })
  79. minetest.register_ore({
  80. ore_type = "scatter",
  81. ore = "minerdream:desertstone_with_poorgold",
  82. wherein = "default:desert_stone",
  83. clust_scarcity = 10 * 10 * 10,
  84. clust_num_ores = 1,
  85. clust_size = 1,
  86. y_min = -31000,
  87. y_max = 420,
  88. })