use stratum ore to generate mesa biome

This commit is contained in:
tenplus1 2021-06-14 17:46:09 +01:00
parent 236c83beb8
commit e0b16dd2f1
3 changed files with 26 additions and 42 deletions

View File

@ -23,6 +23,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6)
- Certain fish can only be found in specific biomes - Certain fish can only be found in specific biomes
- Rename textures so they begin with ethereal_ (sorry texture pack folks) - Rename textures so they begin with ethereal_ (sorry texture pack folks)
- Override mushroom spread abm to use "group:mushroom" - Override mushroom spread abm to use "group:mushroom"
- Use "stratum" to generate mesa biome for stripey goodness
### 1.27 ### 1.27

View File

@ -11,7 +11,7 @@
-- DO NOT change settings below, use the settings.conf file instead -- DO NOT change settings below, use the settings.conf file instead
ethereal = { ethereal = {
version = "20210406", version = "20210614",
leaftype = minetest.settings:get('ethereal.leaftype') or 0, leaftype = minetest.settings:get('ethereal.leaftype') or 0,
leafwalk = minetest.settings:get_bool('ethereal.leafwalk', false), leafwalk = minetest.settings:get_bool('ethereal.leafwalk', false),
cavedirt = minetest.settings:get_bool('ethereal.cavedirt', true), cavedirt = minetest.settings:get_bool('ethereal.cavedirt', true),

View File

@ -1,43 +1,26 @@
-- Baked Clay -- Baked Clay (mesa biome is between 1 and 71)
minetest.register_ore({ local add_stratum = function(y_min, y_max, node)
ore_type = "blob",
ore = "bakedclay:red", minetest.register_ore({
wherein = {"bakedclay:orange"}, ore_type = "stratum",
clust_scarcity = 4 * 4 * 4, ore = node,
clust_num_ores = 8, wherein = {"bakedclay:orange"},
clust_size = 6, clust_scarcity = 1,
y_min = -10, y_max = y_max,
y_max = 71, y_min = y_min,
noise_params = { biomes = {"mesa"}
offset = 0.35, })
scale = 0.2, end
spread = {x = 5, y = 5, z = 5},
seed = -316, add_stratum(5, 10, "bakedclay:red")
octaves = 1, add_stratum(15, 20, "bakedclay:grey")
persist = 0.5 add_stratum(25, 30, "bakedclay:red")
}, add_stratum(35, 40, "bakedclay:grey")
}) add_stratum(45, 50, "bakedclay:red")
add_stratum(55, 60, "bakedclay:grey")
minetest.register_ore({
ore_type = "blob",
ore = "bakedclay:grey",
wherein = {"bakedclay:orange"},
clust_scarcity = 4 * 4 * 4,
clust_num_ores = 8,
clust_size = 6,
y_min = -10,
y_max = 71,
noise_params = {
offset = 0.35,
scale = 0.2,
spread = {x = 5, y = 5, z = 5},
seed = -613,
octaves = 1,
persist = 0.5
},
})
local add_ore = function(a, b, c, d, e, f, g) local add_ore = function(a, b, c, d, e, f, g)
@ -49,7 +32,7 @@ local add_ore = function(a, b, c, d, e, f, g)
clust_num_ores = d, clust_num_ores = d,
clust_size = e, clust_size = e,
y_min = f, y_min = f,
y_max = g, y_max = g
}) })
end end
@ -83,12 +66,12 @@ minetest.register_ore({
ore_type = "scatter", ore_type = "scatter",
ore = "ethereal:etherium_ore", ore = "ethereal:etherium_ore",
wherein = "default:desert_stone", wherein = "default:desert_stone",
clust_scarcity = 10*10*10, clust_scarcity = 10 * 10 * 10,
clust_num_ores = 1, clust_num_ores = 1,
clust_size = 1, clust_size = 1,
y_min = 5, y_min = 5,
y_max = 40, y_max = 40,
biomes = {"caves"}, biomes = {"caves"}
}) })
-- Etherium in floatlands -- Etherium in floatlands
@ -96,7 +79,7 @@ minetest.register_ore({
ore_type = "scatter", ore_type = "scatter",
ore = "ethereal:stone_with_etherium_ore", ore = "ethereal:stone_with_etherium_ore",
wherein = "default:stone", wherein = "default:stone",
clust_scarcity = 9*9*9, clust_scarcity = 9 * 9 * 9,
clust_num_ores = 6, clust_num_ores = 6,
clust_size = 2, clust_size = 2,
y_min = 1025, y_min = 1025,