From 5f1d48c40d85c907fab473deec3c7dfe1aa54037 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sun, 27 Jul 2014 15:15:47 -0400 Subject: [PATCH] add wooden lattice lamps --- homedecor/crafts.lua | 22 ++++++++++- homedecor/lighting.lua | 37 ++++++++++++++++++ .../homedecor_lattice_lantern_large.png | Bin 0 -> 735 bytes .../homedecor_lattice_lantern_small_sides.png | Bin 0 -> 435 bytes .../homedecor_lattice_lantern_small_tb.png | Bin 0 -> 438 bytes 5 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 homedecor/textures/homedecor_lattice_lantern_large.png create mode 100644 homedecor/textures/homedecor_lattice_lantern_small_sides.png create mode 100644 homedecor/textures/homedecor_lattice_lantern_small_tb.png diff --git a/homedecor/crafts.lua b/homedecor/crafts.lua index 5e591abb..0b006241 100644 --- a/homedecor/crafts.lua +++ b/homedecor/crafts.lua @@ -1193,7 +1193,7 @@ minetest.register_craft({ } }) --- Lighting +------- Lighting -- candles @@ -1214,7 +1214,25 @@ minetest.register_craft({ } }) --- yellow +-- wood-lattice lamps + +minetest.register_craft( { + output = "homedecor:lattice_lantern_large 2", + recipe = { + { "dye:black", "dye:yellow", "dye:black" }, + { "group:stick", "building_blocks:woodglass", "group:stick" }, + { "group:stick", "homedecor:power_crystal", "group:stick" } + }, +}) + +minetest.register_craft( { + output = "homedecor:lattice_lantern_small 8", + recipe = { + { "homedecor:lattice_lantern_large" }, + }, +}) + +-- yellow glowlights minetest.register_craft({ output = "homedecor:glowlight_half_yellow 6", diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua index 54ed039c..9d03e50d 100644 --- a/homedecor/lighting.lua +++ b/homedecor/lighting.lua @@ -319,3 +319,40 @@ minetest.register_node('homedecor:oil_lamp', { sounds = default.node_sound_wood_defaults(), }) +minetest.register_node('homedecor:lattice_lantern_large', { + description = S("Lattice lantern (large)"), + tiles = { 'homedecor_lattice_lantern_large.png' }, + sunlight_propagates = false, + paramtype = "light", + walkable = true, + groups = { snappy = 3 }, + light_source = LIGHT_MAX, + sounds = default.node_sound_wood_defaults(), +}) + +minetest.register_node('homedecor:lattice_lantern_small', { + description = S("Lattice lantern (small)"), + drawtype = "nodebox", + tiles = { + 'homedecor_lattice_lantern_small_tb.png', + 'homedecor_lattice_lantern_small_tb.png', + 'homedecor_lattice_lantern_small_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + node_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + groups = { snappy = 3 }, + light_source = LIGHT_MAX-1, + sounds = default.node_sound_wood_defaults(), + on_place = minetest.rotate_node +}) + diff --git a/homedecor/textures/homedecor_lattice_lantern_large.png b/homedecor/textures/homedecor_lattice_lantern_large.png new file mode 100644 index 0000000000000000000000000000000000000000..c5a8b6085234bc46bc41f3ed6de683e07f3eeb0b GIT binary patch literal 735 zcmV<50wDc~P)Wd`5FJ*Zo&_nQp`nSyDYyf7$f3By-eFI{7Yz*!iWJ=ahJs&g-t6=9c#~AI6qzvC zZ|2RLu{~QX7Ek-d@dqE$r89ecn9Wx{x7)+;eKh7PYd8CGE!N4%_MrXS*EcgWYs}2j z`DpF-@MG|F=`3BkVJ(BtSH^+4oxs!iI69F1P{FYo&FyAy>Dv4M>Dmu#@jHOQe(5~o z_VsOK%pLe#1Shh{H7x+=?<$(;Z= z?DyNrnP@kAyWdV3BU4N?TJM^3MygCG1Cih~=K#_H8*2hiWF^YY ziXF&091YDmN2}m$QwGAbA?pL&UWI`g?Qo)IOV_?ys$i-Kd%iHh^G`+yF8ep(K_Z*D zfP$Pynt)9;5NWNcNf#@_XG~g#;paBSL zstjRM28t>RJ0YB)oNI4qCZ@`e87LyJc0!uL1ow9BY|Hg7%ei(;E=N6UvObU<$5I6f z9?dFPZC)-!0r%rL6CQbr^Bhd5CIE&%wikK{z{@^BIcm3ufjZGdR2{4pRlBdPT=~a7 zfVY9%;Zzf~4mqWE4#00oQ+=SgM)9pTV4_;*L_1Ex$v%L4d)5&v)!{1s_qSf>oO9As z_%7fVOVJVKI;Cev_*fCaxhCY@F&@X~W3kws3f_i%wJz=v3SN2mW)A$;_zwfUEQAnV Rj7b0h002ovPDHLkV1nC$TbKX< literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_lattice_lantern_small_sides.png b/homedecor/textures/homedecor_lattice_lantern_small_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..4e6f4f6d6ba487f613924f74abde7adbc17c77f7 GIT binary patch literal 435 zcmV;k0ZjghP)c+X`@Wl0|Z$VVLpCD z3XzeKk&%&+@!zqyrcjn8gb<=A3L%6L*4kegP)aTCVz^wbQB@T%9s#)lbPdQYpj(pb z4v?>aZk@bl{pD(nyF*l#B`_YHvBnwe=xk2BL+$|6MS2_f=-p31ZUEglV~Y0aOkPhH zKKpwj*(4;OYx*f0zX0Y7mb6 z&U0tX&b$*L9rWZb4S}cUmr!WBC9mfpGH!{0o%zn|C#-=sgm*fJuv;6Em;h_&-lZws zGmHz+duS);xsB5BzzEPg?;VMemYsNcIT`N(xkFV|k9-9qzXI}n3~4&N0lG`u2e`@9 z?-7ZCDn9B1aWhInfM(3hJPSHhYa1a_2+{W3DBuP_x?eHNLF5eE!n&dlqhv-S}RNI0}MqHkvl#_ zDm7ukg#V7&cLr5eK`Eu?^SM$=DI)q2fwguvO5tL;LS5HDw+HkZa0ftd0B88zHGp{r zoB_-Ra0jtpELRvEqN=KZZXd{WAZvKXdl7MZ1AJ3P0OvFmoWBIm z0~rmnvLKi2%(jexhsUQ>XwIdw+Og-9RC)h g$MJ*-6aG9t0iMsLz+as)PXGV_07*qoM6N<$f-`-*E&u=k literal 0 HcmV?d00001