2013-02-12 04:07:40 +01:00
|
|
|
-- sapling growth
|
|
|
|
|
|
|
|
for i in ipairs(moretrees.treelist) do
|
|
|
|
local treename = moretrees.treelist[i][1]
|
|
|
|
local tree_model = treename.."_model"
|
|
|
|
local tree_biome = treename.."_biome"
|
|
|
|
|
|
|
|
if treename ~= "birch" and treename ~= "spruce" and treename ~= "fir" and treename ~= "jungletree" then
|
|
|
|
|
2015-08-09 16:13:33 +02:00
|
|
|
biome_lib:dbg(dump(moretrees[tree_biome].surface))
|
|
|
|
biome_lib:grow_plants({
|
2013-02-12 04:07:40 +01:00
|
|
|
grow_delay = moretrees.sapling_interval,
|
|
|
|
grow_chance = moretrees.sapling_chance,
|
|
|
|
grow_plant = "moretrees:"..treename.."_sapling",
|
|
|
|
grow_nodes = moretrees[tree_biome].surface,
|
|
|
|
grow_function = moretrees[tree_model],
|
|
|
|
})
|
2013-09-15 04:44:32 +02:00
|
|
|
|
2015-08-09 16:13:33 +02:00
|
|
|
biome_lib:grow_plants({
|
2013-09-15 04:44:32 +02:00
|
|
|
grow_delay = 2,
|
|
|
|
grow_chance = 30,
|
|
|
|
grow_plant = "moretrees:"..treename.."_sapling_ongen",
|
|
|
|
grow_nodes = moretrees[tree_biome].surface,
|
|
|
|
grow_function = moretrees[tree_model],
|
|
|
|
})
|
|
|
|
|
2013-02-12 04:07:40 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-08-09 16:13:33 +02:00
|
|
|
biome_lib:grow_plants({
|
2013-02-12 04:07:40 +01:00
|
|
|
grow_delay = moretrees.sapling_interval,
|
|
|
|
grow_chance = moretrees.sapling_chance,
|
|
|
|
grow_plant = "moretrees:birch_sapling",
|
|
|
|
grow_nodes = moretrees.birch_biome.surface,
|
|
|
|
grow_function = "moretrees:grow_birch"
|
|
|
|
})
|
|
|
|
|
2015-08-09 16:13:33 +02:00
|
|
|
biome_lib:grow_plants({
|
2013-09-15 07:56:30 +02:00
|
|
|
grow_delay = 2,
|
|
|
|
grow_chance = 30,
|
2013-09-15 04:44:32 +02:00
|
|
|
grow_plant = "moretrees:birch_sapling_ongen",
|
|
|
|
grow_nodes = moretrees.birch_biome.surface,
|
|
|
|
grow_function = "moretrees:grow_birch"
|
|
|
|
})
|
|
|
|
|
2015-08-09 16:13:33 +02:00
|
|
|
biome_lib:grow_plants({
|
2013-02-12 04:07:40 +01:00
|
|
|
grow_delay = moretrees.sapling_interval,
|
|
|
|
grow_chance = moretrees.sapling_chance,
|
|
|
|
grow_plant = "moretrees:spruce_sapling",
|
|
|
|
grow_nodes = moretrees.spruce_biome.surface,
|
|
|
|
grow_function = "moretrees:grow_spruce"
|
|
|
|
})
|
|
|
|
|
2015-08-09 16:13:33 +02:00
|
|
|
biome_lib:grow_plants({
|
2013-09-15 07:56:30 +02:00
|
|
|
grow_delay = 2,
|
|
|
|
grow_chance = 30,
|
2013-09-15 04:44:32 +02:00
|
|
|
grow_plant = "moretrees:spruce_sapling_ongen",
|
|
|
|
grow_nodes = moretrees.spruce_biome.surface,
|
|
|
|
grow_function = "moretrees:grow_spruce"
|
|
|
|
})
|
|
|
|
|
2015-08-09 16:13:33 +02:00
|
|
|
biome_lib:grow_plants({
|
2013-02-12 04:07:40 +01:00
|
|
|
grow_delay = moretrees.sapling_interval,
|
|
|
|
grow_chance = moretrees.sapling_chance,
|
|
|
|
grow_plant = "moretrees:fir_sapling",
|
|
|
|
grow_nodes = moretrees.fir_biome.surface,
|
|
|
|
grow_function = "moretrees:grow_fir"
|
|
|
|
})
|
|
|
|
|
2015-08-09 16:13:33 +02:00
|
|
|
biome_lib:grow_plants({
|
2013-09-15 07:56:30 +02:00
|
|
|
grow_delay = 2,
|
|
|
|
grow_chance = 30,
|
2013-09-15 04:44:32 +02:00
|
|
|
grow_plant = "moretrees:fir_sapling_ongen",
|
|
|
|
grow_nodes = moretrees.fir_biome.surface,
|
|
|
|
grow_function = "moretrees:grow_fir"
|
|
|
|
})
|
|
|
|
|
2015-08-09 16:13:33 +02:00
|
|
|
biome_lib:grow_plants({
|
2013-02-12 04:07:40 +01:00
|
|
|
grow_delay = moretrees.sapling_interval,
|
|
|
|
grow_chance = moretrees.sapling_chance,
|
2015-08-14 17:50:34 +02:00
|
|
|
grow_plant = "default:junglesapling",
|
2013-02-12 04:07:40 +01:00
|
|
|
grow_nodes = moretrees.jungletree_biome.surface,
|
|
|
|
grow_function = "moretrees:grow_jungletree"
|
|
|
|
})
|
2013-09-15 04:44:32 +02:00
|
|
|
|
2015-08-09 16:13:33 +02:00
|
|
|
biome_lib:grow_plants({
|
2013-09-15 07:56:30 +02:00
|
|
|
grow_delay = 2,
|
|
|
|
grow_chance = 30,
|
2013-09-15 04:44:32 +02:00
|
|
|
grow_plant = "moretrees:jungletree_sapling_ongen",
|
|
|
|
grow_nodes = moretrees.jungletree_biome.surface,
|
|
|
|
grow_function = "moretrees:grow_jungletree"
|
|
|
|
})
|
|
|
|
|