2015-04-01 21:46:30 +02:00
|
|
|
--
|
|
|
|
-- Sedimentary Layer
|
|
|
|
--
|
|
|
|
|
|
|
|
-- Mudstone Sed soft Ocean, beach, river, glaciers
|
|
|
|
minetest.register_node( "rocks:mudstone", {
|
|
|
|
description = S("Mudstone"),
|
|
|
|
tiles = { "rocks_Mudstone.png" },
|
2015-04-02 20:17:56 +02:00
|
|
|
groups = {cracky=1, crumbly=3},
|
2015-04-01 21:46:30 +02:00
|
|
|
is_ground_content = true, sounds = default.node_sound_dirt_defaults(),
|
|
|
|
})
|
|
|
|
|
2015-04-17 20:25:17 +02:00
|
|
|
do -- Modify default grassland biome
|
|
|
|
local grassland=minetest.registered_biomes["default:grassland"] or
|
|
|
|
{
|
|
|
|
name = "rocks:grassland",
|
|
|
|
node_top = "default:dirt_with_grass",
|
|
|
|
depth_top = 1,
|
|
|
|
y_min = 5,
|
|
|
|
y_max = 31000,
|
|
|
|
heat_point = 50,
|
|
|
|
humidity_point = 50,
|
|
|
|
}
|
|
|
|
grassland.node_filler="rocks:mudstone"
|
|
|
|
grassland.depth_filler=11
|
|
|
|
minetest.clear_registered_biomes()
|
|
|
|
minetest.register_biome(grassland)
|
|
|
|
end
|
|
|
|
|
|
|
|
-- more biomes
|
|
|
|
|
|
|
|
|
2015-04-01 21:46:30 +02:00
|
|
|
-- more rock defs
|
|
|
|
minetest.register_node( "rocks:limestone", {
|
|
|
|
description = S("Limestone"),
|
|
|
|
tiles = { "rocks_Limestone.png" },
|
|
|
|
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
|
2015-04-02 00:28:16 +02:00
|
|
|
groups = {cracky=2},
|
2015-04-01 21:46:30 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
local reg=function(name,param)
|
2015-04-17 20:25:17 +02:00
|
|
|
minetest.register_ore({
|
|
|
|
ore=name,
|
|
|
|
wherein= {
|
|
|
|
"rocks:mudstone",
|
|
|
|
},
|
|
|
|
ore_type = "scatter",
|
|
|
|
clust_scarcity = 1,
|
|
|
|
clust_size = 3,
|
|
|
|
clust_num_ores = 27,
|
|
|
|
y_min = -20,
|
|
|
|
y_max = 40,
|
|
|
|
noise_threshhold = param.treshold,
|
|
|
|
noise_params = {
|
|
|
|
offset=0, scale=1, octaves=3, persist=0.3,
|
|
|
|
spread={x=param.spread, y=param.height, z=param.spread},
|
|
|
|
seed=rocksl.GetNextSeed(),
|
|
|
|
},
|
|
|
|
})
|
2015-04-01 21:46:30 +02:00
|
|
|
end
|
2015-04-02 20:17:56 +02:00
|
|
|
|
2015-04-01 21:46:30 +02:00
|
|
|
rocks.register_sedimentary=reg
|
|
|
|
|
|
|
|
-- Sedimentary rock hardness and distribution
|
|
|
|
-- Rock Hard Distribution
|
|
|
|
--Breccia Weak Localized continental, folded
|
|
|
|
-->Claystone Weak Localized continental, folded, oceanic
|
|
|
|
--Conglomerate Weak Localized continental, folded
|
|
|
|
-->Limestone Medium Localized continental, folded; primary oceanic, hills
|
|
|
|
-->Coal - Large beds, twice as common in swamps
|
2015-04-17 20:25:17 +02:00
|
|
|
--reg("rocks:limestone", { spread=64, height=32, treshold=0.35 })
|
2015-04-02 00:28:16 +02:00
|
|
|
--reg("rocks:breccia", { spread=64, height=32, treshold=0.6 })
|
|
|
|
--reg("rocks:conglomerate", { spread=64, height=32, treshold=0.6 })
|
2015-04-17 20:25:17 +02:00
|
|
|
reg("default:stone_with_coal", { spread=64, height=14, treshold=0.60 })
|
|
|
|
reg("default:clay",{ spread=48, height=14, treshold=0.56 })
|
2015-04-01 21:46:30 +02:00
|
|
|
|
|
|
|
-- ~ Tomas Brod
|