diff --git a/homedecor/init.lua b/homedecor/init.lua index 0f2fd253..aea782a5 100644 --- a/homedecor/init.lua +++ b/homedecor/init.lua @@ -78,6 +78,8 @@ dofile(homedecor.modpath.."/laundry.lua") dofile(homedecor.modpath.."/furnaces.lua") dofile(homedecor.modpath.."/nightstands.lua") dofile(homedecor.modpath.."/clocks.lua") +dofile(homedecor.modpath.."/misc-electrical.lua") + dofile(homedecor.modpath.."/paintings.lua") dofile(homedecor.modpath.."/crafts.lua") diff --git a/homedecor/misc-electrical.lua b/homedecor/misc-electrical.lua new file mode 100644 index 00000000..cab733ae --- /dev/null +++ b/homedecor/misc-electrical.lua @@ -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() +}) + diff --git a/homedecor/textures/homedecor_light_switch_back.png b/homedecor/textures/homedecor_light_switch_back.png new file mode 100644 index 00000000..8b2ca4c0 Binary files /dev/null and b/homedecor/textures/homedecor_light_switch_back.png differ diff --git a/homedecor/textures/homedecor_light_switch_edges.png b/homedecor/textures/homedecor_light_switch_edges.png new file mode 100644 index 00000000..071a990c Binary files /dev/null and b/homedecor/textures/homedecor_light_switch_edges.png differ diff --git a/homedecor/textures/homedecor_light_switch_front.png b/homedecor/textures/homedecor_light_switch_front.png new file mode 100644 index 00000000..6ea5b954 Binary files /dev/null and b/homedecor/textures/homedecor_light_switch_front.png differ diff --git a/homedecor/textures/homedecor_outlet_back.png b/homedecor/textures/homedecor_outlet_back.png new file mode 100644 index 00000000..d89967d8 Binary files /dev/null and b/homedecor/textures/homedecor_outlet_back.png differ diff --git a/homedecor/textures/homedecor_outlet_edges.png b/homedecor/textures/homedecor_outlet_edges.png new file mode 100644 index 00000000..bcfb8d2a Binary files /dev/null and b/homedecor/textures/homedecor_outlet_edges.png differ diff --git a/homedecor/textures/homedecor_outlet_front.png b/homedecor/textures/homedecor_outlet_front.png new file mode 100644 index 00000000..fee8b153 Binary files /dev/null and b/homedecor/textures/homedecor_outlet_front.png differ