forked from mtcontrib/moretrees
update to match the renaming of plants_lib --> biome_lib
This commit is contained in:
parent
ba170ee66e
commit
10ce68961f
|
@ -8,4 +8,4 @@ jungle trees mod, and big contributions by RealBadAngel.
|
|||
Brought together into one mod and made L-systems compatible by Vanessa
|
||||
Ezekowitz.
|
||||
|
||||
Dependencies: <a href="https://github.com/VanessaE/plantlife">plants_lib</a> and default
|
||||
Dependencies: <a href="https://forum.minetest.net/viewtopic.php?f=11&t=12999">biome_lib</a> and default
|
||||
|
|
|
@ -18,7 +18,7 @@ moretrees.enable_beech = false
|
|||
|
||||
-- set this to true to make moretrees spawn saplings at mapgen time instead
|
||||
-- of fully-grown trees, which will grow into full trees very quickly. With
|
||||
-- older versions of plants_lib, doing this will reduce mapgen lag.
|
||||
-- older versions of biome_lib, doing this will reduce mapgen lag.
|
||||
|
||||
moretrees.spawn_saplings = false
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
default
|
||||
plants_lib
|
||||
biome_lib
|
||||
stairs?
|
||||
moreblocks?
|
||||
intllib?
|
||||
|
|
28
init.lua
28
init.lua
|
@ -128,57 +128,57 @@ end
|
|||
|
||||
|
||||
if moretrees.enable_beech then
|
||||
plantslib:register_generate_plant(moretrees.beech_biome, moretrees.spawn_beech_object)
|
||||
biome_lib:register_generate_plant(moretrees.beech_biome, moretrees.spawn_beech_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_apple_tree then
|
||||
plantslib:register_generate_plant(moretrees.apple_tree_biome, moretrees.spawn_apple_tree_object)
|
||||
biome_lib:register_generate_plant(moretrees.apple_tree_biome, moretrees.spawn_apple_tree_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_oak then
|
||||
plantslib:register_generate_plant(moretrees.oak_biome, moretrees.spawn_oak_object)
|
||||
biome_lib:register_generate_plant(moretrees.oak_biome, moretrees.spawn_oak_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_sequoia then
|
||||
plantslib:register_generate_plant(moretrees.sequoia_biome, moretrees.spawn_sequoia_object)
|
||||
biome_lib:register_generate_plant(moretrees.sequoia_biome, moretrees.spawn_sequoia_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_palm then
|
||||
plantslib:register_generate_plant(moretrees.palm_biome, moretrees.spawn_palm_object)
|
||||
biome_lib:register_generate_plant(moretrees.palm_biome, moretrees.spawn_palm_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_pine then
|
||||
plantslib:register_generate_plant(moretrees.pine_biome, moretrees.spawn_pine_object)
|
||||
biome_lib:register_generate_plant(moretrees.pine_biome, moretrees.spawn_pine_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_rubber_tree then
|
||||
plantslib:register_generate_plant(moretrees.rubber_tree_biome, moretrees.spawn_rubber_tree_object)
|
||||
biome_lib:register_generate_plant(moretrees.rubber_tree_biome, moretrees.spawn_rubber_tree_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_willow then
|
||||
plantslib:register_generate_plant(moretrees.willow_biome, moretrees.spawn_willow_object)
|
||||
biome_lib:register_generate_plant(moretrees.willow_biome, moretrees.spawn_willow_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_acacia then
|
||||
plantslib:register_generate_plant(moretrees.acacia_biome, moretrees.spawn_acacia_object)
|
||||
biome_lib:register_generate_plant(moretrees.acacia_biome, moretrees.spawn_acacia_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_birch then
|
||||
plantslib:register_generate_plant(moretrees.birch_biome, moretrees.spawn_birch_object)
|
||||
biome_lib:register_generate_plant(moretrees.birch_biome, moretrees.spawn_birch_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_spruce then
|
||||
plantslib:register_generate_plant(moretrees.spruce_biome, moretrees.spawn_spruce_object)
|
||||
biome_lib:register_generate_plant(moretrees.spruce_biome, moretrees.spawn_spruce_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_jungle_tree then
|
||||
plantslib:register_generate_plant(moretrees.jungletree_biome, moretrees.spawn_jungletree_object)
|
||||
biome_lib:register_generate_plant(moretrees.jungletree_biome, moretrees.spawn_jungletree_object)
|
||||
end
|
||||
|
||||
if moretrees.enable_fir then
|
||||
plantslib:register_generate_plant(moretrees.fir_biome, moretrees.spawn_fir_object)
|
||||
biome_lib:register_generate_plant(moretrees.fir_biome, moretrees.spawn_fir_object)
|
||||
if minetest.get_modpath("snow") then
|
||||
plantslib:register_generate_plant(moretrees.fir_biome_snow, moretrees.spawn_fir_snow_object)
|
||||
biome_lib:register_generate_plant(moretrees.fir_biome_snow, moretrees.spawn_fir_snow_object)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
22
saplings.lua
22
saplings.lua
|
@ -7,8 +7,8 @@ for i in ipairs(moretrees.treelist) do
|
|||
|
||||
if treename ~= "birch" and treename ~= "spruce" and treename ~= "fir" and treename ~= "jungletree" then
|
||||
|
||||
plantslib:dbg(dump(moretrees[tree_biome].surface))
|
||||
plantslib:grow_plants({
|
||||
biome_lib:dbg(dump(moretrees[tree_biome].surface))
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = moretrees.sapling_interval,
|
||||
grow_chance = moretrees.sapling_chance,
|
||||
grow_plant = "moretrees:"..treename.."_sapling",
|
||||
|
@ -16,7 +16,7 @@ for i in ipairs(moretrees.treelist) do
|
|||
grow_function = moretrees[tree_model],
|
||||
})
|
||||
|
||||
plantslib:grow_plants({
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:"..treename.."_sapling_ongen",
|
||||
|
@ -27,7 +27,7 @@ for i in ipairs(moretrees.treelist) do
|
|||
end
|
||||
end
|
||||
|
||||
plantslib:grow_plants({
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = moretrees.sapling_interval,
|
||||
grow_chance = moretrees.sapling_chance,
|
||||
grow_plant = "moretrees:birch_sapling",
|
||||
|
@ -35,7 +35,7 @@ plantslib:grow_plants({
|
|||
grow_function = "moretrees:grow_birch"
|
||||
})
|
||||
|
||||
plantslib:grow_plants({
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:birch_sapling_ongen",
|
||||
|
@ -43,7 +43,7 @@ plantslib:grow_plants({
|
|||
grow_function = "moretrees:grow_birch"
|
||||
})
|
||||
|
||||
plantslib:grow_plants({
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = moretrees.sapling_interval,
|
||||
grow_chance = moretrees.sapling_chance,
|
||||
grow_plant = "moretrees:spruce_sapling",
|
||||
|
@ -51,7 +51,7 @@ plantslib:grow_plants({
|
|||
grow_function = "moretrees:grow_spruce"
|
||||
})
|
||||
|
||||
plantslib:grow_plants({
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:spruce_sapling_ongen",
|
||||
|
@ -59,7 +59,7 @@ plantslib:grow_plants({
|
|||
grow_function = "moretrees:grow_spruce"
|
||||
})
|
||||
|
||||
plantslib:grow_plants({
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = moretrees.sapling_interval,
|
||||
grow_chance = moretrees.sapling_chance,
|
||||
grow_plant = "moretrees:fir_sapling",
|
||||
|
@ -67,7 +67,7 @@ plantslib:grow_plants({
|
|||
grow_function = "moretrees:grow_fir"
|
||||
})
|
||||
|
||||
plantslib:grow_plants({
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:fir_sapling_ongen",
|
||||
|
@ -75,7 +75,7 @@ plantslib:grow_plants({
|
|||
grow_function = "moretrees:grow_fir"
|
||||
})
|
||||
|
||||
plantslib:grow_plants({
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = moretrees.sapling_interval,
|
||||
grow_chance = moretrees.sapling_chance,
|
||||
grow_plant = "moretrees:jungletree_sapling",
|
||||
|
@ -83,7 +83,7 @@ plantslib:grow_plants({
|
|||
grow_function = "moretrees:grow_jungletree"
|
||||
})
|
||||
|
||||
plantslib:grow_plants({
|
||||
biome_lib:grow_plants({
|
||||
grow_delay = 2,
|
||||
grow_chance = 30,
|
||||
grow_plant = "moretrees:jungletree_sapling_ongen",
|
||||
|
|
Loading…
Reference in New Issue
Block a user