From ce59c7f1308d34576b03d091ce7f2a2df4557d7d Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 3 Oct 2012 18:53:17 -0400 Subject: [PATCH] added wall-mounted regular and thin glow lights in yellow and white. --- crafts.lua | 64 ++++++++++ lighting.lua | 112 ++++++++++++++++++ .../homedecor_glowlight_thick_white_sides.png | Bin 218 -> 277 bytes ...decor_glowlight_thick_white_wall_sides.png | Bin 0 -> 263 bytes ...homedecor_glowlight_thick_yellow_sides.png | Bin 252 -> 336 bytes ...ecor_glowlight_thick_yellow_wall_sides.png | Bin 0 -> 340 bytes .../homedecor_glowlight_thin_white_sides.png | Bin 186 -> 222 bytes ...edecor_glowlight_thin_white_wall_sides.png | Bin 0 -> 234 bytes .../homedecor_glowlight_thin_yellow_sides.png | Bin 206 -> 271 bytes ...decor_glowlight_thin_yellow_wall_sides.png | Bin 0 -> 278 bytes 10 files changed, 176 insertions(+) create mode 100644 textures/homedecor_glowlight_thick_white_wall_sides.png create mode 100644 textures/homedecor_glowlight_thick_yellow_wall_sides.png create mode 100644 textures/homedecor_glowlight_thin_white_wall_sides.png create mode 100644 textures/homedecor_glowlight_thin_yellow_wall_sides.png diff --git a/crafts.lua b/crafts.lua index 90508495..f6e80076 100644 --- a/crafts.lua +++ b/crafts.lua @@ -1094,6 +1094,22 @@ minetest.register_craft({ } }) +minetest.register_craft({ + type = "shapeless", + output = "homedecor:glowlight_thick_yellow_wall", + recipe = { + "homedecor:glowlight_thick_yellow", + } +}) + +minetest.register_craft({ + type = "shapeless", + output = "homedecor:glowlight_thick_yellow", + recipe = { + "homedecor:glowlight_thick_yellow_wall", + } +}) + minetest.register_craft({ output = "homedecor:glowlight_thin_yellow 6", recipe = { @@ -1101,6 +1117,22 @@ minetest.register_craft({ } }) +minetest.register_craft({ + type = "shapeless", + output = "homedecor:glowlight_thin_yellow_wall", + recipe = { + "homedecor:glowlight_thin_yellow", + } +}) + +minetest.register_craft({ + type = "shapeless", + output = "homedecor:glowlight_thin_yellow", + recipe = { + "homedecor:glowlight_thin_yellow_wall", + } +}) + minetest.register_craft({ output = "homedecor:glowlight_small_cube_yellow 8", recipe = { @@ -1145,6 +1177,22 @@ minetest.register_craft({ } }) +minetest.register_craft({ + type = "shapeless", + output = "homedecor:glowlight_thick_white_wall", + recipe = { + "homedecor:glowlight_thick_white", + } +}) + +minetest.register_craft({ + type = "shapeless", + output = "homedecor:glowlight_thick_white", + recipe = { + "homedecor:glowlight_thick_white_wall", + } +}) + minetest.register_craft({ output = "homedecor:glowlight_thin_white 6", recipe = { @@ -1152,6 +1200,22 @@ minetest.register_craft({ } }) +minetest.register_craft({ + type = "shapeless", + output = "homedecor:glowlight_thin_white_wall", + recipe = { + "homedecor:glowlight_thin_white", + } +}) + +minetest.register_craft({ + type = "shapeless", + output = "homedecor:glowlight_thin_white", + recipe = { + "homedecor:glowlight_thin_white_wall", + } +}) + minetest.register_craft({ output = "homedecor:glowlight_small_cube_white 8", recipe = { diff --git a/lighting.lua b/lighting.lua index fa8997f9..79f7c424 100644 --- a/lighting.lua +++ b/lighting.lua @@ -31,6 +31,34 @@ minetest.register_node('homedecor:glowlight_thick_yellow', { sounds = default.node_sound_leaves_defaults(), }) +minetest.register_node('homedecor:glowlight_thick_yellow_wall', { + description = "Yellow Glowlight (thick, on wall)", + drawtype = "nodebox", + tiles = { + 'homedecor_glowlight_thick_yellow_sides.png', + 'homedecor_glowlight_thick_yellow_sides.png', + 'homedecor_glowlight_thick_yellow_wall_sides.png', + 'homedecor_glowlight_thick_yellow_wall_sides.png', + 'homedecor_glowlight_yellow_tb.png', + 'homedecor_glowlight_yellow_tb.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 } + }, + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + groups = { snappy = 3 }, + light_source = LIGHT_MAX, + sounds = default.node_sound_leaves_defaults(), +}) + minetest.register_node('homedecor:glowlight_thin_yellow', { description = "Yellow Glowlight (thin)", drawtype = "nodebox", @@ -59,6 +87,34 @@ minetest.register_node('homedecor:glowlight_thin_yellow', { sounds = default.node_sound_leaves_defaults(), }) +minetest.register_node('homedecor:glowlight_thin_yellow_wall', { + description = "Yellow Glowlight (thin, on wall)", + drawtype = "nodebox", + tiles = { + 'homedecor_glowlight_thin_yellow_sides.png', + 'homedecor_glowlight_thin_yellow_sides.png', + 'homedecor_glowlight_thin_yellow_wall_sides.png', + 'homedecor_glowlight_thin_yellow_wall_sides.png', + 'homedecor_glowlight_yellow_tb.png', + 'homedecor_glowlight_yellow_tb.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, 0.25, 0.5, 0.5, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, 0.25, 0.5, 0.5, 0.5 } + }, + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + groups = { snappy = 3 }, + light_source = LIGHT_MAX-1, + sounds = default.node_sound_leaves_defaults(), +}) + minetest.register_node('homedecor:glowlight_small_cube_yellow', { description = "Yellow Glowlight (small cube)", drawtype = "nodebox", @@ -145,6 +201,34 @@ minetest.register_node('homedecor:glowlight_thick_white', { sounds = default.node_sound_leaves_defaults(), }) +minetest.register_node('homedecor:glowlight_thick_white_wall', { + description = "White Glowlight (thick, on wall)", + drawtype = "nodebox", + tiles = { + 'homedecor_glowlight_thick_white_sides.png', + 'homedecor_glowlight_thick_white_sides.png', + 'homedecor_glowlight_thick_white_wall_sides.png', + 'homedecor_glowlight_thick_white_wall_sides.png', + 'homedecor_glowlight_white_tb.png', + 'homedecor_glowlight_white_tb.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 } + }, + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + groups = { snappy = 3 }, + light_source = LIGHT_MAX, + sounds = default.node_sound_leaves_defaults(), +}) + minetest.register_node('homedecor:glowlight_thin_white', { description = "White Glowlight (thin)", drawtype = "nodebox", @@ -173,6 +257,34 @@ minetest.register_node('homedecor:glowlight_thin_white', { sounds = default.node_sound_leaves_defaults(), }) +minetest.register_node('homedecor:glowlight_thin_white_wall', { + description = "White Glowlight (thin, on wall)", + drawtype = "nodebox", + tiles = { + 'homedecor_glowlight_thin_white_sides.png', + 'homedecor_glowlight_thin_white_sides.png', + 'homedecor_glowlight_thin_white_wall_sides.png', + 'homedecor_glowlight_thin_white_wall_sides.png', + 'homedecor_glowlight_white_tb.png', + 'homedecor_glowlight_white_tb.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, 0.25, 0.5, 0.5, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, 0.25, 0.5, 0.5, 0.5 } + }, + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + groups = { snappy = 3 }, + light_source = LIGHT_MAX-1, + sounds = default.node_sound_leaves_defaults(), +}) + minetest.register_node('homedecor:glowlight_small_cube_white', { description = "White Glowlight (small cube)", drawtype = "nodebox", diff --git a/textures/homedecor_glowlight_thick_white_sides.png b/textures/homedecor_glowlight_thick_white_sides.png index b3ed7966432679a2d89d3bbbc391f5fa1e70dbf7..e6578342894b57d9b0192d9fb6df048cd01823e8 100644 GIT binary patch delta 220 zcmV<203-j}0hI!fL4N}lBsSO7YDNG60JKR&K~yNul~PL%g+K^{4i|9a{m-W{-T>aB zrom6llLZ+j1=^YVx~}#m!pxRs`4c_QbM)HXmCdZGlusMX41l`}>h8j2rt;A+#&CB4 z?CkS06F_EaL;x6LbabcG(OeRo&3M^BGyvcCUF^FIEs=CaNL8Fz_8y+AN|#Yp+qS*4 zV$RHInnL_2ODg+UsHdtzC#q-9;|5L)T?x&y{~hHX&w813(S3JETjoO9xh8h|mzA>Dg#^-VGzz}`Fk(Evaa$wWye=kDouz|2TWie#PV z?vmU+M>I)hR_VG@rK6<9?9i8npe1pwmD|@dvLsIr@#7PIN*Z{nf8azH>hDMH&nYtP P00000NkvXXu0mjfzaL1x diff --git a/textures/homedecor_glowlight_thick_white_wall_sides.png b/textures/homedecor_glowlight_thick_white_wall_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..9e67c0c618247d0781ebe1657deb0c12554b2dfa GIT binary patch literal 263 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#4i~eSijLN{$u>ZtWu7jMAsXjvCtc)aQRHxu+@vb;dwss|8-^YHdNPaT;@^Bo zb7W2CiE5t7$Y5Y>9DFsVw&O+ZeFxj9Y=&oZR%t0IJ#u(Ice8YZ^d9FYXY6~vd)gGL zerZnW1oTJl?qB-{DiuN*$Z*S6+el1h#C5$WmE|Gk-DEkkDfj4e@ruf71fn8DN4&t;uc GLK6VxtzOvx literal 0 HcmV?d00001 diff --git a/textures/homedecor_glowlight_thick_yellow_sides.png b/textures/homedecor_glowlight_thick_yellow_sides.png index 8f98c76e803743cb8e021783c81f994890e91457..424a3195310a9b82ce8f73363e7d8f2aa3f2489d 100644 GIT binary patch delta 280 zcmV+z0q6ew0nh@FL4N}lB?9kzud)CD0PjgeK~yNumC`$I!!Qtp;g2?DIY|+pG51L2 z8{`7HV$xXFlPQQbXaq1|6)eR4IWxPPN;!Mx%iy#5lSq^}%YFShH${8)?AS&1#>UFZ zc2h_kIMCBI%&mH2WM-~F$2-RWDw6_O7?~Kju*)1d@xqYN;w@bDA$5x}MT`p{RpB?h z))?J=?j?YMu`2vTv+Fc+jG{CFYV>PnV_;#3-u<859MhPq*DYo_KHQE%$<1QbyZQ0{ eRp5yY{{zHJX%U-CCf(rx0000H delta 195 zcmV;!06hQD0{j7xL4N@Z11&tv|Kb1u0GmlfK~yNu?a@0@#6S#$;cx8m0}}SaM0*f! z3D{m+1TJk28P4fIfvSJCR4Ng7S5(1!(FCmZaImv;JQE5dBNIcz zJl!h`8`}vCyfG(mG9`fr3oBoI(p6?|yf8CT>2u?qjg@bvb3BpC#EsVk#s+w>u_Q1s xm57fVJmmP&9KC1G8MT&(xb%n4Mg0SR(GOb3FtPfiQQ!ao002ovPDHLkV1jj^R-XU> diff --git a/textures/homedecor_glowlight_thick_yellow_wall_sides.png b/textures/homedecor_glowlight_thick_yellow_wall_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..65da3293b66beb494cabd796d21ac0629661ae42 GIT binary patch literal 340 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#4i~eSif-)2#jAiqpFLe1Lp09kUh>X6Y{27s@p1hdzFSAjZUu^6%w5*3))yNs z%MsF}(4@feWVeXs9<8ODkFRqe|M^1FkTlFPCPgYr3SXNfukB7&^-$8h7dZ4?vzx)U82Nrq46V0xazSCkBHT7Mx zc@dY+>Uf5)jH^#inYi}T`7{OD8A@J-_is9Xu26IhnR4T2GIv6Km16t08=bvVzc$!1 zM=zOv;GIrkp8x%*SGqcXHX0eTe`eAMo6Wqh=<%^rbtduevJ#&i6X^Y0^z>8|Pq^%x j*w*^C4`q@G`UmXI7o=FrMf}_j^ge^9tDnm{r-UW|sJnw@ literal 0 HcmV?d00001 diff --git a/textures/homedecor_glowlight_thin_white_sides.png b/textures/homedecor_glowlight_thin_white_sides.png index 4b41d05f1b967d0d18fbf83a9e498956fc7538fe..8389ebdb2de6c1ee6e9e7412ddcf2dbbb9041772 100644 GIT binary patch delta 165 zcmV;W09yaL0p0|UQ0RHT`{xF6o2ln!V@R4RBJ8Di5|Rn{`3%p>N(**1mbtB T4C(8800000NkvXXu0mjf4bew5 delta 128 zcmV-`0Du490lEQ@L3sfdG$FLiHCq4x09i>yK~yNu?T*0>z%U2{v6T(je?+nYaUV#u zNRPMP-G`*iBq`}GlvBca!QH#Jebq;L igX{1F+Dm@nE5ZSlxk~=V4a@}q0000{XE z)7O>#4i~eSif-)2#jAiqot`d^AsXj7kGcWKY=@AuRftYXMYC{Z&A+L9g`>T+v==RAY;3-6`t zzOYKjo^hb_$@PMH!4H1M#OmMvHhp25+?tPmv1iYGpKA2EKzou^-Mn;B_diuj@sT3JJx|H*%s=p#6kbW~Wt&UC zf48!1MIrIVkrPKs(<$$Cs!WW$6nY+cXiUG;DVk0*6BmXQ@lMw~y=i#;2DPe38+H#i QVgLXD07*qoM6N<$f>bhMEdT%j delta 149 zcmV;G0BZk_0?q-DL4N@Z11US9JNp0t0BuP`K~yNu?anb0f-o3F;V&V`cw4=Qt=F_t zB*1ThnX#poSMS^16mh4gr_j-nd{XE z)7O>#4i~eSir$eOpFoke_JDW-R=e&+U`si=D=-YHV!FvX)xgT29!$A;j@Kf3nKwGY;$iUE-GgDXw7R Wc&O;geSV+^7(8A5T-G@yGywp%4`THI literal 0 HcmV?d00001