diff --git a/homedecor/init.lua b/homedecor/init.lua index 484f981d..faec921e 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 00000000..f26de99b --- /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 00000000..2a76711f 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 00000000..25f7416e 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 00000000..4759642e 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 00000000..7d0b0e49 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 00000000..90e1b7c3 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 00000000..48daf8e1 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 00000000..5f5f33d1 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 00000000..97a09777 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 00000000..ba0ba897 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 00000000..317bf5a9 Binary files /dev/null and b/homedecor/textures/homedecor_washing_machine_top.png differ