mirror of
https://github.com/mt-mods/moretrees.git
synced 2024-12-28 11:40:20 +01:00
don't register grow actions for "ongen" saplings
if moretrees is not in spawn-saplings mode.
This commit is contained in:
parent
90a2d33707
commit
109b2009fb
79
saplings.lua
79
saplings.lua
@ -16,13 +16,15 @@ for i in ipairs(moretrees.treelist) do
|
|||||||
grow_function = moretrees[tree_model],
|
grow_function = moretrees[tree_model],
|
||||||
})
|
})
|
||||||
|
|
||||||
biome_lib:grow_plants({
|
if moretrees.spawn_saplings then
|
||||||
grow_delay = 2,
|
biome_lib:grow_plants({
|
||||||
grow_chance = 30,
|
grow_delay = 2,
|
||||||
grow_plant = "moretrees:"..treename.."_sapling_ongen",
|
grow_chance = 30,
|
||||||
grow_nodes = moretrees[tree_biome].surface,
|
grow_plant = "moretrees:"..treename.."_sapling_ongen",
|
||||||
grow_function = moretrees[tree_model],
|
grow_nodes = moretrees[tree_biome].surface,
|
||||||
})
|
grow_function = moretrees[tree_model],
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -35,13 +37,6 @@ biome_lib:grow_plants({
|
|||||||
grow_function = "moretrees.grow_birch"
|
grow_function = "moretrees.grow_birch"
|
||||||
})
|
})
|
||||||
|
|
||||||
biome_lib:grow_plants({
|
|
||||||
grow_delay = 2,
|
|
||||||
grow_chance = 30,
|
|
||||||
grow_plant = "moretrees:birch_sapling_ongen",
|
|
||||||
grow_nodes = moretrees.birch_biome.surface,
|
|
||||||
grow_function = "moretrees.grow_birch"
|
|
||||||
})
|
|
||||||
|
|
||||||
biome_lib:grow_plants({
|
biome_lib:grow_plants({
|
||||||
grow_delay = moretrees.sapling_interval,
|
grow_delay = moretrees.sapling_interval,
|
||||||
@ -51,14 +46,6 @@ biome_lib:grow_plants({
|
|||||||
grow_function = "moretrees.grow_spruce"
|
grow_function = "moretrees.grow_spruce"
|
||||||
})
|
})
|
||||||
|
|
||||||
biome_lib:grow_plants({
|
|
||||||
grow_delay = 2,
|
|
||||||
grow_chance = 30,
|
|
||||||
grow_plant = "moretrees:spruce_sapling_ongen",
|
|
||||||
grow_nodes = moretrees.spruce_biome.surface,
|
|
||||||
grow_function = "moretrees.grow_spruce"
|
|
||||||
})
|
|
||||||
|
|
||||||
biome_lib:grow_plants({
|
biome_lib:grow_plants({
|
||||||
grow_delay = moretrees.sapling_interval,
|
grow_delay = moretrees.sapling_interval,
|
||||||
grow_chance = moretrees.sapling_chance,
|
grow_chance = moretrees.sapling_chance,
|
||||||
@ -67,14 +54,6 @@ biome_lib:grow_plants({
|
|||||||
grow_function = "moretrees.grow_fir"
|
grow_function = "moretrees.grow_fir"
|
||||||
})
|
})
|
||||||
|
|
||||||
biome_lib:grow_plants({
|
|
||||||
grow_delay = 2,
|
|
||||||
grow_chance = 30,
|
|
||||||
grow_plant = "moretrees:fir_sapling_ongen",
|
|
||||||
grow_nodes = moretrees.fir_biome.surface,
|
|
||||||
grow_function = "moretrees.grow_fir"
|
|
||||||
})
|
|
||||||
|
|
||||||
biome_lib:grow_plants({
|
biome_lib:grow_plants({
|
||||||
grow_delay = moretrees.sapling_interval,
|
grow_delay = moretrees.sapling_interval,
|
||||||
grow_chance = moretrees.sapling_chance,
|
grow_chance = moretrees.sapling_chance,
|
||||||
@ -83,11 +62,37 @@ biome_lib:grow_plants({
|
|||||||
grow_function = "moretrees.grow_jungletree"
|
grow_function = "moretrees.grow_jungletree"
|
||||||
})
|
})
|
||||||
|
|
||||||
biome_lib:grow_plants({
|
if moretrees.spawn_saplings then
|
||||||
grow_delay = 2,
|
biome_lib:grow_plants({
|
||||||
grow_chance = 30,
|
grow_delay = 2,
|
||||||
grow_plant = "moretrees:jungletree_sapling_ongen",
|
grow_chance = 30,
|
||||||
grow_nodes = moretrees.jungletree_biome.surface,
|
grow_plant = "moretrees:jungletree_sapling_ongen",
|
||||||
grow_function = "moretrees.grow_jungletree"
|
grow_nodes = moretrees.jungletree_biome.surface,
|
||||||
})
|
grow_function = "moretrees.grow_jungletree"
|
||||||
|
})
|
||||||
|
|
||||||
|
biome_lib:grow_plants({
|
||||||
|
grow_delay = 2,
|
||||||
|
grow_chance = 30,
|
||||||
|
grow_plant = "moretrees:fir_sapling_ongen",
|
||||||
|
grow_nodes = moretrees.fir_biome.surface,
|
||||||
|
grow_function = "moretrees.grow_fir"
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
biome_lib:grow_plants({
|
||||||
|
grow_delay = 2,
|
||||||
|
grow_chance = 30,
|
||||||
|
grow_plant = "moretrees:spruce_sapling_ongen",
|
||||||
|
grow_nodes = moretrees.spruce_biome.surface,
|
||||||
|
grow_function = "moretrees.grow_spruce"
|
||||||
|
})
|
||||||
|
|
||||||
|
biome_lib:grow_plants({
|
||||||
|
grow_delay = 2,
|
||||||
|
grow_chance = 30,
|
||||||
|
grow_plant = "moretrees:birch_sapling_ongen",
|
||||||
|
grow_nodes = moretrees.birch_biome.surface,
|
||||||
|
grow_function = "moretrees.grow_birch"
|
||||||
|
})
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user