ore_gen.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. minetest.register_ore({
  2. ore_type = "blob",
  3. ore = "bitumen:mapgen_crude_oil", -- this is converted to actual oil by an lbm
  4. wherein = {"default:stone"},
  5. -- wherein = {"air"},
  6. clust_scarcity = 64 * 64 * 64,
  7. -- clust_scarcity = 16 * 16 * 16,
  8. clust_size = 30,
  9. y_min = -32000,
  10. y_max = -1000,
  11. noise_threshold = 0.04,
  12. noise_params = {
  13. offset = 0.5,
  14. scale = 0.7,
  15. spread = {x = 40, y = 40, z = 40},
  16. seed = 2316,
  17. octaves = 4,
  18. persist = 0.7
  19. },
  20. --[[ it's all "underground" anyway
  21. biomes = {
  22. "taiga", "tundra", "snowy_grassland", "coniferous_forest",
  23. "coniferous_forest_dunes",
  24. }
  25. ]]
  26. })
  27. minetest.register_ore({
  28. ore_type = "blob",
  29. ore = "bitumen:tar_sand",
  30. wherein = {"default:desert_stone", "default:sandstone", "default:stone"},
  31. clust_scarcity = 64 * 64 * 64,
  32. clust_size = 20,
  33. y_min = -15,
  34. y_max = 500,
  35. noise_threshold = 0.4,
  36. noise_params = {
  37. offset = 0.5,
  38. scale = 0.7,
  39. spread = {x = 40, y = 40, z = 40},
  40. seed = 2316,
  41. octaves = 4,
  42. persist = 0.7
  43. },
  44. biomes = {
  45. "taiga", "snowy_grassland",
  46. "grassland", "desert", "sandstone_desert", "cold_desert",
  47. }
  48. })
  49. minetest.register_ore({
  50. ore_type = "blob",
  51. ore = "bitumen:oil_shale",
  52. wherein = {"default:sandstone"},
  53. clust_scarcity = 96 * 96 * 96,
  54. clust_size = 30,
  55. y_min = -15,
  56. y_max = 500,
  57. noise_threshold = 0.4,
  58. noise_params = {
  59. offset = 0.5,
  60. scale = 0.7,
  61. spread = {x = 40, y = 40, z = 40},
  62. seed = 23136,
  63. octaves = 4,
  64. persist = 0.7
  65. },
  66. biomes = { "sandstone_desert"},
  67. })
  68. minetest.register_ore({
  69. ore_type = "blob",
  70. ore = "bitumen:chalk",
  71. wherein = {"default:stone", "default:sand"},
  72. clust_scarcity = 48 * 48 * 48,
  73. clust_size = 14,
  74. y_min = 2,
  75. y_max = 30,
  76. noise_threshold = 0.0,
  77. noise_params = {
  78. offset = 0.5,
  79. scale = 0.2,
  80. spread = {x = 10, y = 5, z = 7},
  81. seed = -343,
  82. octaves = 1,
  83. persist = 0.1
  84. },
  85. biomes = {"savanna", "savanna_shore", "savanna_ocean",
  86. "rainforest", "rainforest_swamp", "rainforest_ocean", "underground",
  87. "floatland_coniferous_forest", "floatland_coniferous_forest_ocean"
  88. -- ,"grassland", "desert", "sandstone_desert"
  89. }
  90. })