Delete deco_ferns_tree.lua

master
Shad MOrdre 2019-09-04 09:56:17 -07:00 committed by GitHub
parent 2c049460fd
commit fc400981de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 194 deletions

View File

@ -1,194 +0,0 @@
--------------------------------------------------------------
-- Adapted from the work by Mossmanikin and VanessaE
-- License (everything): WTFPL
--------------------------------------------------------------
-----------------
-- Giant Ferns --
-----------------
minetest.register_node("lib_ecology:tree_fern_leaves_giant", {
description = "Tree Fern Crown (Dicksonia)",
drawtype = "plantlike",
visual_scale = math.sqrt(8),
wield_scale = {x=0.175, y=0.175, z=0.175},
paramtype = "light",
tiles = {"ferns_fern_tree_giant.png"},
inventory_image = "ferns_fern_tree.png",
walkable = false,
groups = {
snappy=3,
flammable=2,
attached_node=1,
not_in_creative_inventory=1
},
drop = {
max_items = 2,
items = {
{
-- occasionally, drop a second sapling instead of leaves
-- (extra saplings can also be obtained by replanting and
-- reharvesting leaves)
items = {"lib_ecology:sapling_giant_tree_fern"},
rarity = 10,
},
{
items = {"lib_ecology:sapling_giant_tree_fern"},
},
{
items = {"lib_ecology:tree_fern_leaves_giant"},
}
}
},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-7/16, -1/2, -7/16, 7/16, 0, 7/16},
},
})
-----------------------------------------------------------------------------------------------
-- GIANT TREE FERN LEAVE PART
-----------------------------------------------------------------------------------------------
minetest.register_node("lib_ecology:tree_fern_leaf_big", {
description = "Giant Tree Fern Leaf",
drawtype = "raillike",
paramtype = "light",
tiles = {
"ferns_tree_fern_leave_big.png",
},
walkable = false,
groups = {
snappy=3,
flammable=2,
attached_node=1,
not_in_creative_inventory=1
},
drop = "",
sounds = default.node_sound_leaves_defaults(),
})
-----------------------------------------------------------------------------------------------
-- GIANT TREE FERN LEAVE END
-----------------------------------------------------------------------------------------------
minetest.register_node("lib_ecology:tree_fern_leaf_big_end", {
description = "Giant Tree Fern Leaf End",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
tiles = { "ferns_tree_fern_leave_big_end.png" },
walkable = false,
node_box = {
type = "fixed",
-- {left, bottom, front, right, top, back }
fixed = {-1/2, -1/2, 1/2, 1/2, 33/64, 1/2},
},
selection_box = {
type = "fixed",
fixed = {-1/2, -1/2, 1/2, 1/2, 33/64, 1/2},
},
groups = {
snappy=3,
flammable=2,
attached_node=1,
not_in_creative_inventory=1
},
drop = "",
sounds = default.node_sound_leaves_defaults(),
})
-----------------------------------------------------------------------------------------------
-- GIANT TREE FERN TRUNK TOP
-----------------------------------------------------------------------------------------------
minetest.register_node("lib_ecology:fern_trunk_big_top", {
description = "Giant Fern Trunk",
drawtype = "nodebox",
paramtype = "light",
tiles = {
"ferns_fern_trunk_big_top.png^ferns_tree_fern_leave_big_cross.png",
"ferns_fern_trunk_big_top.png^ferns_tree_fern_leave_big_cross.png",
"ferns_fern_trunk_big.png"
},
node_box = {
type = "fixed",
-- {left, bottom, front, right, top, back }
fixed = {
{-1/2, 33/64, -1/2, 1/2, 33/64, 1/2},
{-1/4, -1/2, -1/4, 1/4, 1/2, 1/4},
}
},
selection_box = {
type = "fixed",
fixed = {-1/4, -1/2, -1/4, 1/4, 1/2, 1/4},
},
groups = {
tree=1,
choppy=2,
oddly_breakable_by_hand=2,
flammable=3,
wood=1,
not_in_creative_inventory=1,
leafdecay=3 -- to support vines
},
drop = "lib_ecology:fern_trunk_big",
sounds = default.node_sound_wood_defaults(),
})
-----------------------------------------------------------------------------------------------
-- GIANT TREE FERN TRUNK
-----------------------------------------------------------------------------------------------
minetest.register_node("lib_ecology:fern_trunk_big", {
description = "Giant Fern Trunk",
drawtype = "nodebox",
paramtype = "light",
tiles = {
"ferns_fern_trunk_big_top.png",
"ferns_fern_trunk_big_top.png",
"ferns_fern_trunk_big.png"
},
node_box = {
type = "fixed",
fixed = {-1/4, -1/2, -1/4, 1/4, 1/2, 1/4},
},
selection_box = {
type = "fixed",
fixed = {-1/4, -1/2, -1/4, 1/4, 1/2, 1/4},
},
groups = {tree=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
sounds = default.node_sound_wood_defaults(),
after_destruct = function(pos,oldnode)
local node = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})
if node.name == "lib_ecology:fern_trunk_big" or node.name == "lib_ecology:fern_trunk_big_top" then
minetest.dig_node({x=pos.x,y=pos.y+1,z=pos.z})
minetest.add_item(pos,"lib_ecology:fern_trunk_big")
end
end,
})
-----------------------------------------------------------------------------------------------
-- GIANT TREE FERN SAPLING
-----------------------------------------------------------------------------------------------
minetest.register_node("lib_ecology:sapling_giant_tree_fern", {
description = "Giant Tree Fern Sapling",
drawtype = "plantlike",
paramtype = "light",
tiles = {"ferns_sapling_tree_fern_giant.png"},
inventory_image = "ferns_sapling_tree_fern_giant.png",
walkable = false,
groups = {snappy=3,flammable=2,flora=1,attached_node=1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-7/16, -1/2, -7/16, 7/16, 0, 7/16},
},
})
-- abm
minetest.register_abm({
nodenames = "lib_ecology:sapling_giant_tree_fern",
interval = 1000,
chance = 4,
action = function(pos, node, _, _)
abstract_ferns.grow_giant_tree_fern({x = pos.x, y = pos.y-1, z = pos.z})
end
})