mapgen.lua 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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. oregen.register_ore({
  216. ore_type = "scatter",
  217. ore = "default:stone_with_gold",
  218. wherein = "default:stone",
  219. clust_scarcity = 15 * 15 * 15,
  220. clust_num_ores = 3,
  221. clust_size = 2,
  222. y_min = -255,
  223. y_max = -64,
  224. })
  225. oregen.register_ore({
  226. ore_type = "scatter",
  227. ore = "default:stone_with_gold",
  228. wherein = "default:stone",
  229. clust_scarcity = 13 * 13 * 13,
  230. clust_num_ores = 5,
  231. clust_size = 3,
  232. y_min = -31000,
  233. y_max = -256,
  234. })
  235. oregen.register_ore({
  236. ore_type = "scatter",
  237. ore = "default:stone_with_mese",
  238. wherein = "default:stone",
  239. clust_scarcity = 18 * 18 * 18,
  240. clust_num_ores = 3,
  241. clust_size = 2,
  242. y_min = -255,
  243. y_max = -64,
  244. })
  245. oregen.register_ore({
  246. ore_type = "scatter",
  247. ore = "default:stone_with_mese",
  248. wherein = "default:stone",
  249. clust_scarcity = 14 * 14 * 14,
  250. clust_num_ores = 5,
  251. clust_size = 3,
  252. y_min = -31000,
  253. y_max = -256,
  254. })
  255. -- Using MT API so some mese will generate nearly everywhere.
  256. minetest.register_ore({
  257. ore_type = "scatter",
  258. ore = "default:stone_with_mese",
  259. wherein = "default:stone",
  260. clust_scarcity = 20 * 20 * 20,
  261. clust_num_ores = 5,
  262. clust_size = 3,
  263. y_min = -31000,
  264. y_max = -1014,
  265. seed = 65711905,
  266. })
  267. -- Diamond
  268. --[[
  269. oregen.register_ore({
  270. ore_type = "scatter",
  271. ore = "default:stone_with_diamond",
  272. wherein = "default:stone",
  273. clust_scarcity = 15 * 15 * 15,
  274. clust_num_ores = 4,
  275. clust_size = 3,
  276. y_min = 1025,
  277. y_max = 31000,
  278. })
  279. --]]
  280. oregen.register_ore({
  281. ore_type = "scatter",
  282. ore = "default:stone_with_diamond",
  283. wherein = "default:stone",
  284. clust_scarcity = 17 * 17 * 17,
  285. clust_num_ores = 4,
  286. clust_size = 3,
  287. y_min = -255,
  288. y_max = -128,
  289. })
  290. oregen.register_ore({
  291. ore_type = "scatter",
  292. ore = "default:stone_with_diamond",
  293. wherein = "default:stone",
  294. clust_scarcity = 15 * 15 * 15,
  295. clust_num_ores = 4,
  296. clust_size = 3,
  297. y_min = -31000,
  298. y_max = -256,
  299. })
  300. -- Mese block
  301. --[[
  302. oregen.register_ore({
  303. ore_type = "scatter",
  304. ore = "default:mese",
  305. wherein = "default:stone",
  306. clust_scarcity = 36 * 36 * 36,
  307. clust_num_ores = 3,
  308. clust_size = 2,
  309. y_min = 1025,
  310. y_max = 31000,
  311. })
  312. --]]
  313. -- Using MT API so mese blocks spawn nearly everywhere.
  314. minetest.register_ore({
  315. ore_type = "scatter",
  316. ore = "default:mese",
  317. wherein = "default:stone",
  318. clust_scarcity = 36 * 36 * 36,
  319. clust_num_ores = 4,
  320. clust_size = 2,
  321. y_min = -31000,
  322. y_max = -2048,
  323. seed = 681942,
  324. })