From 751a32272731e4db9dd2b7057309e6cfe94bdca5 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 27 Jun 2014 19:12:21 -0400 Subject: [PATCH] better textures for fishtank, add lighted-up version --- homedecor/misc-nodes.lua | 43 ++++++++++++++++++ .../textures/homedecor_fishtank_back.png | Bin 205 -> 351 bytes .../homedecor_fishtank_back_lighted.png | Bin 0 -> 496 bytes .../textures/homedecor_fishtank_front.png | Bin 205 -> 354 bytes .../homedecor_fishtank_front_lighted.png | Bin 0 -> 504 bytes .../textures/homedecor_fishtank_left.png | Bin 182 -> 292 bytes .../homedecor_fishtank_left_lighted.png | Bin 0 -> 422 bytes .../textures/homedecor_fishtank_right.png | Bin 191 -> 289 bytes .../homedecor_fishtank_right_lighted.png | Bin 0 -> 425 bytes 9 files changed, 43 insertions(+) create mode 100644 homedecor/textures/homedecor_fishtank_back_lighted.png create mode 100644 homedecor/textures/homedecor_fishtank_front_lighted.png create mode 100644 homedecor/textures/homedecor_fishtank_left_lighted.png create mode 100644 homedecor/textures/homedecor_fishtank_right_lighted.png diff --git a/homedecor/misc-nodes.lua b/homedecor/misc-nodes.lua index bbf24d5..b2f90b0 100644 --- a/homedecor/misc-nodes.lua +++ b/homedecor/misc-nodes.lua @@ -360,6 +360,49 @@ minetest.register_node("homedecor:fishtank", { sunlight_propagates = true, groups = {cracky=3,oddly_breakable_by_hand=3}, sounds = default.node_sound_glass_defaults(), + on_rightclick = function(pos, node, clicker) + fdir = minetest.get_node(pos).param2 + minetest.add_node(pos, {name = "homedecor:fishtank_lighted", param2 = fdir}) + end +}) + +minetest.register_node("homedecor:fishtank_lighted", { + drawtype = "nodebox", + description = "Fishtank", + tiles = { + "homedecor_fishtank_top.png", + "homedecor_fishtank_bottom.png", + "homedecor_fishtank_right_lighted.png", + "homedecor_fishtank_left_lighted.png", + "homedecor_fishtank_back_lighted.png", + "homedecor_fishtank_front_lighted.png" + }, + paramtype = "light", + light_source = LIGHT_MAX-4, + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.375, 0.5, -0.4375, 0.375}, + {-0.4375, -0.4375, -0.3125, 0.4375, 0.1875, 0.3125}, + {-0.4375, 0.1875, -0.1875, 0.4375, 0.25, 0.1875}, + {-0.1875, 0.0625, 0.0625, 0.1875, 0.25, 0.375}, + { 0.125, -0.5, 0.25, 0.1875, 0.1875, 0.375}, + {-0.375, 0.25, -0.125, 0.375, 0.3125, 0.125}, + } + }, + use_texture_alpha = true, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.375, 0.5, 0.3125, 0.375 } + }, + sunlight_propagates = true, + groups = {cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), + on_rightclick = function(pos, node, clicker) + fdir = minetest.get_node(pos).param2 + minetest.add_node(pos, {name = "homedecor:fishtank", param2 = fdir}) + end }) minetest.register_node('homedecor:cardboard_box', { diff --git a/homedecor/textures/homedecor_fishtank_back.png b/homedecor/textures/homedecor_fishtank_back.png index d88a58ccb06dca408c397bc14e0783950a7daa24..14bfaa6d173870cb9a225cd59bd4cb89369e2221 100644 GIT binary patch delta 199 zcmV;&067260p9|UBLV>?ktKnDj^c%f4BDdi@3L_H`wvf73_rMeSf4#*;kb8)h5POY z1^zmYvL7(H{|tgVm(7!*9U8D2jB&wS^?8$MW4{!d9X0sxmNRFoMnBOL$$002ovPDHLkV1kBv BS62W4 delta 52 zcmcc5be3^~G84m;iK>n2enk=r*-EEbckm=Ga*O-n-^s`@Wv<$4^_g5T3_#%N>gTe~ HDWM4f(3KGa diff --git a/homedecor/textures/homedecor_fishtank_back_lighted.png b/homedecor/textures/homedecor_fishtank_back_lighted.png new file mode 100644 index 0000000000000000000000000000000000000000..70e4a90db614c33ad16f51673d4f16bd39718486 GIT binary patch literal 496 zcmVdHp4doJ1uj<;b!3{`vex2CZ9ZmBdD2b2AvrMMKZONoTK0GyS4l6Bj*H>d`t?%Q6L00H6sMGiGix& zk&+YBtj{nFR&s(MfMG^11~o%fCj{OrFWW~IfJe`+oC1u7-o%j`fSHj~XSJRo@Luh~ z)45+6vW^MBV9WqT8Z*uls2Li}M8V~+(lnUm=pyiDp^DttF`jy!>H2lMYZ0^(#*>4`e|VhY_fn3Af+6IyYbAsw^98=a-$A#xV*Bkvn7{x zBc8U|*=l*NR=Hl^;L@vW9MD=kk$P<$;nU_eQ%MVe`E|i|fi0N2nf1OU8P$)?9hPpd m@-?wi@8j`wvC8%@pXoQKYvON6ba-?C0000_ktKb9?>W(4_$VUA$?^8{Z)DAXSXh|8{1s+@@s@|<$NfkD z`33&}Qc(W;osr@He+C8yhQG|rh=imu_1u4kOAHL3UjF_oQ>We5dag^WXn0 zOb>QkV_;xlV0iodKb)3!)@FKs`ab(l1`alEJuSEk{!@~f04m33HRgLMMF0Q*07*qo IM6N<$g6LyrmH+?% delta 56 zcmaFFbe3^~G84m;iK?~Q{TlfRyv#|a$vYZEdMjcbvf_UDcQP`}J*@F{N_C|x0}yz+ L`njxgN@xNAGU^kp diff --git a/homedecor/textures/homedecor_fishtank_front_lighted.png b/homedecor/textures/homedecor_fishtank_front_lighted.png new file mode 100644 index 0000000000000000000000000000000000000000..fe2b5222226b419a5ab3db9b6b23c10e4419b378 GIT binary patch literal 504 zcmVry~`h)oSr? z)VtlTL;yH;?#B9b3=*Rv2IW)?szIP400=-pLY$72jM*GHJMUgUiwFQDVeS-zkOWBv zS5XmxlmwD=CsKBrJF+Z1)1Ztg;o*-8N$0~7$vOG_ym zQZ_!m@?d=e7#7Kgql{u?J}feGwsD`ca*(pql@e4bQXcu?rTcvdAcY73r<0fOd}vO< zw=N#)R{%2yU1&JOWn=?`|+hHGEBr_Ry71NKuu0)T}e6<}j=v5rk(>F8_QdmPw& ziG}(?)IlGZYYK{D8P=59S1;b}Y8=_0b~jW$KK(pZrGU4ka`G5H-R=Zq)GyE80{{j+ uR_oG<745xQn<-G6-f?)jddmEl&-4q7fcWBg@AJg~0000bS(f#J(99@Zc1LL6@{ zKW7wC=KCeW@$M&11J1qF7UyF9`HN4Kf#IJz3-g@`cbNbG|H;U!FUY_kB*^gTJp=bg z4_VwU_;}$4<3D{Zc6MDz`uhL>KZ8QKHUq;Yr~*9(h6kNjapr~p&k+Cs diff --git a/homedecor/textures/homedecor_fishtank_left_lighted.png b/homedecor/textures/homedecor_fishtank_left_lighted.png new file mode 100644 index 0000000000000000000000000000000000000000..0a0ee499768c7331801a12225dca0d5e79fa5600 GIT binary patch literal 422 zcmV;X0a^ZuP)3G*HTd|Dq39xL8z$s2OmQ0>Lxmg=p(o|2u@NEA3&VkoO}WYcM+)|MT*eD z7DZ7UY`>cvht}F^zYcER>4qdf&It+d@1H~^(&;pt<9t3Z9RZn4M!){KT+X#CE*6Ww zAhG74Z*uK19t*Iz;3OUkBya)|ff?b|7W;dxQ7JnT?~={MK=*4vDs)W)KAdh;u?ULYiEAHF#|$v;t~L zAwh9~lkfJ6gVmCnLDf1bAdE_Ll-=c{5dhdb+bo@DS4yP9jMPpRYJ)_J%rI0E1lfLH zekgDfxLWhh>G}f!yjOeTABlmkr`&@Kjwh>wUC)(Bz-4)QxI12{CWiotQ QbN~PV07*qoM6N<$f(ekX@Bjb+ literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_fishtank_right.png b/homedecor/textures/homedecor_fishtank_right.png index 2e31f15f2b985b14ba9d7886d07cd2c43a2c7d1a..96d9c4740edb5ee8478c28f667770d40d4639e21 100644 GIT binary patch delta 151 zcmV;I0BHZe0ignrBmwA=C31fSo8bTd3=Dr5Ihh&Q|1&T!{KRWGiUD^%DDuC%_Jl>q zQj_iNb4G^G7p^hz8R-1~clYLR?hF6<|Nm!T;Ez;gV>p1z3wHcmLRQ*r4|ZH<5SCbP0 Hl+XkKFvJt` diff --git a/homedecor/textures/homedecor_fishtank_right_lighted.png b/homedecor/textures/homedecor_fishtank_right_lighted.png new file mode 100644 index 0000000000000000000000000000000000000000..983586d5b260ea8874b77ed715a22dd9485bfc13 GIT binary patch literal 425 zcmV;a0apHrP)^e_5FUGx`B7hU)P1%radput6%q1_2#t&t8Y8>PEGN?9k3vqo9Z`A2^MT=n?y T2|8DO00000NkvXXu0mjfg{Q<; literal 0 HcmV?d00001