From f37b81262aaa40445abddc8aa0a17f4801c9d68d Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 24 Jul 2015 11:11:22 +0100 Subject: Use default acacia tree nodes if available... --- wood.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wood.lua') diff --git a/wood.lua b/wood.lua index 80d7c66..1b4675c 100644 --- a/wood.lua +++ b/wood.lua @@ -1,6 +1,12 @@ --= Define Trunks and Wood -- Acacia Trunk (thanks to VanessaE for acacia textures) +if minetest.registered_nodes["default:acacia_tree"] then + minetest.register_alias("ethereal:acacia_trunk", "default:acacia_tree") + minetest.register_alias("ethereal:acacia_leaves", "default:acacia_leaves") + minetest.register_alias("ethereal:acacia_wood", "default:acacia_wood") + print ("acacia tree in default game") +else minetest.register_node("ethereal:acacia_trunk", { description = "Acacia Trunk", tiles = { @@ -27,6 +33,7 @@ minetest.register_craft({ output = "ethereal:acacia_wood 4", recipe = {{"ethereal:acacia_trunk"}} }) +end -- Willow Trunk minetest.register_node("ethereal:willow_trunk", { -- cgit v1.2.3