1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-17 23:58:30 +01:00
homedecor_modpack/homedecor_laundry/init.lua
wsor4035 546cd7110f
make homedecor game agnostic (#28)
* make materials.lua with hades, minetest game, farlands items

* make textures file for central handling

* make mods game agnostic

* take out the trash

* handle multiple seats in sofas

* add github luacheck workflow and various luacheck fixes

* add fluxionary scope creep

* fix devtest breaking right to a name policy

Co-authored-by: wsor4035 <24964441+wsor4035@users.noreply.github.com>
Co-authored-by: SFENCE <sfence.software@gmail.com>
2022-05-03 15:21:14 -04:00

106 lines
2.7 KiB
Lua

local S = minetest.get_translator("homedecor_laundry")
-- laundry devices
homedecor.register("washing_machine", {
description = S("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, 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" }
},
}
}
})
homedecor.register("dryer", {
description = S("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, 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" }
},
}
}
})
local ib_cbox = {
type = "fixed",
fixed = { -6/16, -8/16, -4/16, 17/16, 4/16, 4/16 }
}
local wool_tex = "wool_grey.png"
if not minetest.get_modpath("wool") then wool_tex = "[combine:16x16^[noalpha^[colorize:#3A3B3C" end
homedecor.register("ironing_board", {
description = S("Ironing board"),
mesh = "homedecor_ironing_board.obj",
tiles = {
wool_tex,
{ name = "homedecor_generic_metal.png", color = homedecor.color_med_grey },
},
expand = {right = "placeholder"},
groups = { snappy = 3, dig_stone=3 },
selection_box = ib_cbox,
collision_box = ib_cbox,
crafts = {
{
recipe = {
{ "wool_grey", "wool_grey", "wool_grey"},
{ "", "steel_ingot", "" },
{ "steel_ingot", "", "steel_ingot" }
},
}
}
})