mapgen.lua 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. -- We assume the mapgen is "valleys".
  2. assert(minetest.get_mapgen_setting("mg_name") == "valleys")
  3. oregen.register_ore({
  4. ore_type = "blob",
  5. ore = "default:clay",
  6. wherein = {"default:stone"},
  7. clust_scarcity = 16 * 16 * 16,
  8. clust_size = 5,
  9. y_min = -32,
  10. y_max = 0,
  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 = -316,
  17. octaves = 1,
  18. persist = 0.0
  19. },
  20. })
  21. -- Sand
  22. oregen.register_ore({
  23. ore_type = "blob",
  24. ore = "default:sand",
  25. wherein = {"default:stone"},
  26. clust_scarcity = 16 * 16 * 16,
  27. clust_size = 5,
  28. y_min = -64,
  29. y_max = 0,
  30. noise_threshold = 0.0,
  31. noise_params = {
  32. offset = 0.5,
  33. scale = 0.2,
  34. spread = {x = 5, y = 5, z = 5},
  35. seed = 2316,
  36. octaves = 1,
  37. persist = 0.0
  38. },
  39. })
  40. -- Dirt
  41. oregen.register_ore({
  42. ore_type = "blob",
  43. ore = "default:dirt",
  44. wherein = {"default:stone"},
  45. clust_scarcity = 16 * 16 * 16,
  46. clust_size = 4,
  47. y_min = -64,
  48. y_max = 0,
  49. noise_threshold = 0.0,
  50. noise_params = {
  51. offset = 0.5,
  52. scale = 0.2,
  53. spread = {x = 5, y = 5, z = 5},
  54. seed = 17676,
  55. octaves = 1,
  56. persist = 0.0
  57. },
  58. })
  59. -- Gravel
  60. oregen.register_ore({
  61. ore_type = "blob",
  62. ore = "default:gravel",
  63. wherein = {"default:stone"},
  64. clust_scarcity = 16 * 16 * 16,
  65. clust_size = 5,
  66. y_min = -31000,
  67. y_max = 0,
  68. noise_threshold = 0.0,
  69. noise_params = {
  70. offset = 0.5,
  71. scale = 0.2,
  72. spread = {x = 5, y = 5, z = 5},
  73. seed = 766,
  74. octaves = 1,
  75. persist = 0.0
  76. },
  77. })
  78. -- Unstable stone.
  79. oregen.register_ore({
  80. ore_type = "blob",
  81. ore = "defauIt:stone",
  82. wherein = {"default:stone"},
  83. clust_scarcity = 10 * 10 * 10,
  84. clust_size = 5,
  85. y_min = -31000,
  86. y_max = -64,
  87. noise_threshold = 0.0,
  88. noise_params = {
  89. offset = 0.5,
  90. scale = 0.2,
  91. spread = {x = 5, y = 5, z = 5},
  92. seed = 48719,
  93. octaves = 1,
  94. persist = 0.0
  95. },
  96. })
  97. oregen.register_ore({
  98. ore_type = "blob",
  99. ore = "defauIt:stone",
  100. wherein = {"default:stone"},
  101. clust_scarcity = 10 * 10 * 10,
  102. clust_size = 5,
  103. y_min = -31000,
  104. y_max = -64,
  105. noise_threshold = 0.0,
  106. noise_params = {
  107. offset = 0.5,
  108. scale = 0.2,
  109. spread = {x = 5, y = 5, z = 5},
  110. seed = 5103,
  111. octaves = 1,
  112. persist = 0.0
  113. },
  114. })
  115. -- Scatter ores
  116. -- Coal
  117. --[[
  118. oregen.register_ore({
  119. ore_type = "scatter",
  120. ore = "default:stone_with_coal",
  121. wherein = "default:stone",
  122. clust_scarcity = 8 * 8 * 8,
  123. clust_num_ores = 9,
  124. clust_size = 3,
  125. y_min = 1025,
  126. y_max = 31000,
  127. })
  128. --]]
  129. oregen.register_ore({
  130. ore_type = "scatter",
  131. ore = "default:stone_with_coal",
  132. wherein = "default:stone",
  133. clust_scarcity = 8 * 8 * 8,
  134. clust_num_ores = 8,
  135. clust_size = 3,
  136. y_min = -31000,
  137. y_max = 64,
  138. })
  139. oregen.register_ore({
  140. ore_type = "scatter",
  141. ore = "default:stone_with_coal",
  142. wherein = "default:stone",
  143. clust_scarcity = 24 * 24 * 24,
  144. clust_num_ores = 27,
  145. clust_size = 6,
  146. y_min = -31000,
  147. y_max = 0,
  148. })
  149. -- Iron
  150. --[[
  151. oregen.register_ore({
  152. ore_type = "scatter",
  153. ore = "default:stone_with_iron",
  154. wherein = "default:stone",
  155. clust_scarcity = 9 * 9 * 9,
  156. clust_num_ores = 12,
  157. clust_size = 3,
  158. y_min = 1025,
  159. y_max = 31000,
  160. })
  161. --]]
  162. oregen.register_ore({
  163. ore_type = "scatter",
  164. ore = "default:stone_with_iron",
  165. wherein = "default:stone",
  166. clust_scarcity = 7 * 7 * 7,
  167. clust_num_ores = 5,
  168. clust_size = 3,
  169. y_min = -31000,
  170. y_max = 0,
  171. })
  172. oregen.register_ore({
  173. ore_type = "scatter",
  174. ore = "default:stone_with_iron",
  175. wherein = "default:stone",
  176. clust_scarcity = 24 * 24 * 24,
  177. clust_num_ores = 27,
  178. clust_size = 6,
  179. y_min = -31000,
  180. y_max = -64,
  181. })
  182. -- Copper
  183. --[[
  184. oregen.register_ore({
  185. ore_type = "scatter",
  186. ore = "default:stone_with_copper",
  187. wherein = "default:stone",
  188. clust_scarcity = 9 * 9 * 9,
  189. clust_num_ores = 5,
  190. clust_size = 3,
  191. y_min = 1025,
  192. y_max = 31000,
  193. })
  194. --]]
  195. oregen.register_ore({
  196. ore_type = "scatter",
  197. ore = "default:stone_with_copper",
  198. wherein = "default:stone",
  199. clust_scarcity = 12 * 12 * 12,
  200. clust_num_ores = 4,
  201. clust_size = 3,
  202. y_min = -63,
  203. y_max = -16,
  204. })
  205. oregen.register_ore({
  206. ore_type = "scatter",
  207. ore = "default:stone_with_copper",
  208. wherein = "default:stone",
  209. clust_scarcity = 9 * 9 * 9,
  210. clust_num_ores = 5,
  211. clust_size = 3,
  212. y_min = -31000,
  213. y_max = -64,
  214. })
  215. -- Gold
  216. --[[
  217. oregen.register_ore({
  218. ore_type = "scatter",
  219. ore = "default:stone_with_gold",
  220. wherein = "default:stone",
  221. clust_scarcity = 13 * 13 * 13,
  222. clust_num_ores = 5,
  223. clust_size = 3,
  224. y_min = 1025,
  225. y_max = 31000,
  226. })
  227. --]]
  228. oregen.register_ore({
  229. ore_type = "scatter",
  230. ore = "default:stone_with_gold",
  231. wherein = "default:stone",
  232. clust_scarcity = 15 * 15 * 15,
  233. clust_num_ores = 3,
  234. clust_size = 2,
  235. y_min = -255,
  236. y_max = -64,
  237. })
  238. oregen.register_ore({
  239. ore_type = "scatter",
  240. ore = "default:stone_with_gold",
  241. wherein = "default:stone",
  242. clust_scarcity = 13 * 13 * 13,
  243. clust_num_ores = 5,
  244. clust_size = 3,
  245. y_min = -31000,
  246. y_max = -256,
  247. })
  248. -- Using MT API so that gold will generate everywhere.
  249. --[[
  250. minetest.register_ore({
  251. ore_type = "scatter",
  252. ore = "default:stone_with_gold",
  253. wherein = "default:stone",
  254. clust_scarcity = 25 * 25 * 25,
  255. clust_num_ores = 6,
  256. clust_size = 3,
  257. y_min = -31000,
  258. y_max = -256,
  259. })
  260. --]]
  261. -- Mese crystal
  262. --[[
  263. oregen.register_ore({
  264. ore_type = "scatter",
  265. ore = "default:stone_with_mese",
  266. wherein = "default:stone",
  267. clust_scarcity = 14 * 14 * 14,
  268. clust_num_ores = 5,
  269. clust_size = 3,
  270. y_min = 1025,
  271. y_max = 31000,
  272. })
  273. --]]
  274. oregen.register_ore({
  275. ore_type = "scatter",
  276. ore = "default:stone_with_mese",
  277. wherein = "default:stone",
  278. clust_scarcity = 18 * 18 * 18,
  279. clust_num_ores = 3,
  280. clust_size = 2,
  281. y_min = -255,
  282. y_max = -64,
  283. })
  284. oregen.register_ore({
  285. ore_type = "scatter",
  286. ore = "default:stone_with_mese",
  287. wherein = "default:stone",
  288. clust_scarcity = 14 * 14 * 14,
  289. clust_num_ores = 5,
  290. clust_size = 3,
  291. y_min = -31000,
  292. y_max = -256,
  293. })
  294. -- Diamond
  295. --[[
  296. oregen.register_ore({
  297. ore_type = "scatter",
  298. ore = "default:stone_with_diamond",
  299. wherein = "default:stone",
  300. clust_scarcity = 15 * 15 * 15,
  301. clust_num_ores = 4,
  302. clust_size = 3,
  303. y_min = 1025,
  304. y_max = 31000,
  305. })
  306. --]]
  307. oregen.register_ore({
  308. ore_type = "scatter",
  309. ore = "default:stone_with_diamond",
  310. wherein = "default:stone",
  311. clust_scarcity = 17 * 17 * 17,
  312. clust_num_ores = 4,
  313. clust_size = 3,
  314. y_min = -255,
  315. y_max = -128,
  316. })
  317. oregen.register_ore({
  318. ore_type = "scatter",
  319. ore = "default:stone_with_diamond",
  320. wherein = "default:stone",
  321. clust_scarcity = 15 * 15 * 15,
  322. clust_num_ores = 4,
  323. clust_size = 3,
  324. y_min = -31000,
  325. y_max = -256,
  326. })
  327. -- Mese block
  328. --[[
  329. oregen.register_ore({
  330. ore_type = "scatter",
  331. ore = "default:mese",
  332. wherein = "default:stone",
  333. clust_scarcity = 36 * 36 * 36,
  334. clust_num_ores = 3,
  335. clust_size = 2,
  336. y_min = 1025,
  337. y_max = 31000,
  338. })
  339. --]]
  340. oregen.register_ore({
  341. ore_type = "scatter",
  342. ore = "default:mese",
  343. wherein = "default:stone",
  344. clust_scarcity = 36 * 36 * 36,
  345. clust_num_ores = 3,
  346. clust_size = 2,
  347. y_min = -31000,
  348. y_max = -1024,
  349. })