Added alises for farming_plus rubber trees, added "empty" rubber tree trunk
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sat, 13 Apr 2013 17:58:35 +0000 (13:58 -0400)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sat, 13 Apr 2013 17:58:35 +0000 (13:58 -0400)
for technic (also a sideways version).

node_defs.lua
textures/moretrees_rubber_tree_trunk_empty.png [new file with mode: 0644]

index f0b18371d1f5d3ef070440b549ab2fd7a2505ab0..8f3249fcfef186d0bea24351456a4293166537e1 100644 (file)
@@ -206,10 +206,48 @@ table.insert(moretrees.avoidnodes, "moretrees:jungletree_trunk")
 table.insert(moretrees.avoidnodes, "moretrees:fir_trunk")
 table.insert(moretrees.avoidnodes, "default:tree")
 
+
+-- "empty" (tapped) rubber tree nodes
+
+minetest.register_node("moretrees:rubber_tree_trunk_empty", {
+       description = "Rubber Tree Trunk (Empty)",
+       tiles = {
+               "moretrees_rubber_tree_trunk_top.png",
+               "moretrees_rubber_tree_trunk_top.png",
+               "moretrees_rubber_tree_trunk_empty.png"
+       },
+       is_ground_content = true,
+       groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
+       sounds = default.node_sound_wood_defaults(),
+})
+
+minetest.register_node("moretrees:rubber_tree_trunk_empty_sideways", {
+       description = "Sideways Rubber Tree Trunk (Empty)",
+       tiles = {
+               "moretrees_rubber_tree_trunk_empty.png^[transformR90",
+               "moretrees_rubber_tree_trunk_empty.png^[transformR90",
+               "moretrees_rubber_tree_trunk_top.png",
+               "moretrees_rubber_tree_trunk_top.png",
+               "moretrees_rubber_tree_trunk_empty.png^[transformR90",
+               "moretrees_rubber_tree_trunk_empty.png^[transformR90"
+       },
+       is_ground_content = true,
+       groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
+       sounds = default.node_sound_wood_defaults(),
+       paramtype2 = "facedir",
+})
+
+
 -- For compatibility with old nodes and recently-changed nodes.
 
-minetest.register_alias("technic:rubber_tree_full", "moretrees:rubber_tree_trunk")
-minetest.register_alias("technic:rubber_leaves", "moretrees:rubber_tree_leaves")
+minetest.register_alias("technic:rubber_tree_full",      "moretrees:rubber_tree_trunk")
+minetest.register_alias("farming_plus:rubber_tree_full", "moretrees:rubber_tree_trunk")
+
+minetest.register_alias("technic:rubber_leaves",      "moretrees:rubber_tree_leaves")
+minetest.register_alias("farming_plus:rubber_leaves", "moretrees:rubber_tree_leaves")
+
+minetest.register_alias("farming_plus:rubber_sapling", "moretrees:rubber_tree_sapling")
+minetest.register_alias("technic:rubber_tree_sapling", "moretrees:rubber_tree_sapling")
 
 minetest.register_alias("moretrees:jungletree_trunk", "default:jungletree")
 minetest.register_alias("moretrees:jungletree_planks", "default:junglewood")
diff --git a/textures/moretrees_rubber_tree_trunk_empty.png b/textures/moretrees_rubber_tree_trunk_empty.png
new file mode 100644 (file)
index 0000000..a033f12
Binary files /dev/null and b/textures/moretrees_rubber_tree_trunk_empty.png differ