diff --git a/youngtrees/init.lua b/youngtrees/init.lua index 595c11d..6be7114 100644 --- a/youngtrees/init.lua +++ b/youngtrees/init.lua @@ -1,4 +1,70 @@ abstract_youngtrees = {} + + + + +minetest.register_node("youngtrees:bamboo", { + description = "youngtreeBamboo", + drawtype="nodebox", + tiles = {"bamboo.png"}, + inventory_image = "bamboo.png", + wield_image = "bamboo.png", +paramtype = "light", + walkable = false, + is_ground_content = true, +node_box = { + type = "fixed", + fixed = { + {-0.058251,-0.500000,-0.413681,0.066749,0.500000,-0.282500}, --NodeBox 1 + {-0.058251,-0.500000,-0.103123,0.066749,0.500000,0.038672}, --NodeBox 2 + {-0.058251,-0.500000,0.181227,0.066749,0.500000,0.342500}, --NodeBox 3 + } +}, + groups = {snappy=3,flammable=2}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("youngtrees:youngtree2_bottom", { + description = "youngtree2Bottom", + drawtype="nodebox", + tiles = {"youngtree2trunk.png"}, + inventory_image = "youngtree2trunk.png", + wield_image = "youngtree2trunk.png", +paramtype = "light", + walkable = false, + is_ground_content = true, +node_box = { + type = "fixed", + fixed = { + {0.375000,-0.500000,-0.500000,0.500000,0.500000,-0.375000}, --NodeBox 1 + } +}, + groups = {snappy=3,flammable=2}, + sounds = default.node_sound_leaves_defaults(), +}) + + +minetest.register_node("youngtrees:youngtree2_middle",{ + description = "youngtree2Middle", + drawtype="nodebox", + tiles = {"youngtree2branch.png"}, + inventory_image = "youngtree2branch.png", + wield_image = "youngtree2branch.png", + paramtype = "light", + walkable = false, + is_ground_content = true, + node_box = { + type = "fixed", + fixed = { + {0.125000,-0.500000,-0.500000,0.500000,-0.187500,-0.125000}, --NodeBox 1 + {-0.187500,-0.187500,-0.500000,0.500000,0.125000,0.250000}, --NodeBox 2 + {-0.500000,0.125000,-0.500000,0.500000,0.500000,0.500000}, --NodeBox 3 + } + }, + groups = {snappy=3,flammable=2}, + sounds = default.node_sound_leaves_defaults(), +}) + minetest.register_node("youngtrees:youngtree_top", { description = "youngtreeTop", drawtype = "plantlike", diff --git a/youngtrees/textures/bamboo.png b/youngtrees/textures/bamboo.png new file mode 100644 index 0000000..2f02e3a Binary files /dev/null and b/youngtrees/textures/bamboo.png differ diff --git a/youngtrees/textures/youngtree2branch.png b/youngtrees/textures/youngtree2branch.png new file mode 100644 index 0000000..ce7e310 Binary files /dev/null and b/youngtrees/textures/youngtree2branch.png differ diff --git a/youngtrees/textures/youngtree2trunk.png b/youngtrees/textures/youngtree2trunk.png new file mode 100644 index 0000000..96a6322 Binary files /dev/null and b/youngtrees/textures/youngtree2trunk.png differ