2020-08-04 23:10:18 +02:00
|
|
|
local S = minetest.get_translator("homedecor_laundry")
|
2019-04-20 21:49:36 +02:00
|
|
|
-- laundry devices
|
|
|
|
|
|
|
|
homedecor.register("washing_machine", {
|
2020-08-04 23:10:18 +02:00
|
|
|
description = S("Washing Machine"),
|
2019-04-20 21:49:36 +02:00
|
|
|
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"
|
|
|
|
},
|
|
|
|
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 = "regular" },
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, dig_stone=3 },
|
|
|
|
crafts = {
|
|
|
|
{
|
|
|
|
recipe = {
|
|
|
|
{ "steel_ingot", "steel_ingot", "basic_materials:ic" },
|
|
|
|
{ "steel_ingot", "water_bucket", "steel_ingot" },
|
|
|
|
{ "steel_ingot", "basic_materials:motor", "steel_ingot" }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = {
|
|
|
|
{ "steel_ingot", "steel_ingot", "basic_materials:ic" },
|
|
|
|
{ "steel_ingot", "water_bucket", "steel_ingot" },
|
|
|
|
{ "steel_ingot", "basic_materials:motor", "steel_ingot" }
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
2019-04-20 21:49:36 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
homedecor.register("dryer", {
|
2020-08-04 23:10:18 +02:00
|
|
|
description = S("Tumble dryer"),
|
2019-04-20 21:49:36 +02:00
|
|
|
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"
|
|
|
|
},
|
|
|
|
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 = "regular" },
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, dig_stone=3 },
|
|
|
|
crafts = {
|
|
|
|
{
|
|
|
|
recipe = {
|
|
|
|
{ "steel_ingot", "steel_ingot", "basic_materials:ic" },
|
|
|
|
{ "steel_ingot", "empty_bucket", "basic_materials:motor" },
|
|
|
|
{ "steel_ingot", "basic_materials:heating_element", "steel_ingot" }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
recipe = {
|
|
|
|
{ "steel_ingot", "steel_ingot", "basic_materials:ic" },
|
|
|
|
{ "steel_ingot", "empty_bucket", "basic_materials:motor" },
|
|
|
|
{ "steel_ingot", "basic_materials:heating_element", "steel_ingot" }
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
2019-04-20 21:49:36 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
local ib_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -6/16, -8/16, -4/16, 17/16, 4/16, 4/16 }
|
|
|
|
}
|
|
|
|
|
2022-05-03 21:21:14 +02:00
|
|
|
local wool_tex = "wool_grey.png"
|
|
|
|
if not minetest.get_modpath("wool") then wool_tex = "[combine:16x16^[noalpha^[colorize:#3A3B3C" end
|
|
|
|
|
2019-04-20 21:49:36 +02:00
|
|
|
homedecor.register("ironing_board", {
|
2020-08-04 23:10:18 +02:00
|
|
|
description = S("Ironing board"),
|
2019-04-20 21:49:36 +02:00
|
|
|
mesh = "homedecor_ironing_board.obj",
|
|
|
|
tiles = {
|
2022-05-03 21:21:14 +02:00
|
|
|
wool_tex,
|
2019-04-20 21:49:36 +02:00
|
|
|
{ name = "homedecor_generic_metal.png", color = homedecor.color_med_grey },
|
|
|
|
},
|
|
|
|
expand = {right = "placeholder"},
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = { snappy = 3, dig_stone=3 },
|
2019-04-20 21:49:36 +02:00
|
|
|
selection_box = ib_cbox,
|
2022-05-03 21:21:14 +02:00
|
|
|
collision_box = ib_cbox,
|
|
|
|
crafts = {
|
|
|
|
{
|
|
|
|
recipe = {
|
|
|
|
{ "wool_grey", "wool_grey", "wool_grey"},
|
|
|
|
{ "", "steel_ingot", "" },
|
|
|
|
{ "steel_ingot", "", "steel_ingot" }
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|