made all trees require default:dirt_with_grass in all 8 of the nodes that
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Fri, 11 Jan 2013 16:17:10 +0000 (11:17 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Fri, 11 Jan 2013 16:18:40 +0000 (11:18 -0500)
surround the spawn point (to keep them from spawning in a desert->grass
transition area).

init.lua

index 1883e1faa8a22ba96c43198474627b509f173539..16161f8f3f8d0c54fb3308c8fb2c557816cc6a05 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -67,8 +67,8 @@ spawn_on_surfaces(
        jungletree_seed_diff,                   -- duh? :-)
        5,                                                              -- minimum light needed 
        nil,                                                    -- maximim (default, 14)
-       nil,                                                    -- ABM neighbors parameter...
-       nil,                                                    -- don't care what else is around
+       {"default:dirt_with_grass"},    -- must have grass..
+       8,                                                              -- in all 8 of the surrounding nodes
        nil,                                                    -- we don't care about facedir
        nil,                                                    -- or water depth
        -5,                                                             -- must be 5m below sea level or higher
@@ -89,7 +89,7 @@ spawn_on_surfaces(
        nil,
        nil,                                    
        {"default:dirt_with_grass"},
-       3,
+       8,
        nil,
        nil,
        CONIFERS_ALTITUDE,