made leaves drop saplings at a lower rate (was 1/20, now 1/100)
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Thu, 31 Jan 2013 02:51:18 +0000 (21:51 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Thu, 31 Jan 2013 02:51:18 +0000 (21:51 -0500)
biome_defs.lua
node_defs.lua

index 5b1c1a6e1316325f80eb43bdbb06b3e42b6d1185..155101b8a8745e3e62fe35a1ae72de824679fc30 100644 (file)
@@ -1,25 +1,3 @@
---[[
-
--- Example biome definition:
-
-moretrees.mytree_biome = {
-       surface = "default:dirt_with_grass",    -- must grow on these nodes only
-       avoid_nodes = {"default:tree"},         -- avoid spawning near these
-       avoid_radius = 5,                       -- Keep this much room around the above avoid items
-       rarity = 50,                            -- tree rarity:  math.random(1,100) > this    (higher = more rare)
-       seed_diff = 12345,                      -- perlin seed-diff for "generally able to grow plants here" control
-       neighbors = "default:dirt_with_grass",  -- this node must be adjacent to the node being spawned on
-       ncount = 8,                             -- and there must be this many of them
-       depth = 1,                              -- spawning surface must be no deeper than this
-       min_elevation = -5,                     -- minimum elevation to spawn on
-       max_elevation = 10,                     -- maximum elevation
-       near_nodes = {"default:water_source"},  -- trees will only spawn near these nodes
-       near_nodes_size = 10,                   -- within this radius of at least one of them
-       near_nodes_count = 20,                  -- there must ne this many of those nodes in the area
-       temp_min = 0.5,                         -- minimum allowable temperature (highest temperature map perlin value)
-       temp_max = 0.1,                         -- maximum allowable temperature (lowest perlin value)
-}
-]]--
 
 moretrees.beech_biome = {
        surface = "default:dirt_with_grass",
index cc7699a2ef53719ebe29f5c6903dc1859f9a7750..11761d11c865141a6faf1f5ac8f0ac748865f956 100644 (file)
@@ -105,8 +105,8 @@ for i in ipairs(trees) do
                })
        end
 
-       -- player will get sapling with 1/20 chance
-       -- player will get leaves only if he get no saplings,
+       -- player will get a sapling with 1/100 chance
+       -- player will get leaves only if he/she gets no saplings,
        -- this is because max_items is 1
 
        if treename ~= "jungletree" then
@@ -118,14 +118,10 @@ for i in ipairs(trees) do
                        groups = {tree=1, snappy=3, flammable=2 },
                        sounds = default.node_sound_leaves_defaults(),
 
-                       -- player will get sapling with 1/20 chance
-                       -- player will get leaves only if he/she gets no
-                       -- saplings, because max_items is 1.
-
                        drop = {
                                max_items = 1,
                                items = {
-                                       {items = {"moretrees:"..treename.."_sapling"}, rarity = 20      },
+                                       {items = {"moretrees:"..treename.."_sapling"}, rarity = 100 },
                                        {items = {"moretrees:"..treename.."_leaves"} }
                                }
                        },
@@ -151,7 +147,7 @@ for color = 1, 3 do
                drop = {
                        max_items = 1,
                        items = {
-                               {items = {'moretrees:jungletree_sapling'}, rarity = 20 },
+                               {items = {'moretrees:jungletree_sapling'}, rarity = 100 },
                                {items = {"moretrees:jungletree_leaves_"..jungleleaves[color]} }
                        }
                },
@@ -171,7 +167,7 @@ minetest.register_node("moretrees:fir_leaves_bright", {
        drop = {
                max_items = 1,
                items = {
-                       {items = {'moretrees:fir_sapling'}, rarity = 20 },
+                       {items = {'moretrees:fir_sapling'}, rarity = 100 },
                        {items = {'moretrees:fir_leaves'} }
                }
        },