forked from mtcontrib/plantlife_modpack
Updated API to allow for height controls.
This commit is contained in:
parent
7006416227
commit
f9df1b5965
@ -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_delay = 2000 -- 2000
|
||||||
local spawn_chance = 100 -- 100
|
local spawn_chance = 100 -- 100
|
||||||
@ -136,4 +136,3 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
enabled_flowers = true
|
|
||||||
|
@ -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"})
|
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
|
end
|
||||||
|
|
||||||
enabled_junglegrass = true
|
|
||||||
|
@ -177,13 +177,5 @@ find_first_node = function(pos, height_limit, nodelist)
|
|||||||
return nil
|
return nil
|
||||||
end
|
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..")")
|
|
||||||
|
@ -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"})
|
grow_plants(spawn_delay, grow_chance*2, "poisonivy:climbing", nil, nil, nil ,nil,true,true,nil,{"default:dirt_with_grass"})
|
||||||
|
|
||||||
enabled_poisonivy = true
|
|
||||||
|
Loading…
Reference in New Issue
Block a user