mirror of
git://repo.or.cz/rocks.git
synced 2024-11-16 07:20:40 +01:00
Corrented bedrock generation. Note: under -48 default:stone is not touched.
This commit is contained in:
parent
23cef526da
commit
776695b720
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user