add clay blobs to silver/desert beach sand, add check for old healing tree placement

This commit is contained in:
tenplus1 2024-11-23 16:06:10 +00:00
parent 25a8c1aae8
commit c5ffc34f47
2 changed files with 28 additions and 3 deletions

View File

@ -96,3 +96,24 @@ minetest.register_ore({
y_min = 1025, y_min = 1025,
y_max = 31000 y_max = 31000
}) })
-- Clay in silver and desert sand beaches
minetest.register_ore({
ore_type = "blob",
ore = "default:clay",
wherein = {"default:silver_sand", "default:desert_sand"},
clust_scarcity = 16 * 16 * 16,
clust_size = 5,
y_max = 0,
y_min = -15,
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
}
})

View File

@ -46,6 +46,10 @@ local function register_decoration(enabled, def)
minetest.register_decoration(def) minetest.register_decoration(def)
end end
-- old biome setting (when enabled old heat/humidity values are used)
local old = minetest.settings:get_bool("ethereal.old_biomes")
-- igloo -- igloo
register_decoration(ethereal.glacier, { register_decoration(ethereal.glacier, {
@ -96,10 +100,10 @@ register_decoration(ethereal.grove, {
register_decoration(1, { register_decoration(1, {
place_on = {"default:snow", "default:snowblock"}, place_on = {"default:snow", "default:snowblock"},
fill_ratio = 0.01, y_min = 150, y_max = 160, fill_ratio = 0.01, y_min = old and 120 or 150, y_max = old and 140 or 160,
biomes = {"mountain", "glacier"}, biomes = old and {"taiga"} or {"mountain", "glacier"},
schematic = ethereal.yellowtree, schematic = ethereal.yellowtree,
spawn_by = "default:snow", num_spawn_by = 8, spawn_by = old and "default:dirt_with_snow" or "default:snow", num_spawn_by = 8,
flags = "place_center_x, place_center_z, force_placement"}) flags = "place_center_x, place_center_z, force_placement"})
-- crystal frost tree -- crystal frost tree