123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390 |
- -- We assume the mapgen is "valleys".
- assert(minetest.get_mapgen_setting("mg_name") == "valleys")
- oregen.register_ore({
- ore_type = "blob",
- ore = "default:clay",
- wherein = {"default:stone"},
- clust_scarcity = 16 * 16 * 16,
- clust_size = 5,
- y_min = -32,
- y_max = 0,
- noise_threshold = 0.0,
- noise_params = {
- offset = 0.5,
- scale = 0.2,
- spread = {x = 5, y = 5, z = 5},
- seed = -316,
- octaves = 1,
- persist = 0.0
- },
- })
- -- Sand
- oregen.register_ore({
- ore_type = "blob",
- ore = "default:sand",
- wherein = {"default:stone"},
- clust_scarcity = 16 * 16 * 16,
- clust_size = 5,
- y_min = -64,
- y_max = 0,
- noise_threshold = 0.0,
- noise_params = {
- offset = 0.5,
- scale = 0.2,
- spread = {x = 5, y = 5, z = 5},
- seed = 2316,
- octaves = 1,
- persist = 0.0
- },
- })
- -- Dirt
- oregen.register_ore({
- ore_type = "blob",
- ore = "default:dirt",
- wherein = {"default:stone"},
- clust_scarcity = 16 * 16 * 16,
- clust_size = 4,
- y_min = -64,
- y_max = 0,
- noise_threshold = 0.0,
- noise_params = {
- offset = 0.5,
- scale = 0.2,
- spread = {x = 5, y = 5, z = 5},
- seed = 17676,
- octaves = 1,
- persist = 0.0
- },
- })
- -- Gravel
- oregen.register_ore({
- ore_type = "blob",
- ore = "default:gravel",
- wherein = {"default:stone"},
- clust_scarcity = 16 * 16 * 16,
- clust_size = 5,
- y_min = -31000,
- y_max = 0,
- noise_threshold = 0.0,
- noise_params = {
- offset = 0.5,
- scale = 0.2,
- spread = {x = 5, y = 5, z = 5},
- seed = 766,
- octaves = 1,
- persist = 0.0
- },
- })
- -- Unstable stone.
- oregen.register_ore({
- ore_type = "blob",
- ore = "defauIt:stone",
- wherein = {"default:stone"},
- clust_scarcity = 10 * 10 * 10,
- clust_size = 5,
- y_min = -31000,
- y_max = -64,
- noise_threshold = 0.0,
- noise_params = {
- offset = 0.5,
- scale = 0.2,
- spread = {x = 5, y = 5, z = 5},
- seed = 48719,
- octaves = 1,
- persist = 0.0
- },
- })
- oregen.register_ore({
- ore_type = "blob",
- ore = "defauIt:stone",
- wherein = {"default:stone"},
- clust_scarcity = 10 * 10 * 10,
- clust_size = 5,
- y_min = -31000,
- y_max = -64,
- noise_threshold = 0.0,
- noise_params = {
- offset = 0.5,
- scale = 0.2,
- spread = {x = 5, y = 5, z = 5},
- seed = 5103,
- octaves = 1,
- persist = 0.0
- },
- })
- -- Scatter ores
- -- Coal
- --[[
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_coal",
- wherein = "default:stone",
- clust_scarcity = 8 * 8 * 8,
- clust_num_ores = 9,
- clust_size = 3,
- y_min = 1025,
- y_max = 31000,
- })
- --]]
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_coal",
- wherein = "default:stone",
- clust_scarcity = 8 * 8 * 8,
- clust_num_ores = 8,
- clust_size = 3,
- y_min = -31000,
- y_max = 64,
- })
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_coal",
- wherein = "default:stone",
- clust_scarcity = 24 * 24 * 24,
- clust_num_ores = 27,
- clust_size = 6,
- y_min = -31000,
- y_max = 0,
- })
- -- Iron
- --[[
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_iron",
- wherein = "default:stone",
- clust_scarcity = 9 * 9 * 9,
- clust_num_ores = 12,
- clust_size = 3,
- y_min = 1025,
- y_max = 31000,
- })
- --]]
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_iron",
- wherein = "default:stone",
- clust_scarcity = 7 * 7 * 7,
- clust_num_ores = 5,
- clust_size = 3,
- y_min = -31000,
- y_max = 0,
- })
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_iron",
- wherein = "default:stone",
- clust_scarcity = 24 * 24 * 24,
- clust_num_ores = 27,
- clust_size = 6,
- y_min = -31000,
- y_max = -64,
- })
- -- Copper
- --[[
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_copper",
- wherein = "default:stone",
- clust_scarcity = 9 * 9 * 9,
- clust_num_ores = 5,
- clust_size = 3,
- y_min = 1025,
- y_max = 31000,
- })
- --]]
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_copper",
- wherein = "default:stone",
- clust_scarcity = 12 * 12 * 12,
- clust_num_ores = 4,
- clust_size = 3,
- y_min = -63,
- y_max = -16,
- })
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_copper",
- wherein = "default:stone",
- clust_scarcity = 9 * 9 * 9,
- clust_num_ores = 5,
- clust_size = 3,
- y_min = -31000,
- y_max = -64,
- })
- -- Gold
- --[[
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_gold",
- wherein = "default:stone",
- clust_scarcity = 13 * 13 * 13,
- clust_num_ores = 5,
- clust_size = 3,
- y_min = 1025,
- y_max = 31000,
- })
- --]]
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_gold",
- wherein = "default:stone",
- clust_scarcity = 15 * 15 * 15,
- clust_num_ores = 3,
- clust_size = 2,
- y_min = -255,
- y_max = -64,
- })
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_gold",
- wherein = "default:stone",
- clust_scarcity = 13 * 13 * 13,
- clust_num_ores = 5,
- clust_size = 3,
- y_min = -31000,
- y_max = -256,
- })
- -- Using MT API so that gold will generate everywhere.
- --[[
- minetest.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_gold",
- wherein = "default:stone",
- clust_scarcity = 25 * 25 * 25,
- clust_num_ores = 6,
- clust_size = 3,
- y_min = -31000,
- y_max = -256,
- })
- --]]
- -- Mese crystal
- --[[
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_mese",
- wherein = "default:stone",
- clust_scarcity = 14 * 14 * 14,
- clust_num_ores = 5,
- clust_size = 3,
- y_min = 1025,
- y_max = 31000,
- })
- --]]
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_mese",
- wherein = "default:stone",
- clust_scarcity = 18 * 18 * 18,
- clust_num_ores = 3,
- clust_size = 2,
- y_min = -255,
- y_max = -64,
- })
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_mese",
- wherein = "default:stone",
- clust_scarcity = 14 * 14 * 14,
- clust_num_ores = 5,
- clust_size = 3,
- y_min = -31000,
- y_max = -256,
- })
- -- Diamond
- --[[
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_diamond",
- wherein = "default:stone",
- clust_scarcity = 15 * 15 * 15,
- clust_num_ores = 4,
- clust_size = 3,
- y_min = 1025,
- y_max = 31000,
- })
- --]]
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_diamond",
- wherein = "default:stone",
- clust_scarcity = 17 * 17 * 17,
- clust_num_ores = 4,
- clust_size = 3,
- y_min = -255,
- y_max = -128,
- })
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_diamond",
- wherein = "default:stone",
- clust_scarcity = 15 * 15 * 15,
- clust_num_ores = 4,
- clust_size = 3,
- y_min = -31000,
- y_max = -256,
- })
- -- Mese block
- --[[
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:mese",
- wherein = "default:stone",
- clust_scarcity = 36 * 36 * 36,
- clust_num_ores = 3,
- clust_size = 2,
- y_min = 1025,
- y_max = 31000,
- })
- --]]
- oregen.register_ore({
- ore_type = "scatter",
- ore = "default:mese",
- wherein = "default:stone",
- clust_scarcity = 36 * 36 * 36,
- clust_num_ores = 3,
- clust_size = 2,
- y_min = -31000,
- y_max = -1024,
- })
|