From 798b56768de2630775984f346ccd877865fa60dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Brada?= Date: Thu, 23 Apr 2015 14:35:05 +0200 Subject: [PATCH] Add sandstone to sand beaches. Add skarn and peg to default:stone. --- rocks/pegmatite.lua | 2 +- rocks/sed.lua | 4 ++++ rocks/skarn.lua | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/rocks/pegmatite.lua b/rocks/pegmatite.lua index 5e79a06..cb8ac2e 100644 --- a/rocks/pegmatite.lua +++ b/rocks/pegmatite.lua @@ -15,7 +15,7 @@ minetest.register_node( "rocks:pegmatite", { -- pegmatites are only 1 kind rocks.register_vein("rocks:pegmatite",{ - wherein={ "rocks:granite" }, + wherein={ "rocks:granite", "default:stone" }, miny=-160, maxy=20, radius={ average=18, amplitude=0.3, frequency=16 }, density=80, rarity=CommonRarity, diff --git a/rocks/sed.lua b/rocks/sed.lua index 71c0a57..55f78d1 100644 --- a/rocks/sed.lua +++ b/rocks/sed.lua @@ -105,6 +105,10 @@ do elseif def.humidity_point>70 then def.node_filler="rocks:laterite" def.depth_top=0 + elseif def.node_top=="default:sand" then + if def.depth_top<2 then def.depth_top=3 end + def.node_filler="default:sandstone" + def.depth_filler=5 end elseif btype=="ocean" then def.node_stone="rocks:basalt" diff --git a/rocks/skarn.lua b/rocks/skarn.lua index e0081ac..dfe7ed3 100644 --- a/rocks/skarn.lua +++ b/rocks/skarn.lua @@ -4,7 +4,7 @@ local CommonRarity=40 --too high... should be like 76 local CommonRadius=10 -local CommonWherein={ "rocks:granite", "rocks:limestone" } +local CommonWherein={ "rocks:granite", "rocks:limestone", "default:stone" } minetest.register_node( "rocks:skarn", { description = S("Skarn"),