summaryrefslogtreecommitdiff
path: root/node_defs.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2015-08-14 14:38:35 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2015-08-14 14:40:45 -0400
commit6694b8da616241ec59072950f60e686464526178 (patch)
tree4dd93899b2aee40f1e23f2bf005082b38c1faefa /node_defs.lua
parent2ae8a32aa368b0962d90ec3a509c5d80df7e6f39 (diff)
made birch, spruce, fir, and jungle trees spawn again
turned out to be I was using foo:bar for their function calls, which biome_lib filters out (only group defs can use that format). Changed them to quoted-string "foo.bar" format. Also, jungle trees need a moretrees-specific copy of the default jungle trunk node so that there's something unique to match against for the density limit. also, made jungle trees use the same biome settings as giant tree ferns
Diffstat (limited to 'node_defs.lua')
-rw-r--r--node_defs.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/node_defs.lua b/node_defs.lua
index 35fb1d4..3753be0 100644
--- a/node_defs.lua
+++ b/node_defs.lua
@@ -383,6 +383,12 @@ minetest.register_abm({
end,
})
+-- To get Moretrees to generate its own jungle trees among the default mapgen
+-- we need our own copy of that node, which moretrees will match against.
+
+local jungle_tree = moretrees.clone_node("default:jungletree")
+minetest.register_node("moretrees:jungletree_trunk", jungle_tree)
+
-- For compatibility with old nodes, recently-changed nodes, and default nodes
minetest.register_alias("technic:rubber_tree_full", "moretrees:rubber_tree_trunk")
@@ -411,7 +417,6 @@ minetest.register_alias("conifers:sapling", "moretrees:fir_sapling")
minetest.register_alias("moretrees:jungletree_sapling", "default:junglesapling")
minetest.register_alias("moretrees:jungletree_trunk_sideways", "moreblocks:horizontal_jungle_tree")
-minetest.register_alias("moretrees:jungletree_trunk", "default:jungletree")
minetest.register_alias("moretrees:jungletree_planks", "default:junglewood")
minetest.register_alias("moretrees:jungletree_leaves_green", "default:jungletree_leaves")