forked from nalc/homedecor_modpack
b08c0905c0
Any of these new submods can be run without any other components that were once part of the big "homedecor" mod, other than homedecor_common and homedecor_i18n Reduced dependencies where possible, but each submod still has its various dependencies more or less the same as before, i.e. some need basic_materials, others need unifieddyes, some need building_blocks, and so on. All of the stuff that used to be under homedecor/handlers got moved to homedecor_common, as did any models and/or textures that are used by more than one other homedecor component. All the miscellaneous items that didn't warrant their own mod ended up in homedecor_misc, which can also be thought of as the remains of the original "homedecor" mod, renamed.
113 lines
2.9 KiB
Lua
113 lines
2.9 KiB
Lua
-- laundry devices
|
|
|
|
homedecor.register("washing_machine", {
|
|
description = "Washing Machine",
|
|
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" },
|
|
groups = { snappy = 3 },
|
|
})
|
|
|
|
homedecor.register("dryer", {
|
|
description = "Tumble dryer",
|
|
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" },
|
|
groups = { snappy = 3 },
|
|
})
|
|
|
|
local ib_cbox = {
|
|
type = "fixed",
|
|
fixed = { -6/16, -8/16, -4/16, 17/16, 4/16, 4/16 }
|
|
}
|
|
|
|
homedecor.register("ironing_board", {
|
|
description = "Ironing board",
|
|
mesh = "homedecor_ironing_board.obj",
|
|
tiles = {
|
|
"wool_grey.png",
|
|
{ name = "homedecor_generic_metal.png", color = homedecor.color_med_grey },
|
|
},
|
|
expand = {right = "placeholder"},
|
|
groups = { snappy = 3 },
|
|
selection_box = ib_cbox,
|
|
collision_box = ib_cbox
|
|
})
|
|
|
|
-- crafting
|
|
|
|
|
|
-- laundry stuff
|
|
|
|
minetest.register_craft( {
|
|
output = "homedecor:washing_machine",
|
|
recipe = {
|
|
{ "default:steel_ingot", "default:steel_ingot", "basic_materials:ic" },
|
|
{ "default:steel_ingot", "bucket:bucket_water", "default:steel_ingot" },
|
|
{ "default:steel_ingot", "basic_materials:motor", "default:steel_ingot" }
|
|
},
|
|
})
|
|
|
|
minetest.register_craft( {
|
|
output = "homedecor:washing_machine",
|
|
recipe = {
|
|
{ "default:steel_ingot", "default:steel_ingot", "basic_materials:ic" },
|
|
{ "default:steel_ingot", "bucket:bucket_water", "default:steel_ingot" },
|
|
{ "default:steel_ingot", "basic_materials:motor", "default:steel_ingot" }
|
|
},
|
|
})
|
|
|
|
minetest.register_craft( {
|
|
output = "homedecor:dryer",
|
|
recipe = {
|
|
{ "default:steel_ingot", "default:steel_ingot", "basic_materials:ic" },
|
|
{ "default:steel_ingot", "bucket:bucket_empty", "basic_materials:motor" },
|
|
{ "default:steel_ingot", "basic_materials:heating_element", "default:steel_ingot" }
|
|
},
|
|
})
|
|
|
|
minetest.register_craft( {
|
|
output = "homedecor:dryer",
|
|
recipe = {
|
|
{ "default:steel_ingot", "default:steel_ingot", "basic_materials:ic" },
|
|
{ "default:steel_ingot", "bucket:bucket_empty", "basic_materials:motor" },
|
|
{ "default:steel_ingot", "basic_materials:heating_element", "default:steel_ingot" }
|
|
},
|
|
})
|
|
|
|
minetest.register_craft( {
|
|
output = "homedecor:ironing_board",
|
|
recipe = {
|
|
{ "wool:grey", "wool:grey", "wool:grey"},
|
|
{ "", "default:steel_ingot", "" },
|
|
{ "default:steel_ingot", "", "default:steel_ingot" }
|
|
},
|
|
})
|
|
|