1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

Add decorative window-unit air conditioner

also, renamed nodes.lua -> misc_nodes.lua
This commit is contained in:
Vanessa Ezekowitz 2013-06-29 01:38:37 -04:00
parent dbf3cb27f4
commit aedbcf5fde
6 changed files with 25 additions and 1 deletions

View File

@ -69,7 +69,7 @@ else
homedecor_expect_infinite_stacks = true homedecor_expect_infinite_stacks = true
end 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").."/tables.lua")
dofile(minetest.get_modpath("homedecor").."/electronics.lua") dofile(minetest.get_modpath("homedecor").."/electronics.lua")
dofile(minetest.get_modpath("homedecor").."/shutters.lua") dofile(minetest.get_modpath("homedecor").."/shutters.lua")

View File

@ -226,3 +226,27 @@ minetest.register_node("homedecor:curtain_"..color, {
end 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 }
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 B