From b63c3e627cf71f52b5cb2df84aea691a06e706f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Brada?= Date: Wed, 22 Apr 2015 19:53:43 +0200 Subject: [PATCH] Add gravel to beach on cold biomes. --- rocks/sed.lua | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/rocks/sed.lua b/rocks/sed.lua index 06fac41..3137709 100644 --- a/rocks/sed.lua +++ b/rocks/sed.lua @@ -88,11 +88,17 @@ do def.node_filler="rocks:limestone" def.node_stone="rocks:limestone" def.depth_filler=15 + elseif btype=="beach" then + 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 + end end if (def.node_stone=="default:stone") or (not def.node_stone) then def.node_stone="rocks:basalt" end - -- deactivate the added and removed shore-thing of MGv7 - -- to fix weirid sand layers underground - if btype=="lowland" then -- fixme: does this affect beach/ocean too? + do -- deactivate the added and removed shore-thing of MGv7 + -- to fix weirid sand layers underground def.node_shore_top=def.node_top def.node_shore_filler=def.node_filler def.node_underwater=def.node_filler @@ -157,18 +163,4 @@ rocks.register_sedimentary=reg reg("default:stone_with_coal", { spread=64, height=14, treshold=0.58 }) reg("default:clay",{ spread=48, height=14, treshold=0.55 }) --- Pebbles - - minetest.register_ore({ - ore="default:gravel", - wherein= { "default:sand" }, - ore_type = "scatter", - clust_scarcity = 15^3, - clust_size = 6, - clust_num_ores = 5^3, - y_min = -14, - y_max = 5, - }) - - -- ~ Tomas Brod \ No newline at end of file