1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2024-11-14 22:30:38 +01:00
This commit is contained in:
Craig Robbins 2014-08-20 21:51:32 +10:00
parent 655cff9f76
commit 27156fdd71

View File

@ -63,7 +63,7 @@ abstract_ferns.grow_giant_tree_fern = function(pos)
minetest.set_node({x = pos.x, y = pos.y + i, z = pos.z}, {name="ferns:fern_trunk_big"}) minetest.set_node({x = pos.x, y = pos.y + i, z = pos.z}, {name="ferns:fern_trunk_big"})
end end
minetest.set_node({x = pos.x, y = pos.y + size-2, z = pos.z}, {name="ferns:fern_trunk_big_top"}) minetest.set_node({x = pos.x, y = pos.y + size-2, z = pos.z}, {name="ferns:fern_trunk_big_top"})
minetest.set_node({x = pos.x, y = pos.y + size-1, z = pos.z}, {name="ferns:tree_fern_leafs_giant"}) minetest.set_node({x = pos.x, y = pos.y + size-1, z = pos.z}, {name="ferns:tree_fern_leaves_giant"})
-- all the checking for air below is to prevent some ugly bugs (incomplete trunks of neighbouring trees), it's a bit slower, but worth the result -- all the checking for air below is to prevent some ugly bugs (incomplete trunks of neighbouring trees), it's a bit slower, but worth the result
@ -76,7 +76,7 @@ abstract_ferns.grow_giant_tree_fern = function(pos)
-- add leaves so long as the destination nodes are air -- add leaves so long as the destination nodes are air
for j = 1, 3 do for j = 1, 3 do
if minetest.get_node(positions[j]).name == "air" then if minetest.get_node(positions[j]).name == "air" then
minetest.set_node(positions[j], {name="ferns:tree_fern_leaf_big"}) minetest.set_node(positions[j], {name="ferns:tree_fern_leaves_big"})
else else
endpos = j endpos = j
break break
@ -84,7 +84,7 @@ abstract_ferns.grow_giant_tree_fern = function(pos)
end end
-- add the terminating leaf if required and possible -- add the terminating leaf if required and possible
if endpos == 4 and minetest.get_node(positions[endpos]).name == "air" then if endpos == 4 and minetest.get_node(positions[endpos]).name == "air" then
minetest.set_node(positions[endpos], {name="ferns:tree_fern_leaf_big_end", param2=rot}) minetest.set_node(positions[endpos], {name="ferns:tree_fern_leaves_big_end", param2=rot})
end end
end end
end end
@ -92,7 +92,7 @@ end
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
-- GIANT TREE FERN LEAVES -- GIANT TREE FERN LEAVES
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
minetest.register_node("ferns:tree_fern_leafs_giant", { minetest.register_node("ferns:tree_fern_leaves_giant", {
description = "Tree Fern Crown (Dicksonia)", description = "Tree Fern Crown (Dicksonia)",
drawtype = "plantlike", drawtype = "plantlike",
visual_scale = math.sqrt(8), visual_scale = math.sqrt(8),
@ -115,7 +115,7 @@ minetest.register_node("ferns:tree_fern_leafs_giant", {
rarity = 40, rarity = 40,
}, },
{ {
items = {"ferns:tree_fern_leafs_giant"}, items = {"ferns:tree_fern_leaves_giant"},
} }
} }
}, },
@ -128,7 +128,7 @@ minetest.register_node("ferns:tree_fern_leafs_giant", {
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
-- GIANT TREE FERN LEAVE PART -- GIANT TREE FERN LEAVE PART
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
minetest.register_node("ferns:tree_fern_leaf_big", { minetest.register_node("ferns:tree_fern_leave_big", {
description = "Giant Tree Fern Leaves", description = "Giant Tree Fern Leaves",
drawtype = "raillike", drawtype = "raillike",
paramtype = "light", paramtype = "light",
@ -149,7 +149,7 @@ minetest.register_node("ferns:tree_fern_leaf_big", {
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
-- GIANT TREE FERN LEAVE END -- GIANT TREE FERN LEAVE END
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
minetest.register_node("ferns:tree_fern_leaf_big_end", { minetest.register_node("ferns:tree_fern_leave_big_end", {
description = "Giant Tree Fern Leave End", description = "Giant Tree Fern Leave End",
drawtype = "nodebox", drawtype = "nodebox",
paramtype = "light", paramtype = "light",