forked from nalc/homedecor_modpack
add decorative electrical outlet and light switch
This commit is contained in:
parent
1eb649ae51
commit
a7fdbe320c
@ -78,6 +78,8 @@ dofile(homedecor.modpath.."/laundry.lua")
|
|||||||
dofile(homedecor.modpath.."/furnaces.lua")
|
dofile(homedecor.modpath.."/furnaces.lua")
|
||||||
dofile(homedecor.modpath.."/nightstands.lua")
|
dofile(homedecor.modpath.."/nightstands.lua")
|
||||||
dofile(homedecor.modpath.."/clocks.lua")
|
dofile(homedecor.modpath.."/clocks.lua")
|
||||||
|
dofile(homedecor.modpath.."/misc-electrical.lua")
|
||||||
|
|
||||||
dofile(homedecor.modpath.."/paintings.lua")
|
dofile(homedecor.modpath.."/paintings.lua")
|
||||||
|
|
||||||
dofile(homedecor.modpath.."/crafts.lua")
|
dofile(homedecor.modpath.."/crafts.lua")
|
||||||
|
48
homedecor/misc-electrical.lua
Normal file
48
homedecor/misc-electrical.lua
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
minetest.register_node("homedecor:power_outlet", {
|
||||||
|
drawtype = "nodebox",
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
description = "Power Outlet",
|
||||||
|
tiles = {
|
||||||
|
"homedecor_outlet_edges.png",
|
||||||
|
"homedecor_outlet_edges.png",
|
||||||
|
"homedecor_outlet_edges.png",
|
||||||
|
"homedecor_outlet_edges.png",
|
||||||
|
"homedecor_outlet_back.png",
|
||||||
|
"homedecor_outlet_front.png"
|
||||||
|
},
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.125, -0.5, 0.4375, 0.125, -0.1875, 0.5},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
groups = {cracky=3},
|
||||||
|
sounds = default.node_sound_stone_defaults()
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:light_switch", {
|
||||||
|
drawtype = "nodebox",
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
description = "Light switch",
|
||||||
|
tiles = {
|
||||||
|
"homedecor_light_switch_edges.png",
|
||||||
|
"homedecor_light_switch_edges.png",
|
||||||
|
"homedecor_light_switch_edges.png",
|
||||||
|
"homedecor_light_switch_edges.png",
|
||||||
|
"homedecor_light_switch_back.png",
|
||||||
|
"homedecor_light_switch_front.png"
|
||||||
|
},
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.125, 0.1875, 0.4375, 0.125, 0.5, 0.5},
|
||||||
|
{-.03125, 0.375, 0.40625, 0.03125, 0.4375, 0.5},
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
groups = {cracky=3},
|
||||||
|
sounds = default.node_sound_stone_defaults()
|
||||||
|
})
|
||||||
|
|
BIN
homedecor/textures/homedecor_light_switch_back.png
Normal file
BIN
homedecor/textures/homedecor_light_switch_back.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 834 B |
BIN
homedecor/textures/homedecor_light_switch_edges.png
Normal file
BIN
homedecor/textures/homedecor_light_switch_edges.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 307 B |
BIN
homedecor/textures/homedecor_light_switch_front.png
Normal file
BIN
homedecor/textures/homedecor_light_switch_front.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 217 B |
BIN
homedecor/textures/homedecor_outlet_back.png
Normal file
BIN
homedecor/textures/homedecor_outlet_back.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 829 B |
BIN
homedecor/textures/homedecor_outlet_edges.png
Normal file
BIN
homedecor/textures/homedecor_outlet_edges.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 206 B |
BIN
homedecor/textures/homedecor_outlet_front.png
Normal file
BIN
homedecor/textures/homedecor_outlet_front.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 279 B |
Loading…
Reference in New Issue
Block a user