ores.lua 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. local ore_min = stoneworld.REALM_START
  2. local ore_max = stoneworld.REALM_END
  3. oregen.register_ore({
  4. ore_type = "scatter",
  5. ore = "stoneworld:meat_rock",
  6. wherein = {"darkage:basaltic_rubble"},
  7. clust_scarcity = 18*18*18,
  8. clust_num_ores = 3,
  9. clust_size = 3,
  10. y_min = ore_min,
  11. y_max = ore_max,
  12. })
  13. oregen.register_ore({
  14. ore_type = "scatter",
  15. ore = "bones:bones_type2",
  16. wherein = {"darkage:basaltic_rubble"},
  17. clust_scarcity = 16*16*16,
  18. clust_num_ores = 5,
  19. clust_size = 2,
  20. y_min = ore_min,
  21. y_max = ore_max,
  22. })
  23. oregen.register_ore({
  24. ore_type = "scatter",
  25. ore = "stoneworld:meat_stone",
  26. wherein = {"darkage:basaltic"},
  27. clust_scarcity = 8*8*8,
  28. clust_num_ores = 8,
  29. clust_size = 3,
  30. y_min = ore_min,
  31. y_max = ore_max,
  32. })
  33. oregen.register_ore({
  34. ore_type = "scatter",
  35. ore = "default:lava_source",
  36. wherein = {"darkage:basaltic"},
  37. clust_scarcity = 24*24*24,
  38. clust_num_ores = 1,
  39. clust_size = 20,
  40. y_min = ore_min,
  41. y_max = ore_max,
  42. noise_threshold = -0.5,
  43. })
  44. oregen.register_ore({
  45. ore_type = "scatter",
  46. ore = "glowstone:cobble",
  47. wherein = {"darkage:basaltic"},
  48. clust_scarcity = 16*16*16,
  49. clust_num_ores = 3,
  50. clust_size = 10,
  51. y_min = ore_min,
  52. y_max = ore_max,
  53. })
  54. oregen.register_ore({
  55. ore_type = "standard_blob",
  56. ore = "rackstone:bluerack",
  57. wherein = {"darkage:basaltic"},
  58. clust_scarcity = 34*34*34,
  59. clust_size = 3,
  60. y_min = ore_min,
  61. y_max = ore_max,
  62. noise_threshold = -0.4,
  63. noise_params = {
  64. offset = 0.5,
  65. scale = 0.2,
  66. spread = {x=3, y=3, z=3},
  67. octaves = 1,
  68. persist = 0.0
  69. },
  70. })
  71. oregen.register_ore({
  72. ore_type = "blob",
  73. ore = "darkage:unstable_basalt",
  74. wherein = {"darkage:basaltic"},
  75. clust_scarcity = 10 * 10 * 10,
  76. clust_size = 5,
  77. y_min = ore_min,
  78. y_max = ore_max,
  79. noise_threshold = 0.0,
  80. noise_params = {
  81. offset = 0.5,
  82. scale = 0.2,
  83. spread = {x = 5, y = 5, z = 5},
  84. seed = 48719,
  85. octaves = 1,
  86. persist = 0.0
  87. },
  88. })
  89. oregen.register_ore({
  90. ore_type = "blob",
  91. ore = "darkage:unstable_basalt",
  92. wherein = {"darkage:basaltic"},
  93. clust_scarcity = 10 * 10 * 10,
  94. clust_size = 5,
  95. y_min = ore_min,
  96. y_max = ore_max,
  97. noise_threshold = 0.0,
  98. noise_params = {
  99. offset = 0.5,
  100. scale = 0.2,
  101. spread = {x = 5, y = 5, z = 5},
  102. seed = 5103,
  103. octaves = 1,
  104. persist = 0.0
  105. },
  106. })
  107. oregen.register_ore({
  108. ore_type = "scatter",
  109. ore = "stoneworld:basalt_with_gold",
  110. wherein = {"darkage:basaltic", "darkage:basaltic_rubble"},
  111. clust_scarcity = 13*13*13,
  112. clust_num_ores = 5,
  113. clust_size = 3,
  114. y_min = ore_min,
  115. y_max = ore_max,
  116. })
  117. oregen.register_ore({
  118. ore_type = "scatter",
  119. ore = "stoneworld:basalt_with_diamond",
  120. wherein = {"darkage:basaltic", "darkage:basaltic_rubble"},
  121. clust_scarcity = 15 * 15 * 15,
  122. clust_num_ores = 4,
  123. clust_size = 3,
  124. y_min = ore_min,
  125. y_max = ore_max,
  126. })
  127. oregen.register_ore({
  128. ore_type = "scatter",
  129. ore = "stoneworld:basalt_with_mese",
  130. wherein = {"darkage:basaltic", "darkage:basaltic_rubble"},
  131. clust_scarcity = 14*14*14,
  132. clust_num_ores = 5,
  133. clust_size = 3,
  134. y_min = ore_min,
  135. y_max = ore_max,
  136. })
  137. oregen.register_ore({
  138. ore_type = "scatter",
  139. ore = "stoneworld:basalt_with_iron",
  140. wherein = {"darkage:basaltic", "darkage:basaltic_rubble"},
  141. clust_scarcity = 24*24*24,
  142. clust_num_ores = 27,
  143. clust_size = 6,
  144. y_min = ore_min,
  145. y_max = ore_max,
  146. })
  147. oregen.register_ore({
  148. ore_type = "scatter",
  149. ore = "stoneworld:basalt_with_coal",
  150. wherein = {"darkage:basaltic", "darkage:basaltic_rubble"},
  151. clust_scarcity = 24*24*24,
  152. clust_num_ores = 27,
  153. clust_size = 6,
  154. y_min = ore_min,
  155. y_max = ore_max,
  156. })
  157. oregen.register_ore({
  158. ore_type = "scatter",
  159. ore = "stoneworld:basalt_with_dauth",
  160. wherein = {"darkage:basaltic", "darkage:basaltic_rubble"},
  161. clust_scarcity = 24*24*24,
  162. clust_num_ores = 27,
  163. clust_size = 6,
  164. y_min = ore_min,
  165. y_max = ore_max,
  166. })
  167. oregen.register_ore({
  168. ore_type = "scatter",
  169. ore = "stoneworld:basalt_with_copper",
  170. wherein = {"darkage:basaltic", "darkage:basaltic_rubble"},
  171. clust_scarcity = 7 * 7 * 7,
  172. clust_num_ores = 5,
  173. clust_size = 3,
  174. y_min = ore_min,
  175. y_max = ore_max,
  176. })
  177. oregen.register_ore({
  178. ore_type = "scatter",
  179. ore = "stoneworld:basalt_with_tin",
  180. wherein = {"darkage:basaltic", "darkage:basaltic_rubble"},
  181. clust_scarcity = 7 * 7 * 7,
  182. clust_num_ores = 5,
  183. clust_size = 3,
  184. y_min = ore_min,
  185. y_max = ore_max,
  186. })
  187. oregen.register_ore({
  188. ore_type = "standard_blob",
  189. ore = "rackstone:blackrack",
  190. wherein = {"darkage:basaltic"},
  191. clust_scarcity = 20*20*20,
  192. clust_size = 4,
  193. y_min = ore_min,
  194. y_max = ore_max,
  195. noise_threshold = -1.0,
  196. noise_params = {
  197. offset = 0.5,
  198. scale = 0.2,
  199. spread = {x=5, y=5, z=5},
  200. octaves = 1,
  201. persist = 0.0
  202. },
  203. })
  204. -- The point of this is to try to avoid generating large mese blobs intersecting
  205. -- with the cavern floor/ceiling, where they are too easily discovered.
  206. for k = 1, 5 do
  207. local nbeg = stoneworld.REALM_START
  208. local y_level = nbeg + (k * 500)
  209. local y_offset = 250
  210. local y_min = y_level + y_offset - 150
  211. local y_max = y_level + y_offset + 150
  212. minetest.register_ore({
  213. ore_type = "blob",
  214. ore = "default:mese",
  215. wherein = {"darkage:basaltic"},
  216. clust_scarcity = 64*64*64,
  217. clust_size = 5,
  218. y_min = y_min,
  219. y_max = y_max,
  220. noise_params = {
  221. seed = 182819,
  222. offset = 0.5,
  223. scale = 0.2,
  224. spread = {x=10, y=5, z=10},
  225. octaves = 1,
  226. persist = 0.0
  227. },
  228. })
  229. local spread = {x=4, y=2, z=4}
  230. local scarcity = 20*20*20
  231. local size = 5
  232. oregen.register_ore({
  233. ore_type = "blob",
  234. ore = "morerocks:marble",
  235. wherein = {"darkage:basaltic"},
  236. clust_scarcity = scarcity,
  237. clust_size = size,
  238. y_min = y_min,
  239. y_max = y_max,
  240. noise_threshold = 0.0,
  241. noise_params = {
  242. offset = 0.5,
  243. scale = 0.2,
  244. spread = spread,
  245. seed = 98246,
  246. octaves = 1,
  247. persist = 0.0
  248. },
  249. })
  250. oregen.register_ore({
  251. ore_type = "blob",
  252. ore = "morerocks:marble_pink",
  253. wherein = {"darkage:basaltic"},
  254. clust_scarcity = scarcity,
  255. clust_size = size,
  256. y_min = y_min,
  257. y_max = y_max,
  258. noise_threshold = 0.0,
  259. noise_params = {
  260. offset = 0.5,
  261. scale = 0.2,
  262. spread = spread,
  263. seed = 91573,
  264. octaves = 1,
  265. persist = 0.0
  266. },
  267. })
  268. oregen.register_ore({
  269. ore_type = "blob",
  270. ore = "morerocks:marble_white",
  271. wherein = {"darkage:basaltic"},
  272. clust_scarcity = scarcity,
  273. clust_size = size,
  274. y_min = y_min,
  275. y_max = y_max,
  276. noise_threshold = 0.0,
  277. noise_params = {
  278. offset = 0.5,
  279. scale = 0.2,
  280. spread = spread,
  281. seed = 3248248,
  282. octaves = 1,
  283. persist = 0.0
  284. },
  285. })
  286. oregen.register_ore({
  287. ore_type = "blob",
  288. ore = "morerocks:granite",
  289. wherein = {"darkage:basaltic"},
  290. clust_scarcity = scarcity,
  291. clust_size = size,
  292. y_min = y_min,
  293. y_max = y_max,
  294. noise_threshold = 0.0,
  295. noise_params = {
  296. offset = 0.5,
  297. scale = 0.2,
  298. spread = spread,
  299. seed = 18614,
  300. octaves = 1,
  301. persist = 0.0
  302. },
  303. })
  304. oregen.register_ore({
  305. ore_type = "blob",
  306. ore = "morerocks:serpentine",
  307. wherein = {"darkage:basaltic"},
  308. clust_scarcity = scarcity,
  309. clust_size = size,
  310. y_min = y_min,
  311. y_max = y_max,
  312. noise_threshold = 0.0,
  313. noise_params = {
  314. offset = 0.5,
  315. scale = 0.2,
  316. spread = spread,
  317. seed = 71256,
  318. octaves = 1,
  319. persist = 0.0
  320. },
  321. })
  322. end