From bb734ea820284977b7a13a062a2ad5d580a1c5c6 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 18 Feb 2017 02:40:07 +0100 Subject: [PATCH] Enable sand temples again! :-) --- mods/MAPGEN/mcl_mapgen_core/depends.txt | 2 ++ mods/MAPGEN/mcl_mapgen_core/init.lua | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mods/MAPGEN/mcl_mapgen_core/depends.txt b/mods/MAPGEN/mcl_mapgen_core/depends.txt index 315237e07..3851200f9 100644 --- a/mods/MAPGEN/mcl_mapgen_core/depends.txt +++ b/mods/MAPGEN/mcl_mapgen_core/depends.txt @@ -1 +1,3 @@ mcl_core +stairs +random_struct diff --git a/mods/MAPGEN/mcl_mapgen_core/init.lua b/mods/MAPGEN/mcl_mapgen_core/init.lua index 6e1abe46b..0006fbc59 100644 --- a/mods/MAPGEN/mcl_mapgen_core/init.lua +++ b/mods/MAPGEN/mcl_mapgen_core/init.lua @@ -407,8 +407,8 @@ minetest.register_on_generated(function(minp, maxp, seed) local p = {x=x,y=1,z=z} if minetest.get_node(p).name == "mcl_core:sand" then if math.random(0,1000) == 1 then -- 0,12000 - -- TODO: Re-enable random_struct - --random_struct.call_struct(p,2) + -- Spawn sand temple + random_struct.call_struct(p,2) end end @@ -451,7 +451,9 @@ minetest.register_on_generated(function(minp, maxp, seed) nn = minetest.get_node({x=x,y=ground_y,z=z}).name if nn == "mcl_core:dirt_with_grass" then if math.random(0,12000) == 1 then + -- Spawn town -- TODO: Re-enable random_struct + -- Towns often float around in air which doesn't look nice --random_struct.call_struct(p,1) end end