From aedbcf5fdec846b076f416b1e0fd62cd05a7788d Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 29 Jun 2013 01:38:37 -0400 Subject: [PATCH] Add decorative window-unit air conditioner also, renamed nodes.lua -> misc_nodes.lua --- init.lua | 2 +- nodes.lua => misc_nodes.lua | 24 ++++++++++++++++++++++++ textures/homedecor_ac_back.png | Bin 0 -> 168 bytes textures/homedecor_ac_front.png | Bin 0 -> 249 bytes textures/homedecor_ac_sides.png | Bin 0 -> 162 bytes textures/homedecor_ac_tb.png | Bin 0 -> 118 bytes 6 files changed, 25 insertions(+), 1 deletion(-) rename nodes.lua => misc_nodes.lua (90%) create mode 100644 textures/homedecor_ac_back.png create mode 100644 textures/homedecor_ac_front.png create mode 100644 textures/homedecor_ac_sides.png create mode 100644 textures/homedecor_ac_tb.png diff --git a/init.lua b/init.lua index 4605cb37..c3711497 100644 --- a/init.lua +++ b/init.lua @@ -69,7 +69,7 @@ else homedecor_expect_infinite_stacks = true end -dofile(minetest.get_modpath("homedecor").."/nodes.lua") -- the catch-all for all misc nodes +dofile(minetest.get_modpath("homedecor").."/misc_nodes.lua") -- the catch-all for all misc nodes dofile(minetest.get_modpath("homedecor").."/tables.lua") dofile(minetest.get_modpath("homedecor").."/electronics.lua") dofile(minetest.get_modpath("homedecor").."/shutters.lua") diff --git a/nodes.lua b/misc_nodes.lua similarity index 90% rename from nodes.lua rename to misc_nodes.lua index 0b0411c8..17dd36d6 100644 --- a/nodes.lua +++ b/misc_nodes.lua @@ -226,3 +226,27 @@ minetest.register_node("homedecor:curtain_"..color, { end +minetest.register_node('homedecor:air_conditioner', { + drawtype = "nodebox", + description = S("Air Conditioner"), + tiles = { 'homedecor_ac_tb.png', + 'homedecor_ac_tb.png', + 'homedecor_ac_sides.png', + 'homedecor_ac_sides.png', + 'homedecor_ac_back.png', + 'homedecor_ac_front.png'}, + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + groups = { snappy = 3 }, + sounds = default.node_sound_leaves_defaults(), + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0.124, 0.5 }, -- off by just a tad to force the adjoining faces to be drawn. + {-0.5, 0.125, -0.5, 0.5, 0.5, 0.5 }, + } + }, + selection_box = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 } +}) diff --git a/textures/homedecor_ac_back.png b/textures/homedecor_ac_back.png new file mode 100644 index 0000000000000000000000000000000000000000..3c5fb3ad4181b40ced81f207ced1aa3bf5cca5a8 GIT binary patch literal 168 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%``JOJ0Ar`0KPB0W|P~c&CFOj|P z(0`4ein2Bh{03h(mQHE#N`7djsdv-oP?W2|!Kk3OyOl4j2tD$JNieqRoX>f$NwwthHRs`DzJikXJ#&oB7&sIaj&VG{v-s8C_Jd0MA8<1*o3do#F5JYEN3<<&DDw+^}gU?3QAo&jnri!$Nsy#tMIF241h#RwFJFl}t&N1Uec}^64 zcLflWbIjss!5oL~cjAajL=^k+WB2rgXgObt+lZK%LkPDLbX|uegn*`LptVNd_t9C` zHLSI70Pp=$;+a`%y_&KtgAf8`SuQ8c^UTvUU5ae2g_II$nnEcBW6Y9Z7zSLKQc6@+ z1*OyqO@1k@C<^S;3Ov;R0o1lFd+%?V$8p39@3MlB&)@9A00000NkvXXu0mjfk?m)k literal 0 HcmV?d00001 diff --git a/textures/homedecor_ac_sides.png b/textures/homedecor_ac_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..a4a4cc5fd91de98f55b6f9c2ecde54a6b8f70ded GIT binary patch literal 162 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`nVv3=Ar`0KPOug_puoXe*|+uk ze(~cQ4ohn2c+57Ol(NNhVy?W7e8-N<%u5*(?@BwibX3n`eYdgX%%wA23>S}hZ>x6t zG3WO2xeo8|hL&bBr!8Bv>Pl3!&EWIhqBi0;ftE6O My85}Sb4q9e062p^CIA2c literal 0 HcmV?d00001 diff --git a/textures/homedecor_ac_tb.png b/textures/homedecor_ac_tb.png new file mode 100644 index 0000000000000000000000000000000000000000..74126f7a1b266cacf416f17ae5396df63673939e GIT binary patch literal 118 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`ww^AIAr`0Ko>?e(z=4O^@#*ou z=F5$EY?T?CS(Y%{fBkrS`R;hn87@MKoS~*nIgcM~Vik*cpzm?$TgEw`n%&7#dh6m= R9|Ri2;OXk;vd$@?2>`5%Ce8o= literal 0 HcmV?d00001