1
0
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:
Tomáš Brada 2015-04-23 14:20:45 +02:00
parent 23cef526da
commit 776695b720
2 changed files with 10 additions and 7 deletions

View File

@ -37,7 +37,7 @@ minetest.register_node( "rocks:gabbro", {
local reg=function(name,param) local reg=function(name,param)
minetest.register_ore({ minetest.register_ore({
ore = name, ore = name,
wherein= { "mapgen_stone", "default:stone", "rocks:basalt" }, wherein= param.inr,
ore_type = "scatter", ore_type = "scatter",
clust_scarcity = 10^3, clust_scarcity = 10^3,
clust_num_ores = 20^3, clust_num_ores = 20^3,
@ -54,10 +54,10 @@ local reg=function(name,param)
end end
rocks.register_igneous_stratus=reg rocks.register_igneous_stratus=reg
-- rock registration -- continental (granite): diorite and gabbro
reg("rocks:granite", { spread=40, height=32, treshold=0.08}) -- oceanic (basalt): gabbro
reg("rocks:diorite", { spread=40, height=32, treshold=0.24}) reg( "rocks:gabbro", {spread=60, height=40, treshold=0.34, inr={"rocks:granite","rocks:basalt"} })
reg("rocks:gabbro", { spread=40, height=32, treshold=0.36}) reg( "rocks:diorite", {spread=60, height=40, treshold=0.24, inr={"rocks:granite"} })
-- vein stuff -- vein stuff

View File

@ -90,22 +90,25 @@ do
if btype=="lowland" then if btype=="lowland" then
def.node_filler="rocks:mudstone" def.node_filler="rocks:mudstone"
def.depth_filler=11 def.depth_filler=11
def.node_stone="rocks:granite"
elseif btype=="highland" then elseif btype=="highland" then
def.node_filler="rocks:limestone" def.node_filler="rocks:limestone"
def.node_stone="rocks:limestone" def.node_stone="rocks:limestone"
def.depth_filler=15 def.depth_filler=15
elseif btype=="beach" then elseif btype=="beach" then
def.node_stone="rocks:granite"
def.y_min=beach_min
if def.heat_point<50 then if def.heat_point<50 then
def.node_top="default:gravel" def.node_top="default:gravel"
def.node_filler="default:gravel" def.node_filler="default:gravel"
def.depth_filler=2 def.depth_filler=2
def.y_min=beach_min
elseif def.humidity_point>70 then elseif def.humidity_point>70 then
def.node_filler="rocks:laterite" def.node_filler="rocks:laterite"
def.depth_top=0 def.depth_top=0
end end
elseif btype=="ocean" then
def.node_stone="rocks:basalt"
end 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 do -- deactivate the added and removed shore-thing of MGv7
-- to fix weirid sand layers underground -- to fix weirid sand layers underground
def.node_shore_top=def.node_top def.node_shore_top=def.node_top