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 00000000..3c5fb3ad Binary files /dev/null and b/textures/homedecor_ac_back.png differ diff --git a/textures/homedecor_ac_front.png b/textures/homedecor_ac_front.png new file mode 100644 index 00000000..50674f50 Binary files /dev/null and b/textures/homedecor_ac_front.png differ diff --git a/textures/homedecor_ac_sides.png b/textures/homedecor_ac_sides.png new file mode 100644 index 00000000..a4a4cc5f Binary files /dev/null and b/textures/homedecor_ac_sides.png differ diff --git a/textures/homedecor_ac_tb.png b/textures/homedecor_ac_tb.png new file mode 100644 index 00000000..74126f7a Binary files /dev/null and b/textures/homedecor_ac_tb.png differ