mirror of
git://repo.or.cz/rocks.git
synced 2024-11-18 00:08:35 +01:00
59 lines
1.8 KiB
Lua
59 lines
1.8 KiB
Lua
--
|
|
-- Sedimentary Layer
|
|
--
|
|
|
|
local sed={
|
|
name="sed",
|
|
top={
|
|
offset = 20, scale = 0,
|
|
spread = {x=80, y=80, z=80},
|
|
octaves = 0, persist = 0 },
|
|
bot={
|
|
offset = -16, scale = 10, seed=rocksl.GetNextSeed(),
|
|
spread = {x=80, y=80, z=80},
|
|
octaves = 2, persist = 0.7 },
|
|
primary={ name="rocks:mudstone" },
|
|
localized={},
|
|
stats={ count=0, total=0, node={}, totalnodes=0 },
|
|
debugging=nil
|
|
}
|
|
|
|
rocks.layer_initialize(sed)
|
|
|
|
-- Mudstone Sed soft Ocean, beach, river, glaciers
|
|
minetest.register_node( "rocks:mudstone", {
|
|
description = S("Mudstone"),
|
|
tiles = { "rocks_Mudstone.png" },
|
|
groups = {cracky=1, crumbly=3},
|
|
is_ground_content = true, sounds = default.node_sound_dirt_defaults(),
|
|
})
|
|
|
|
-- 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(),
|
|
groups = {cracky=2},
|
|
})
|
|
|
|
|
|
local reg=function(name,param)
|
|
rocksl.register_stratus(sed,name,param)
|
|
end
|
|
|
|
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
|
|
reg("rocks:limestone", { spread=64, height=32, treshold=0.35 })
|
|
--reg("rocks:breccia", { spread=64, height=32, treshold=0.6 })
|
|
--reg("rocks:conglomerate", { spread=64, height=32, treshold=0.6 })
|
|
reg("default:stone_with_coal", { spread=48, height=14, treshold=0.50 })
|
|
reg("default:clay",{ spread=48, height=14, treshold=0.50 })
|
|
|
|
-- ~ Tomas Brod |