forked from VoxeLibre/VoxeLibre
Generate stone below sea level in Mesa-like biomes
This commit is contained in:
parent
5d70d05dab
commit
7dcc39be72
|
@ -1276,11 +1276,39 @@ local function register_biomelike_ores()
|
||||||
biomes = { "ExtremeHillsM" },
|
biomes = { "ExtremeHillsM" },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
-- Small hack to make sure stone appears at ca. sea level in Mesa biomes
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "sheet",
|
||||||
|
ore = "mcl_core:stone",
|
||||||
|
noise_threshold = -100,
|
||||||
|
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=seed, octaves=1, persist=1.00},
|
||||||
|
biomes = {
|
||||||
|
"Mesa", "Mesa_sandlevel", "Mesa_ocean", "Mesa_deep_ocean", "Mesa_underground",
|
||||||
|
"MesaPlateauF", "MesaPlateauF_sandlevel", "MesaPlateauF_ocean", "MesaPlateauF_deep_ocean", "MesaPlateauF_underground",
|
||||||
|
},
|
||||||
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
||||||
|
column_height_min = 32,
|
||||||
|
column_height_max = 32,
|
||||||
|
y_min = -32,
|
||||||
|
y_max = 0,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Mesa strata (registered as sheet ores)
|
-- Mesa strata (registered as sheet ores)
|
||||||
|
|
||||||
-- Helper function
|
-- Helper function to create strata.
|
||||||
-- Colors to use: silver (light grey), brown, orange, red, yellow, white
|
-- Available Mesa colors: silver (light grey), brown, orange, red, yellow, white
|
||||||
local stratum = function(y_min, height, color, seed)
|
local stratum = function(y_min, height, color, seed)
|
||||||
|
|
||||||
|
local ore = "mcl_colorblocks:hardened_clay_"..color
|
||||||
|
local noise_threshold = -1
|
||||||
|
local noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=seed, octaves=3, persist=0.70}
|
||||||
|
local biomes = {
|
||||||
|
"Mesa", "Mesa_sandlevel", "Mesa_ocean", "Mesa_deep_ocean", "Mesa_underground",
|
||||||
|
}
|
||||||
|
|
||||||
if not height then
|
if not height then
|
||||||
height = 1
|
height = 1
|
||||||
end
|
end
|
||||||
|
@ -1290,18 +1318,20 @@ local function register_biomelike_ores()
|
||||||
local y_max = y_min + height-1
|
local y_max = y_min + height-1
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "sheet",
|
ore_type = "sheet",
|
||||||
ore = "mcl_colorblocks:hardened_clay_"..color,
|
ore = ore,
|
||||||
wherein = {"mcl_colorblocks:hardened_clay"},
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
||||||
column_height_min = height,
|
column_height_min = height,
|
||||||
column_height_max = height,
|
column_height_max = height,
|
||||||
y_min = y_min,
|
y_min = y_min,
|
||||||
y_max = y_max,
|
y_max = y_max,
|
||||||
noise_threshold = -1.0,
|
noise_threshold = noise_threshold,
|
||||||
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=seed, octaves=3, persist=0.70},
|
noise_params = noise_param,
|
||||||
biomes = { "Mesa", "MesaPlateauF" },
|
biomes = biomes,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
stratum(11, 3, "orange")
|
stratum(11, 3, "orange")
|
||||||
|
|
||||||
-- Create strata for up to Y = 256
|
-- Create strata for up to Y = 256
|
||||||
|
|
Loading…
Reference in New Issue