1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +01:00

Updated moretrees

- Fix sapling growth
 - Solves #222
This commit is contained in:
LeMagnesium 2015-08-22 11:26:14 +02:00
parent 48c4c2431a
commit e50a9be477
3 changed files with 10 additions and 13 deletions

View File

@ -206,9 +206,6 @@ moretrees.ct_rules_a2 = "FF[FF][&&-FBF][&&+FBF][&&---FBF][&&+++FBF]F/A"
moretrees.ct_rules_b2 = "[-fB][+fB]" moretrees.ct_rules_b2 = "[-fB][+fB]"
function moretrees.grow_jungletree(pos) function moretrees.grow_jungletree(pos)
if not pos or not pos.x or not pos.y or not pos.z then
return
end --//MFF(Mg|08/18/15)
local r1 = math.random(2) local r1 = math.random(2)
local r2 = math.random(3) local r2 = math.random(3)
if r1 == 1 then if r1 == 1 then

View File

@ -424,8 +424,8 @@ minetest.register_alias("moretrees:acacia_planks", "default:acacia_wood")
minetest.register_alias("moretrees:acacia_sapling", "default:acacia_sapling") minetest.register_alias("moretrees:acacia_sapling", "default:acacia_sapling")
minetest.register_alias("moretrees:acacia_leaves", "default:acacia_leaves") minetest.register_alias("moretrees:acacia_leaves", "default:acacia_leaves")
minetest.register_alias("moretrees:pine_trunk", "default:pinetree") minetest.register_alias("moretrees:pine_trunk", "default:pine_tree")
minetest.register_alias("moretrees:pine_planks", "default:pinewood") minetest.register_alias("moretrees:pine_planks", "default:pine_wood")
minetest.register_alias("moretrees:pine_sapling", "default:pine_sapling") minetest.register_alias("moretrees:pine_sapling", "default:pine_sapling")
minetest.register_alias("moretrees:pine_leaves", "default:pine_needles") minetest.register_alias("moretrees:pine_leaves", "default:pine_needles")

View File

@ -32,7 +32,7 @@ biome_lib:grow_plants({
grow_chance = moretrees.sapling_chance, grow_chance = moretrees.sapling_chance,
grow_plant = "moretrees:birch_sapling", grow_plant = "moretrees:birch_sapling",
grow_nodes = moretrees.birch_biome.surface, grow_nodes = moretrees.birch_biome.surface,
grow_function = "moretrees:grow_birch" grow_function = "moretrees.grow_birch"
}) })
biome_lib:grow_plants({ biome_lib:grow_plants({
@ -40,7 +40,7 @@ biome_lib:grow_plants({
grow_chance = 30, grow_chance = 30,
grow_plant = "moretrees:birch_sapling_ongen", grow_plant = "moretrees:birch_sapling_ongen",
grow_nodes = moretrees.birch_biome.surface, grow_nodes = moretrees.birch_biome.surface,
grow_function = "moretrees:grow_birch" grow_function = "moretrees.grow_birch"
}) })
biome_lib:grow_plants({ biome_lib:grow_plants({
@ -48,7 +48,7 @@ biome_lib:grow_plants({
grow_chance = moretrees.sapling_chance, grow_chance = moretrees.sapling_chance,
grow_plant = "moretrees:spruce_sapling", grow_plant = "moretrees:spruce_sapling",
grow_nodes = moretrees.spruce_biome.surface, grow_nodes = moretrees.spruce_biome.surface,
grow_function = "moretrees:grow_spruce" grow_function = "moretrees.grow_spruce"
}) })
biome_lib:grow_plants({ biome_lib:grow_plants({
@ -56,7 +56,7 @@ biome_lib:grow_plants({
grow_chance = 30, grow_chance = 30,
grow_plant = "moretrees:spruce_sapling_ongen", grow_plant = "moretrees:spruce_sapling_ongen",
grow_nodes = moretrees.spruce_biome.surface, grow_nodes = moretrees.spruce_biome.surface,
grow_function = "moretrees:grow_spruce" grow_function = "moretrees.grow_spruce"
}) })
biome_lib:grow_plants({ biome_lib:grow_plants({
@ -64,7 +64,7 @@ biome_lib:grow_plants({
grow_chance = moretrees.sapling_chance, grow_chance = moretrees.sapling_chance,
grow_plant = "moretrees:fir_sapling", grow_plant = "moretrees:fir_sapling",
grow_nodes = moretrees.fir_biome.surface, grow_nodes = moretrees.fir_biome.surface,
grow_function = "moretrees:grow_fir" grow_function = "moretrees.grow_fir"
}) })
biome_lib:grow_plants({ biome_lib:grow_plants({
@ -72,7 +72,7 @@ biome_lib:grow_plants({
grow_chance = 30, grow_chance = 30,
grow_plant = "moretrees:fir_sapling_ongen", grow_plant = "moretrees:fir_sapling_ongen",
grow_nodes = moretrees.fir_biome.surface, grow_nodes = moretrees.fir_biome.surface,
grow_function = "moretrees:grow_fir" grow_function = "moretrees.grow_fir"
}) })
biome_lib:grow_plants({ biome_lib:grow_plants({
@ -80,7 +80,7 @@ biome_lib:grow_plants({
grow_chance = moretrees.sapling_chance, grow_chance = moretrees.sapling_chance,
grow_plant = "default:junglesapling", grow_plant = "default:junglesapling",
grow_nodes = moretrees.jungletree_biome.surface, grow_nodes = moretrees.jungletree_biome.surface,
grow_function = "moretrees:grow_jungletree" grow_function = "moretrees.grow_jungletree"
}) })
biome_lib:grow_plants({ biome_lib:grow_plants({
@ -88,6 +88,6 @@ biome_lib:grow_plants({
grow_chance = 30, grow_chance = 30,
grow_plant = "moretrees:jungletree_sapling_ongen", grow_plant = "moretrees:jungletree_sapling_ongen",
grow_nodes = moretrees.jungletree_biome.surface, grow_nodes = moretrees.jungletree_biome.surface,
grow_function = "moretrees:grow_jungletree" grow_function = "moretrees.grow_jungletree"
}) })