diff --git a/rocks/ign.lua b/rocks/ign.lua index fbbea4c..c95dda8 100644 --- a/rocks/ign.lua +++ b/rocks/ign.lua @@ -37,7 +37,7 @@ minetest.register_node( "rocks:gabbro", { local reg=function(name,param) minetest.register_ore({ ore = name, - wherein= { "mapgen_stone", "default:stone", "rocks:basalt" }, + wherein= param.inr, ore_type = "scatter", clust_scarcity = 10^3, clust_num_ores = 20^3, @@ -54,10 +54,10 @@ local reg=function(name,param) end rocks.register_igneous_stratus=reg --- rock registration - reg("rocks:granite", { spread=40, height=32, treshold=0.08}) - reg("rocks:diorite", { spread=40, height=32, treshold=0.24}) - reg("rocks:gabbro", { spread=40, height=32, treshold=0.36}) +-- continental (granite): diorite and gabbro +-- oceanic (basalt): gabbro + reg( "rocks:gabbro", {spread=60, height=40, treshold=0.34, inr={"rocks:granite","rocks:basalt"} }) + reg( "rocks:diorite", {spread=60, height=40, treshold=0.24, inr={"rocks:granite"} }) -- vein stuff diff --git a/rocks/sed.lua b/rocks/sed.lua index bfab5a7..71c0a57 100644 --- a/rocks/sed.lua +++ b/rocks/sed.lua @@ -90,22 +90,25 @@ do if btype=="lowland" then def.node_filler="rocks:mudstone" def.depth_filler=11 + def.node_stone="rocks:granite" elseif btype=="highland" then def.node_filler="rocks:limestone" def.node_stone="rocks:limestone" def.depth_filler=15 elseif btype=="beach" then + def.node_stone="rocks:granite" + def.y_min=beach_min if def.heat_point<50 then def.node_top="default:gravel" def.node_filler="default:gravel" def.depth_filler=2 - def.y_min=beach_min elseif def.humidity_point>70 then def.node_filler="rocks:laterite" def.depth_top=0 end + elseif btype=="ocean" then + def.node_stone="rocks:basalt" end - if (def.node_stone=="default:stone") or (not def.node_stone) then def.node_stone="rocks:basalt" end do -- deactivate the added and removed shore-thing of MGv7 -- to fix weirid sand layers underground def.node_shore_top=def.node_top