2020-08-04 22:46:29 +02:00
|
|
|
local S = minetest.get_translator("homedecor_foyer")
|
2017-01-31 06:34:41 +01:00
|
|
|
|
2015-08-16 17:55:48 +02:00
|
|
|
homedecor.register("coatrack_wallmount", {
|
|
|
|
tiles = { homedecor.plain_wood },
|
|
|
|
inventory_image = "homedecor_coatrack_wallmount_inv.png",
|
2017-01-31 06:34:41 +01:00
|
|
|
description = S("Wall-mounted coat rack"),
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = {snappy=3, dig_tree=2},
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2015-08-16 17:55:48 +02:00
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.375, 0, 0.4375, 0.375, 0.14, 0.5}, -- NodeBox1
|
|
|
|
{-0.3025, 0.0475, 0.375, -0.26, 0.09, 0.4375}, -- NodeBox2
|
|
|
|
{0.26, 0.0475, 0.375, 0.3025, 0.09, 0.4375}, -- NodeBox3
|
|
|
|
{0.0725, 0.0475, 0.375, 0.115, 0.09, 0.4375}, -- NodeBox4
|
|
|
|
{-0.115, 0.0475, 0.375, -0.0725, 0.09, 0.4375}, -- NodeBox5
|
|
|
|
{0.24, 0.025, 0.352697, 0.3225, 0.115, 0.375}, -- NodeBox6
|
|
|
|
{-0.3225, 0.025, 0.352697, -0.24, 0.115, 0.375}, -- NodeBox7
|
|
|
|
{-0.135, 0.025, 0.352697, -0.0525, 0.115, 0.375}, -- NodeBox8
|
|
|
|
{0.0525, 0.025, 0.352697, 0.135, 0.115, 0.375}, -- NodeBox9
|
|
|
|
}
|
|
|
|
},
|
2022-05-03 21:21:14 +02:00
|
|
|
crafts = {
|
|
|
|
{
|
|
|
|
recipe = {
|
|
|
|
{ "group:stick", "homedecor:curtainrod_wood", "group:stick" },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
2015-08-16 17:55:48 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
homedecor.register("coat_tree", {
|
|
|
|
mesh = "homedecor_coatrack.obj",
|
|
|
|
tiles = {
|
|
|
|
homedecor.plain_wood,
|
|
|
|
"homedecor_generic_wood_old.png"
|
|
|
|
},
|
|
|
|
inventory_image = "homedecor_coatrack_inv.png",
|
2017-01-31 06:34:41 +01:00
|
|
|
description = S("Coat tree"),
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = {snappy=3, dig_tree=2},
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2015-09-08 09:50:02 +02:00
|
|
|
expand = { top="placeholder" },
|
2015-08-16 17:55:48 +02:00
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.4, -0.5, -0.4, 0.4, 1.5, 0.4 }
|
|
|
|
},
|
2020-08-04 22:46:29 +02:00
|
|
|
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
|
2022-05-03 21:21:14 +02:00
|
|
|
crafts = {
|
|
|
|
{
|
|
|
|
recipe = {
|
|
|
|
{ "group:stick", "group:stick", "group:stick" },
|
|
|
|
{ "", "group:stick", "" },
|
|
|
|
{ "", "group:wood", "" }
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
2015-08-16 17:55:48 +02:00
|
|
|
})
|
|
|
|
|
2022-05-03 21:21:14 +02:00
|
|
|
local grey = {{
|
|
|
|
output = "homedecor:welcome_mat_grey 2",
|
|
|
|
recipe = {
|
|
|
|
{ "", "dye_black", "" },
|
|
|
|
{ "wool_grey", "wool_grey", "wool_grey" },
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
|
|
|
|
local brown = {{
|
|
|
|
output = "homedecor:welcome_mat_brown 2",
|
|
|
|
recipe = {
|
|
|
|
{ "", "dye_black", "" },
|
|
|
|
{ "wool_brown", "wool_brown", "wool_brown" },
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
|
|
|
|
local green = {
|
|
|
|
{
|
|
|
|
output = "homedecor:welcome_mat_green 2",
|
|
|
|
recipe = {
|
|
|
|
{ "", "dye_white", "" },
|
|
|
|
{ "wool_dark_green", "wool_dark_green", "wool_dark_green" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
output = "homedecor:welcome_mat_green 2",
|
|
|
|
recipe = {
|
|
|
|
{ "", "dye_white", "" },
|
|
|
|
{ "dye_black", "dye_black", "dye_black" },
|
|
|
|
{ "wool_green", "wool_green", "wool_green" },
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-31 06:34:41 +01:00
|
|
|
local mat_colors = {
|
2022-05-03 21:21:14 +02:00
|
|
|
{ "green", S("Green welcome mat"), green },
|
|
|
|
{ "brown", S("Brown welcome mat"), brown },
|
|
|
|
{ "grey", S("Grey welcome mat"), grey },
|
2017-01-31 06:34:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
for _, mat in ipairs(mat_colors) do
|
2022-05-03 21:21:14 +02:00
|
|
|
local color, desc, crafts = unpack(mat)
|
2015-08-16 17:55:48 +02:00
|
|
|
homedecor.register("welcome_mat_"..color, {
|
2017-01-31 06:34:41 +01:00
|
|
|
description = desc,
|
2015-08-16 17:55:48 +02:00
|
|
|
tiles = {
|
|
|
|
"homedecor_welcome_mat_"..color..".png",
|
|
|
|
"homedecor_welcome_mat_bottom.png",
|
|
|
|
"homedecor_welcome_mat_"..color..".png",
|
|
|
|
},
|
2022-05-03 21:21:14 +02:00
|
|
|
groups = {crumbly=3, dig_tree=2},
|
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_dirt_defaults",
|
|
|
|
},
|
2015-08-16 17:55:48 +02:00
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.375, 0.5, -0.46875, 0.375 }
|
2022-05-03 21:21:14 +02:00
|
|
|
},
|
|
|
|
crafts = crafts
|
2015-08-16 17:55:48 +02:00
|
|
|
})
|
2022-05-03 21:21:14 +02:00
|
|
|
end
|