From 31cc722f50728930946ecfb4a76b68accf02d358 Mon Sep 17 00:00:00 2001 From: Glenn Engelbart Date: Sun, 20 Oct 2013 11:02:16 -0500 Subject: [PATCH] experimenting with larger young trees --- youngtrees/init.lua | 66 +++++++++++++++++++++++ youngtrees/textures/bamboo.png | Bin 0 -> 207 bytes youngtrees/textures/youngtree2branch.png | Bin 0 -> 247 bytes youngtrees/textures/youngtree2trunk.png | Bin 0 -> 1127 bytes 4 files changed, 66 insertions(+) create mode 100644 youngtrees/textures/bamboo.png create mode 100644 youngtrees/textures/youngtree2branch.png create mode 100644 youngtrees/textures/youngtree2trunk.png diff --git a/youngtrees/init.lua b/youngtrees/init.lua index 595c11d..6be7114 100644 --- a/youngtrees/init.lua +++ b/youngtrees/init.lua @@ -1,4 +1,70 @@ abstract_youngtrees = {} + + + + +minetest.register_node("youngtrees:bamboo", { + description = "youngtreeBamboo", + drawtype="nodebox", + tiles = {"bamboo.png"}, + inventory_image = "bamboo.png", + wield_image = "bamboo.png", +paramtype = "light", + walkable = false, + is_ground_content = true, +node_box = { + type = "fixed", + fixed = { + {-0.058251,-0.500000,-0.413681,0.066749,0.500000,-0.282500}, --NodeBox 1 + {-0.058251,-0.500000,-0.103123,0.066749,0.500000,0.038672}, --NodeBox 2 + {-0.058251,-0.500000,0.181227,0.066749,0.500000,0.342500}, --NodeBox 3 + } +}, + groups = {snappy=3,flammable=2}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_node("youngtrees:youngtree2_bottom", { + description = "youngtree2Bottom", + drawtype="nodebox", + tiles = {"youngtree2trunk.png"}, + inventory_image = "youngtree2trunk.png", + wield_image = "youngtree2trunk.png", +paramtype = "light", + walkable = false, + is_ground_content = true, +node_box = { + type = "fixed", + fixed = { + {0.375000,-0.500000,-0.500000,0.500000,0.500000,-0.375000}, --NodeBox 1 + } +}, + groups = {snappy=3,flammable=2}, + sounds = default.node_sound_leaves_defaults(), +}) + + +minetest.register_node("youngtrees:youngtree2_middle",{ + description = "youngtree2Middle", + drawtype="nodebox", + tiles = {"youngtree2branch.png"}, + inventory_image = "youngtree2branch.png", + wield_image = "youngtree2branch.png", + paramtype = "light", + walkable = false, + is_ground_content = true, + node_box = { + type = "fixed", + fixed = { + {0.125000,-0.500000,-0.500000,0.500000,-0.187500,-0.125000}, --NodeBox 1 + {-0.187500,-0.187500,-0.500000,0.500000,0.125000,0.250000}, --NodeBox 2 + {-0.500000,0.125000,-0.500000,0.500000,0.500000,0.500000}, --NodeBox 3 + } + }, + groups = {snappy=3,flammable=2}, + sounds = default.node_sound_leaves_defaults(), +}) + minetest.register_node("youngtrees:youngtree_top", { description = "youngtreeTop", drawtype = "plantlike", diff --git a/youngtrees/textures/bamboo.png b/youngtrees/textures/bamboo.png new file mode 100644 index 0000000000000000000000000000000000000000..2f02e3a3fdc5862e6f983b4a4e870fb8566e059b GIT binary patch literal 207 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucL8%hgh?3y^w370~qEv=}#LT=BJwMkFg)(D3 zQ$0gN_s>q|Kvj00E{-7<{>eKouV!@QUewazxFq|>{$r9&x0o$E9eH+oEm5@kk!X>z vW2cQ!6W>=Wp=Jp+Yr{z`ZFL&1oQw>a+ho=L`SBhEn#ADg>gTe~DWM4fE?hg{ literal 0 HcmV?d00001 diff --git a/youngtrees/textures/youngtree2branch.png b/youngtrees/textures/youngtree2branch.png new file mode 100644 index 0000000000000000000000000000000000000000..ce7e31062d59edbfae4ffa6f048f902051feb1b7 GIT binary patch literal 247 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucL8%hgh?3y^w370~qEv=}#LT=BJwMkFg)(D3 zQ$0gN_s>q|Kvij;E{-7<{!4oYIHsKz2OHt9h3 mX_k-rbc7n+r-ga%XS`AW!qBZ^ zjdNbOoQR@^Z=;26Ur9D_RX&%1Y;#*iY*apBNi)o?m3dxEe_%z4YgF34sE>PUmVj@N za#?X!Ky_F?Yg9swZ&hVWH;#5;dtgVNf^VjXa+7#sc3nwvSVLt^IelPEVM#fEU`BUg zOjSNBaa2BSSVvYtF=IzGYEnC1LNIbzLwQ?6k8f3LPdai|LTyq$oPB7vmVb0tL#~Q& z;J>KHs+GW>hk0I1nS5n%Rzq%4J8@M)d0a(vSVMebO?6sErh#Z>Nj7y+JEDYba#%ra zP&|ZYPlabub5=l-b6kLEREK9xjBZw)d}N}0UU*+ib67-tUP_U1ScYg%Yfm|fZCGte zGmvjsQ8y@TR6&MmRANdvc344lTuM$pFjYb_fM`|Fsf~qYOKed;n|WY!Qa*@iQk#2Y zd{a4CLo%d-XKqY3k#%B^aa?InJ%nUQgJDR5V@!u_T90;Mg=kTGVohvJH*Zxxa#KLG zl6!?{RA)^(k8oOKO*KO@Bym+grG#u)LNk|iT6|kWqJU>~RzXEFBSteNk8xV2eqp4D za&S*MlyFvAK`c@`DsxjkUPCdCa$R{|NqSsFRzNI)Uq_jFVofbvSZ7W;T0=0Mby$X6KzLh3hiOw_L@b+R!Juz8Wau(00amCwyuzQT~kLsA|DwN4FduO0KK=5bX5F6 zC^ID;6%Yym2>`#oj#WrQJ25XSBO4YE3