diff --git a/geologica.lua b/geologica.lua index d627623..2a14e52 100644 --- a/geologica.lua +++ b/geologica.lua @@ -72,7 +72,7 @@ minetest.register_node( "rocks:mudstone", { groups = {cracky=CcSoft, stone=1}, is_ground_content = true, sounds = default.node_sound_stone_defaults(), }) -rocks.register_layer( "mudstone",{ gain=10, height=-13, limit=2, seed=4 }, "rocks:mudstone") +rocks.register_layer( "mudstone",{ gain=10, height=-13, limit=2, seed=4 }, "air") -- Slate MM/barro med Under mud/clay/siltstone minetest.register_node( "rocks:slate", { diff --git a/geologica_nv.lua b/geologica_nv.lua index f037b00..6d456f5 100644 --- a/geologica_nv.lua +++ b/geologica_nv.lua @@ -8,6 +8,15 @@ local CcSoft=3 -- -- Claystone Sed soft in mudstone +rocks.register_vein("clay",{ + spread = {x=10, y=10, z=10}, + treshold=0.75, + seed = 9, + hmin=-8, hmax=nil, + layers={ "mudstone" }, +}) +rocks.register_ore( "clay", "default:clay", {treshold=0, chance=0.8 } ) + -- Breccia Mixture soft in mudstone -- Conglomerate Sed soft in mudstone -- Skarn MM/contact med in mudstone in mountains diff --git a/init.lua b/init.lua index 1e7938e..4090d35 100644 --- a/init.lua +++ b/init.lua @@ -21,6 +21,7 @@ rocks.noiseparams_layers = { dofile(modpath.."/mapgen.lua") dofile(modpath.."/geologica.lua") +dofile(modpath.."/geologica_nv.lua") print("[rocks] loaded.") diff --git a/mapgen.lua b/mapgen.lua index 5131ac5..314e2d0 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -53,6 +53,7 @@ minetest.register_on_generated(function(minp, maxp, seed) local availlayers=mknoises(rocks.layers,minp,maxp,seed) local perlin_index = 1 -- + print("[rocks] afterinit "..os.clock()-timebefore) for x=minp.x,maxp.x,1 do for z=minp.z,maxp.z,1 do --* initialize layers hmap