Enable sand temples again! :-)

Wuzzy 2017-02-18 02:40:07 +01:00
parent e62f8187bd
commit bb734ea820
2 changed files with 6 additions and 2 deletions

@ -1 +1,3 @@
mcl_core mcl_core
stairs
random_struct

@ -407,8 +407,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
local p = {x=x,y=1,z=z} local p = {x=x,y=1,z=z}
if minetest.get_node(p).name == "mcl_core:sand" then if minetest.get_node(p).name == "mcl_core:sand" then
if math.random(0,1000) == 1 then -- 0,12000 if math.random(0,1000) == 1 then -- 0,12000
-- TODO: Re-enable random_struct -- Spawn sand temple
--random_struct.call_struct(p,2) random_struct.call_struct(p,2)
end end
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 nn = minetest.get_node({x=x,y=ground_y,z=z}).name
if nn == "mcl_core:dirt_with_grass" then if nn == "mcl_core:dirt_with_grass" then
if math.random(0,12000) == 1 then if math.random(0,12000) == 1 then
-- Spawn town
-- TODO: Re-enable random_struct -- TODO: Re-enable random_struct
-- Towns often float around in air which doesn't look nice
--random_struct.call_struct(p,1) --random_struct.call_struct(p,1)
end end
end end