diff --git a/homedecor/init.lua b/homedecor/init.lua index 484f981..faec921 100644 --- a/homedecor/init.lua +++ b/homedecor/init.lua @@ -72,6 +72,9 @@ dofile(homedecor.modpath.."/fences.lua") dofile(homedecor.modpath.."/lighting.lua") dofile(homedecor.modpath.."/kitchen_cabinet.lua") dofile(homedecor.modpath.."/refrigerator.lua") + +dofile(homedecor.modpath.."/laundry.lua") + dofile(homedecor.modpath.."/furnaces.lua") dofile(homedecor.modpath.."/nightstands.lua") diff --git a/homedecor/laundry.lua b/homedecor/laundry.lua new file mode 100644 index 0000000..f26de99 --- /dev/null +++ b/homedecor/laundry.lua @@ -0,0 +1,56 @@ +-- laundry devices + +minetest.register_node("homedecor:washing_machine", { + description = "Washing Machine", + drawtype = "nodebox", + tiles = { + "homedecor_washing_machine_top.png", + "homedecor_washing_machine_bottom.png", + "homedecor_washing_machine_sides.png", + "homedecor_washing_machine_sides.png^[transformFX", + "homedecor_washing_machine_back.png", + "homedecor_washing_machine_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0.375, 0.375}, + {-0.5, -0.5, 0.3125, 0.5, 0.5, 0.5}, + } + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 } + }, + groups = { snappy = 3 }, +}) + +minetest.register_node("homedecor:dryer", { + description = "Tumble dryer", + drawtype = "nodebox", + tiles = { + "homedecor_dryer_top.png", + "homedecor_dryer_bottom.png", + "homedecor_dryer_sides.png", + "homedecor_dryer_sides.png^[transformFX", + "homedecor_dryer_back.png", + "homedecor_dryer_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0.375, 0.375}, + {-0.5, -0.5, 0.3125, 0.5, 0.5, 0.5}, + } + }, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 } + }, + groups = { snappy = 3 }, +}) + diff --git a/homedecor/textures/homedecor_dryer_back.png b/homedecor/textures/homedecor_dryer_back.png new file mode 100644 index 0000000..2a76711 Binary files /dev/null and b/homedecor/textures/homedecor_dryer_back.png differ diff --git a/homedecor/textures/homedecor_dryer_bottom.png b/homedecor/textures/homedecor_dryer_bottom.png new file mode 100644 index 0000000..25f7416 Binary files /dev/null and b/homedecor/textures/homedecor_dryer_bottom.png differ diff --git a/homedecor/textures/homedecor_dryer_front.png b/homedecor/textures/homedecor_dryer_front.png new file mode 100644 index 0000000..4759642 Binary files /dev/null and b/homedecor/textures/homedecor_dryer_front.png differ diff --git a/homedecor/textures/homedecor_dryer_sides.png b/homedecor/textures/homedecor_dryer_sides.png new file mode 100644 index 0000000..7d0b0e4 Binary files /dev/null and b/homedecor/textures/homedecor_dryer_sides.png differ diff --git a/homedecor/textures/homedecor_dryer_top.png b/homedecor/textures/homedecor_dryer_top.png new file mode 100644 index 0000000..90e1b7c Binary files /dev/null and b/homedecor/textures/homedecor_dryer_top.png differ diff --git a/homedecor/textures/homedecor_washing_machine_back.png b/homedecor/textures/homedecor_washing_machine_back.png new file mode 100644 index 0000000..48daf8e Binary files /dev/null and b/homedecor/textures/homedecor_washing_machine_back.png differ diff --git a/homedecor/textures/homedecor_washing_machine_bottom.png b/homedecor/textures/homedecor_washing_machine_bottom.png new file mode 100644 index 0000000..5f5f33d Binary files /dev/null and b/homedecor/textures/homedecor_washing_machine_bottom.png differ diff --git a/homedecor/textures/homedecor_washing_machine_front.png b/homedecor/textures/homedecor_washing_machine_front.png new file mode 100644 index 0000000..97a0977 Binary files /dev/null and b/homedecor/textures/homedecor_washing_machine_front.png differ diff --git a/homedecor/textures/homedecor_washing_machine_sides.png b/homedecor/textures/homedecor_washing_machine_sides.png new file mode 100644 index 0000000..ba0ba89 Binary files /dev/null and b/homedecor/textures/homedecor_washing_machine_sides.png differ diff --git a/homedecor/textures/homedecor_washing_machine_top.png b/homedecor/textures/homedecor_washing_machine_top.png new file mode 100644 index 0000000..317bf5a Binary files /dev/null and b/homedecor/textures/homedecor_washing_machine_top.png differ