From 015728049bb7172a728b3ebe6a7b2b47fcdbb6ed Mon Sep 17 00:00:00 2001 From: kilbith Date: Thu, 16 Oct 2014 09:22:58 +0200 Subject: [PATCH] Add wall lantern --- homedecor/lighting.lua | 20 ++++++++++++++++++ homedecor/textures/homedecor_wall_lantern.png | Bin 0 -> 875 bytes 2 files changed, 20 insertions(+) create mode 100644 homedecor/textures/homedecor_wall_lantern.png diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua index b310417..7cf9856 100644 --- a/homedecor/lighting.lua +++ b/homedecor/lighting.lua @@ -350,6 +350,26 @@ minetest.register_node('homedecor:oil_lamp', { sounds = default.node_sound_wood_defaults(), }) +minetest.register_node('homedecor:wall_lantern', { + description = S("Wall lantern"), + drawtype = "plantlike", + tiles = { 'homedecor_wall_lantern.png' }, + inventory_image = 'homedecor_wall_lantern.png', + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + selection_box = { + type = "fixed", + fixed = { + { -0.3, -0.5, -0.3, 0.3, 0.5, 0.3 }, + } + }, + groups = { snappy = 3 }, + light_source = LIGHT_MAX-4, + sounds = default.node_sound_wood_defaults(), +}) + minetest.register_node('homedecor:lattice_lantern_large', { description = S("Lattice lantern (large)"), tiles = { 'homedecor_lattice_lantern_large.png' }, diff --git a/homedecor/textures/homedecor_wall_lantern.png b/homedecor/textures/homedecor_wall_lantern.png new file mode 100644 index 0000000000000000000000000000000000000000..52405733f2d8dcc7a8058b8273957aa40f413a82 GIT binary patch literal 875 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabRA=0V4NM`6XH5!`gEWOBO@ad6B9EC zg8&N)5V5ebva++Yb8>KSadGi*bMx@<@B$GpFCQ;2Kak|(=Huhz2O@r6etv!dAQBJ| z6ci8=6ciE?5*88?0g}SPBErI=!h#|qBBDSfDk=sJ_cI?=(bLY-$TNduyvu5Akb)Er1 z9-f`~^vvvw7mnPyed^Ag(;r`!|9h3Q&>-+6C~iuE{DK)Ap4~_Tagw~FdgVk4u2f!a62k;~JnIPfr)e5R22v2@1RhMn**f z0Sa2Z{^pBU?wmV!qvm1;KGwc-ZMRNwaeeCPu{awrAuZ{M=Gg-a7A;(K=KSf?&6ipG z{7$V>IB?|5lQzA4-k^l{3wYU_7A@L#ZN{(01Gj{j)~wws5o@@HgLCRdejYBaE8!e` z6Sf{IXjV?nkzDK%f1M0 zZ(X~jadd|C!bVlQhQ!Q-@c8%{%4}SQIU64;t<8!FojFhK%!w6k%4U|8fBx3g-jMvb zMAI?O&CTW{E6bT)p5C*2K4>JQT)CD!zk4|EBIGVrike7?E+;dWp+GkCiCxvX