This commit is contained in:
Craig Robbins 2014-08-20 21:51:32 +10:00 committed by Vanessa Ezekowitz
parent 2b320a11cd
commit b6aaca8f0c

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"})
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-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
@ -76,7 +76,7 @@ abstract_ferns.grow_giant_tree_fern = function(pos)
-- add leaves so long as the destination nodes are air
for j = 1, 3 do
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
endpos = j
break
@ -84,7 +84,7 @@ abstract_ferns.grow_giant_tree_fern = function(pos)
end
-- add the terminating leaf if required and possible
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
@ -92,7 +92,7 @@ end
-----------------------------------------------------------------------------------------------
-- 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)",
drawtype = "plantlike",
visual_scale = math.sqrt(8),
@ -115,7 +115,7 @@ minetest.register_node("ferns:tree_fern_leafs_giant", {
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
-----------------------------------------------------------------------------------------------
minetest.register_node("ferns:tree_fern_leaf_big", {
minetest.register_node("ferns:tree_fern_leave_big", {
description = "Giant Tree Fern Leaves",
drawtype = "raillike",
paramtype = "light",
@ -149,7 +149,7 @@ minetest.register_node("ferns:tree_fern_leaf_big", {
-----------------------------------------------------------------------------------------------
-- 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",
drawtype = "nodebox",
paramtype = "light",