mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
Add decorative window-unit air conditioner
also, renamed nodes.lua -> misc_nodes.lua
This commit is contained in:
parent
dbf3cb27f4
commit
aedbcf5fde
2
init.lua
2
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")
|
||||
|
@ -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 }
|
||||
})
|
BIN
textures/homedecor_ac_back.png
Normal file
BIN
textures/homedecor_ac_back.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 168 B |
BIN
textures/homedecor_ac_front.png
Normal file
BIN
textures/homedecor_ac_front.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 249 B |
BIN
textures/homedecor_ac_sides.png
Normal file
BIN
textures/homedecor_ac_sides.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 162 B |
BIN
textures/homedecor_ac_tb.png
Normal file
BIN
textures/homedecor_ac_tb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 118 B |
Loading…
Reference in New Issue
Block a user