Updated API to allow for height controls.

This commit is contained in:
Vanessa Ezekowitz 2012-12-17 16:01:16 -05:00
parent 7006416227
commit f9df1b5965
4 changed files with 2 additions and 13 deletions

View File

@ -1,4 +1,4 @@
-- This module supplies flowers for the plantlife modpack
-- This file supplies flowers for the plantlife modpack
local spawn_delay = 2000 -- 2000
local spawn_chance = 100 -- 100
@ -136,4 +136,3 @@ minetest.register_craft({
}
})
enabled_flowers = true

View File

@ -76,4 +76,3 @@ for i in ipairs(grasses_list) do
grow_plants(grow_delay, grow_chance/2, grasses_list[i][1], grasses_list[i][2], "default:desert_sand", {"default:dirt_with_grass", "default:sand", "default:desert_sand"})
end
enabled_junglegrass = true

View File

@ -177,13 +177,5 @@ find_first_node = function(pos, height_limit, nodelist)
return nil
end
print("[Plantlife] Loaded!")
local enstr = ""
if enabled_flowers then enstr = enstr.." flowers" end
if enabled_junglegrass then enstr = enstr.." junglegrass" end
if enabled_poisonivy then enstr = enstr.." poisonivy" end
if enstr == "" then enstr = "...er...nothing!" end
print("[Plantlife] Loaded (enabled"..enstr..")")

View File

@ -68,4 +68,3 @@ grow_plants(spawn_delay, grow_chance, "poisonivy:seedling", "poisonivy:sproutl
grow_plants(spawn_delay, grow_chance*2, "poisonivy:climbing", nil, nil, nil ,nil,true,true,nil,{"default:dirt_with_grass"})
enabled_poisonivy = true