From 7a7ee2d16868ae55988276e8db76c3e5b3d7d51d Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 13 Apr 2013 13:58:35 -0400 Subject: [PATCH] Added alises for farming_plus rubber trees, added "empty" rubber tree trunk for technic (also a sideways version). --- node_defs.lua | 42 +++++++++++++++++- .../moretrees_rubber_tree_trunk_empty.png | Bin 0 -> 947 bytes 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 textures/moretrees_rubber_tree_trunk_empty.png diff --git a/node_defs.lua b/node_defs.lua index f0b1837..8f3249f 100644 --- a/node_defs.lua +++ b/node_defs.lua @@ -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 index 0000000000000000000000000000000000000000..a033f1237f21515860f2bd1e13e0dc46d27019d1 GIT binary patch literal 947 zcmV;k15EshP)sh+f%?NR%a12r^O1 zo@7u>ve~lMOm26(?Y7^{UTDdS=h#!n6#W#u_s}Tqmg;^!IjA-`u3p@@UK1 z+_!Cnwe>nzrl(1pDnTschk|U*LJ?m5?eg6PD&;C7l<4ldhoqiFAfp=w-CO(Ev;QEj z?;?qi(%lk%5R=d~>|6%U5(xB^VW#Ij5(l?toXGDre7h~Sgc$NB8c$AE$7y2xr0O;u@2XRz}& z!~tuyb#9j%3=NM`EEc&rJ42zf1NDs~FY?v-Pl<(u+j5W=+VXjpmsgQGbcCJJX$CPt2)1ou=h8%OjPH6>*Eb-B&dxmhpFK#f z(81d35?@c9rMy%{8tEyB)s-48KPH#WFfiQB{QMofdWdF#Q+KhmDkAW>T?2rLodeAL zG*3@&Cu%xvQ!1~ZCRAiip;E4qu}m~eVyU`9I;*koz;g@^ZO8L{u77ih8$bU-v6v;B zG64{F0s)BEUpXwcv`ONT(O$9R-cGT7pj|vUJ}mxsYwkDk)Wd_KzhH^czM|N>dqgN* zY4tV3H1x^I1B~r@jGMEwgkgYbCeb8`(w$|T`X&vx$*Fgb^84H$BsB#^k!Uo1{sXlX VgEq^4VG;lU002ovPDHLkV1h8!w@&~7 literal 0 HcmV?d00001 -- 2.30.2