From 64ca28fe7d08abb342c862f2001f67aea7439a6a Mon Sep 17 00:00:00 2001 From: minefaco <63024226+minefaco@users.noreply.github.com> Date: Fri, 20 Nov 2020 22:15:28 -0500 Subject: [PATCH] Adds missing nodes --- moretrees.lua | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/moretrees.lua b/moretrees.lua index 8bd66a6..98346af 100644 --- a/moretrees.lua +++ b/moretrees.lua @@ -20,3 +20,69 @@ local trunk_names = { stripped_tree.register_trunk(mod_name,trunk_names) +--register tree variations using the same texture as default moretree trunks + +minetest.register_node(":"..mod_name..":stripped_date_palm_ffruit_trunk", { + description = "Stripped date_palm_fruit_trunk", + tiles = { + "stripped_"..mod_name.."_date_palm_trunk_top.png", + "stripped_"..mod_name.."_date_palm_trunk_top.png", + "stripped_"..mod_name.."_date_palm_trunk.png" + }, + groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, not_in_creative_inventory = 1}, + sounds = default.node_sound_wood_defaults(), + paramtype2 = "facedir", + on_place = minetest.rotate_node, +}) + +minetest.register_node(":"..mod_name..":stripped_date_palm_mfruit_trunk", { + description = "Stripped date_palm_fruit_trunk", + tiles = { + "stripped_"..mod_name.."_date_palm_trunk_top.png", + "stripped_"..mod_name.."_date_palm_trunk_top.png", + "stripped_"..mod_name.."_date_palm_trunk.png" + }, + groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, not_in_creative_inventory = 1}, + sounds = default.node_sound_wood_defaults(), + paramtype2 = "facedir", + on_place = minetest.rotate_node, +}) + +minetest.register_node(":"..mod_name..":stripped_date_palm_ffruit_trunk", { + description = "Stripped date_palm_fruit_trunk", + tiles = { + "stripped_"..mod_name.."_date_palm_trunk_top.png", + "stripped_"..mod_name.."_date_palm_trunk_top.png", + "stripped_"..mod_name.."_date_palm_trunk.png" + }, + groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, not_in_creative_inventory = 1}, + sounds = default.node_sound_wood_defaults(), + paramtype2 = "facedir", + on_place = minetest.rotate_node, +}) + +minetest.register_node(":"..mod_name..":stripped_date_palm_fruit_trunk", { + description = "Stripped date_palm_fruit_trunk", + tiles = { + "stripped_"..mod_name.."_date_palm_trunk_top.png", + "stripped_"..mod_name.."_date_palm_trunk_top.png", + "stripped_"..mod_name.."_date_palm_trunk.png" + }, + groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, not_in_creative_inventory = 1}, + sounds = default.node_sound_wood_defaults(), + paramtype2 = "facedir", + on_place = minetest.rotate_node, +}) + +minetest.register_node(":"..mod_name..":stripped_rubber_tree_trunk_empty", { + description = "Stripped date_palm_fruit_trunk", + tiles = { + "stripped_"..mod_name.."_rubber_tree_trunk_top.png", + "stripped_"..mod_name.."_rubber_tree_trunk_top.png", + "stripped_"..mod_name.."_rubber_tree_trunk.png" + }, + groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, not_in_creative_inventory = 1}, + sounds = default.node_sound_wood_defaults(), + paramtype2 = "facedir", + on_place = minetest.rotate_node, +})