diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-07-19 16:38:56 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-07-19 16:41:55 -0400 |
commit | ad0cbbc0fa3061b122ea6f78cdfd00ada110961c (patch) | |
tree | 3d10a6e06eeb606577068056e9bbc5b42aba28d5 /node_defs.lua | |
parent | adecd4b1ea3e6e2ba481c8dabcfe038fa5ec50f8 (diff) |
don't define acacia and pine nodes - alias them to the default ones instead
Diffstat (limited to 'node_defs.lua')
-rw-r--r-- | node_defs.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/node_defs.lua b/node_defs.lua index cad3a07..724133f 100644 --- a/node_defs.lua +++ b/node_defs.lua @@ -76,7 +76,9 @@ for i in ipairs(moretrees.treelist) do local selbox = moretrees.treelist[i][5] local vscale = moretrees.treelist[i][6] - if treename ~= "jungletree" then -- the default game provides jungle tree trunk/planks nodes. + if treename ~= "jungletree" -- the default game provides jungle tree, acacia, and pine trunk/planks nodes. + and treename ~= "acacia" + and treename ~= "pine" then minetest.register_node("moretrees:"..treename.."_trunk", { description = S(treedesc.." Trunk"), @@ -451,3 +453,12 @@ minetest.register_alias("conifers:leaves", "moretrees:fir_leaves") minetest.register_alias("conifers:leaves_special", "moretrees:fir_leaves_bright") minetest.register_alias("conifers:sapling", "moretrees:fir_sapling") +minetest.register_alias("moretrees:acacia_trunk", "default:acacia_tree") +minetest.register_alias("moretrees:acacia_planks", "default:acacia_wood") +minetest.register_alias("moretrees:acacia_sapling", "default:acacia_sapling") +minetest.register_alias("moretrees:acacia_leaves", "default:acacia_leaves") + +minetest.register_alias("moretrees:pine_trunk", "default:pinetree") +minetest.register_alias("moretrees:pine_planks", "default:pinewood") +minetest.register_alias("moretrees:pine_sapling", "default:pine_sapling") +minetest.register_alias("moretrees:pine_leaves", "default:pine_needles") |