From 5fda5165581e12f2d6f0375b2e43dedb4d8b02e7 Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Sat, 21 Sep 2013 16:54:23 +0200 Subject: [PATCH] Spawn trees/dry shrub in savanna based altitude --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 95cbee4..bf2feb3 100644 --- a/init.lua +++ b/init.lua @@ -295,9 +295,9 @@ minetest.register_on_generated(function(minp, maxp, seed) top = c_dry_grass top_layer = c_dirt second_layer = c_stone - if pr:next(1, 300) == 1 and y>0 then + if pr:next(1, 250) == 1 and y>12 then above_top = c_savannasapling - elseif pr:next(1, 50) == 1 then + elseif (pr:next(1, 25) == 1 and y>12) or (pr:next(1, 50) == 1 and y<12) then --if pr:next(1, 80) > 100*(humidity+0.4) then above_top = c_dry_shrub --else