From e5fd6e0192bcd0914ab303efc5585e0d5a033b65 Mon Sep 17 00:00:00 2001 From: Ombridride Date: Mon, 8 Dec 2014 19:12:56 +0100 Subject: [PATCH] Add 3D super_apple MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit in the mod « maptools », like in the mod « riesenpilz » --- mods/maptools/init.lua | 19 ++++++++++++++---- .../textures/maptools_super_apple_bottom.png | Bin 0 -> 350 bytes .../textures/maptools_super_apple_side.png | Bin 0 -> 360 bytes .../textures/maptools_super_apple_top.png | Bin 0 -> 444 bytes 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 mods/riesenpilz/textures/maptools_super_apple_bottom.png create mode 100644 mods/riesenpilz/textures/maptools_super_apple_side.png create mode 100644 mods/riesenpilz/textures/maptools_super_apple_top.png diff --git a/mods/maptools/init.lua b/mods/maptools/init.lua index 0acad937..9901af29 100644 --- a/mods/maptools/init.lua +++ b/mods/maptools/init.lua @@ -429,16 +429,26 @@ minetest.register_node("maptools:superapple", { description = S("Super Apple"), range = 12, stack_max = 99, - drawtype = "plantlike", + drawtype = "nodebox", visual_scale = 1.0, - tiles = {"maptools_superapple.png"}, + tiles = {"maptools_super_apple_top.png","maptools_super_apple_bottom.png","maptools_super_apple_side.png"}, inventory_image = "maptools_superapple.png", paramtype = "light", sunlight_propagates = true, walkable = false, - selection_box = { + visual_scale = tmp.visual_scale, + node_box = { type = "fixed", - fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2} + fixed = { + {-3/16, -7/16, -3/16, 3/16, 1/16, 3/16}, + {-4/16, -6/16, -3/16, 4/16, 0, 3/16}, + {-3/16, -6/16, -4/16, 3/16, 0, 4/16}, + {-1/32, 1/16, -1/32, 1/32, 4/16, 1/32}, + {-1/16, 1.6/16, 0, 1/16, 1.8/16, 1/16}, + {-2/16, 1.4/16, 1/16, 1/16, 1.6/16, 2/16}, + {-2/16, 1.2/16, 2/16, 0, 1.4/16, 3/16}, + {-1.5/16, 1/16, .5/16, 0.5/16, 1.2/16, 2.5/16}, + } }, is_ground_content = true, groups = {fleshy = 3, dig_immediate = 3, not_in_creative_inventory = 0, flammable = 2, leafdecay = 3, leafdecay_drop = 1}, @@ -450,6 +460,7 @@ minetest.register_node("maptools:superapple", { end end, }) + -- Items minetest.register_craftitem("maptools:copper_coin", { diff --git a/mods/riesenpilz/textures/maptools_super_apple_bottom.png b/mods/riesenpilz/textures/maptools_super_apple_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..46495124e13385547cfe33a68780d581b2602a9c GIT binary patch literal 350 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPq4~Gzw>HOxy>wrS9JzX3_EKWb2xZ8`_QKEJK&-6R8 zH(3qe9diZm%Opnff5_x)8=mPC6vyAptcP*Q`zRh>xi-UVIE9V?Ie585x!Tm~y&NtkY z*0`zQD{}47=hH^ZczlJK7m3C&|B!sqwP}SWH{-pJd40v&eg-mI9xP+rqI3VA!@RXW tj;-e2Q=H&qvFhT&nu<$v|G)pm&^Osl@A)b%V6ZSSc)I$ztaD0e0ssK*ks$y8 literal 0 HcmV?d00001 diff --git a/mods/riesenpilz/textures/maptools_super_apple_side.png b/mods/riesenpilz/textures/maptools_super_apple_side.png new file mode 100644 index 0000000000000000000000000000000000000000..f10846bf46e355eda2af240d800f7bb72b33878e GIT binary patch literal 360 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPq4~Gzwp6D|!C!o+*PZ!4!i_=#p+xi`L5NO>mxt{k_ zzv`n7q0WxBwl3uYag}opCu@sXr1%6>Ws5jFlw1^C8E>wco^-f>>$FrAskrUdpZ7}c zy?SW>^ecYhJI*~>n!a`I^O|Xe8zr{?nz8LsRj}akOBO$a*Gfw;YwbUou==K{pQzls z11<)ZpT1ANydi$pgA$IH0@M5_s1#HPB(6>U%JchpsoDvLtA}r9wC7x5zRCJh@Z_Z9 zzo#eMR%ljf%h6}rmuT?dTCXGv+w5?MOIAHhUV$YB74?Vxe{h=KWzV(?25B#b?>hh{3Cb+saxH$7MJp%yK5Q1G91JI0z z(hU*QQ=rwZ0I)S!V&AV%R{{4Uc?hNE6lBX`u>mH$J07c)0WY)9A2BB$2vP;y0RTH# z;*GYG;WfQ303%24fgqe01%^p!pB|;C+q+KUb~nRIGk>;|?$KvNf!x#Zz9Tasop#^* mT+_0d9~{ldG*nPfQ1}E$pH+9+%AKnK0000