2013-10-22 02:50:45 +02:00
|
|
|
local S = homedecor.gettext
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("toilet", {
|
2015-01-23 22:14:00 +01:00
|
|
|
description = S("Toilet"),
|
|
|
|
tiles = { "forniture_marble.png" },
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.20, -0.50, -0.20, 0.20, -0.45, 0.50, },
|
|
|
|
{ -0.10, -0.45, -0.10, 0.10, 0.00, 0.50, },
|
|
|
|
{ -0.30, -0.20, -0.30, 0.30, 0.00, 0.35, },
|
|
|
|
{ -0.25, 0.00, -0.25, 0.25, 0.05, 0.25, },
|
|
|
|
{ -0.30, 0.00, 0.30, 0.30, 0.40, 0.50, },
|
|
|
|
{ -0.05, 0.40, 0.35, 0.05, 0.45, 0.45, },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
groups = {cracky=3,},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
on_punch = function (pos, node, puncher)
|
|
|
|
node.name = "homedecor:toilet_open"
|
|
|
|
minetest.set_node(pos, node)
|
|
|
|
end,
|
2013-03-26 12:05:22 +01:00
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("toilet_open", {
|
2015-01-23 22:14:00 +01:00
|
|
|
tiles = {
|
|
|
|
"forniture_marble_top_toilet.png",
|
2014-06-18 12:53:07 +02:00
|
|
|
"forniture_marble.png"
|
2015-01-23 22:14:00 +01:00
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.20, -0.50, -0.20, 0.20, -0.45, 0.50, },
|
|
|
|
{ -0.10, -0.45, -0.10, 0.10, -0.20, 0.50, },
|
|
|
|
{ -0.10, -0.20, 0.30, 0.10, 0.00, 0.50, },
|
|
|
|
{ -0.30, -0.20, 0.10, 0.30, 0.00, 0.35, },
|
|
|
|
{ -0.30, -0.20, -0.30, -0.10, -0.15, 0.10, },
|
|
|
|
{ -0.10, -0.20, -0.30, 0.10, -0.15, -0.10, },
|
|
|
|
{ 0.10, -0.20, -0.30, 0.30, -0.15, 0.10, },
|
|
|
|
{ -0.30, -0.15, -0.30, -0.20, 0.00, 0.10, },
|
|
|
|
{ -0.20, -0.15, -0.30, 0.20, 0.00, -0.20, },
|
|
|
|
{ 0.20, -0.15, -0.30, 0.30, 0.00, 0.10, },
|
|
|
|
{ -0.25, 0.00, 0.20, 0.25, 0.50, 0.25, },
|
|
|
|
{ -0.30, 0.00, 0.30, 0.30, 0.40, 0.50, },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
drop = "homedecor:toilet",
|
|
|
|
groups = {cracky = 3,},
|
|
|
|
--sounds = {dig = "3dforniture_dig_toilet", gain=0.5},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
on_punch = function (pos, node, puncher)
|
|
|
|
node.name = "homedecor:toilet"
|
|
|
|
minetest.set_node(pos, node)
|
2014-06-18 12:10:26 +02:00
|
|
|
minetest.sound_play("homedecor_toilet_flush", {
|
|
|
|
pos=pos,
|
|
|
|
max_hear_distance = 5,
|
|
|
|
gain = 1,
|
|
|
|
})
|
2015-01-23 22:14:00 +01:00
|
|
|
end,
|
2013-03-26 12:05:22 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
--Sink
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("sink", {
|
2015-01-23 22:14:00 +01:00
|
|
|
description = S("Sink"),
|
|
|
|
tiles = {
|
|
|
|
"forniture_marble_top_sink.png",
|
2014-06-18 12:53:07 +02:00
|
|
|
"forniture_marble.png"
|
2015-01-23 22:14:00 +01:00
|
|
|
},
|
|
|
|
inventory_image="3dforniture_inv_sink.png",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.15, 0.35, 0.20, 0.15, 0.40, 0.50, },
|
|
|
|
{ -0.25, 0.40, 0.40, 0.25, 0.45, 0.50, },
|
|
|
|
{ -0.25, 0.40, 0.15, -0.15, 0.45, 0.40, },
|
|
|
|
{ 0.15, 0.40, 0.15, 0.25, 0.45, 0.40, },
|
|
|
|
{ -0.15, 0.40, 0.15, 0.15, 0.45, 0.20, },
|
|
|
|
{ -0.30, 0.45, 0.40, 0.30, 0.50, 0.50, },
|
|
|
|
{ -0.30, 0.45, 0.10, -0.25, 0.50, 0.40, },
|
|
|
|
{ 0.25, 0.45, 0.10, 0.30, 0.50, 0.40, },
|
|
|
|
{ -0.25, 0.45, 0.10, 0.25, 0.50, 0.15, },
|
|
|
|
{-0.1, -0.5, 0.3, 0.1, 0.4, 0.5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.3,-0.5,0.1, 0.3,0.5,0.5},
|
|
|
|
},
|
|
|
|
groups = {cracky=2,},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2013-03-26 12:05:22 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
--Taps
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("taps", {
|
2015-01-23 22:14:00 +01:00
|
|
|
description = S("Taps"),
|
|
|
|
tiles = { "forniture_metal.png" },
|
|
|
|
inventory_image="3dforniture_inv_taps.png",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.25, -0.450, 0.49, 0.25, -0.30, 0.50, },
|
|
|
|
{ -0.05, -0.400, 0.25, 0.05, -0.35, 0.50, },
|
|
|
|
{ -0.05, -0.425, 0.25, 0.05, -0.40, 0.30, },
|
|
|
|
{ -0.20, -0.400, 0.45, -0.15, -0.35, 0.50, },
|
|
|
|
{ -0.20, -0.450, 0.40, -0.15, -0.30, 0.45, },
|
|
|
|
{ -0.25, -0.400, 0.40, -0.10, -0.35, 0.45, },
|
|
|
|
{ 0.15, -0.400, 0.45, 0.20, -0.35, 0.50, },
|
|
|
|
{ 0.15, -0.450, 0.40, 0.20, -0.30, 0.45, },
|
|
|
|
{ 0.10, -0.400, 0.40, 0.25, -0.35, 0.45, },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.25, -0.45, 0.25, 0.25, -0.3, 0.5 },
|
|
|
|
},
|
|
|
|
groups = {cracky=2,},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2013-03-26 12:05:22 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
--Shower Tray
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("shower_tray", {
|
2015-01-23 22:14:00 +01:00
|
|
|
description = S("Shower Tray"),
|
|
|
|
tiles = {
|
2014-06-18 12:53:07 +02:00
|
|
|
"forniture_marble_base_ducha_top.png",
|
|
|
|
"forniture_marble.png"
|
2015-01-23 22:14:00 +01:00
|
|
|
},
|
|
|
|
sunlight_propagates = true,
|
|
|
|
legacy_facedir_simple = true,
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.50, -0.50, -0.50, 0.50, -0.45, 0.50, },
|
|
|
|
{ -0.50, -0.45, -0.50, 0.50, -0.40, -0.45, },
|
|
|
|
{ -0.50, -0.45, 0.45, 0.50, -0.40, 0.50, },
|
|
|
|
{ -0.50, -0.45, -0.45, -0.45, -0.40, 0.45, },
|
|
|
|
{ 0.45, -0.45, -0.45, 0.50, -0.40, 0.45, },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 },
|
|
|
|
},
|
2015-03-28 16:22:47 +01:00
|
|
|
groups = {cracky=2},
|
2015-01-23 22:14:00 +01:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2013-03-26 12:05:22 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
--Shower Head
|
2015-03-28 16:22:47 +01:00
|
|
|
local sh_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.2, -0.4, -0.1, 0.2, 0.1, 0.5 }
|
|
|
|
}
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("shower_head", {
|
2015-03-28 16:22:47 +01:00
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "homedecor_shower_head.obj",
|
|
|
|
tiles = { "homedecor_shower_head.png" },
|
|
|
|
inventory_image = "homedecor_shower_head_inv.png",
|
|
|
|
description = "Shower Head",
|
|
|
|
groups = {snappy=3},
|
|
|
|
selection_box = sh_cbox,
|
|
|
|
collision_box = sh_cbox,
|
2013-03-26 12:05:22 +01:00
|
|
|
})
|
|
|
|
|
2015-03-29 04:42:53 +02:00
|
|
|
local bs_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -8/16, -8/16, 1/16, 8/16, 8/16, 8/16 }
|
|
|
|
}
|
|
|
|
|
|
|
|
homedecor.register("bathroom_set", {
|
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "homedecor_bathroom_set.obj",
|
|
|
|
tiles = {
|
|
|
|
"homedecor_bathroom_set_mirror.png",
|
|
|
|
"homedecor_bathroom_set_tray.png",
|
|
|
|
"homedecor_bathroom_set_toothbrush.png",
|
|
|
|
"homedecor_bathroom_set_cup.png",
|
|
|
|
"homedecor_bathroom_set_toothpaste.png",
|
|
|
|
},
|
|
|
|
description = "Bathroom sundries set",
|
|
|
|
groups = {snappy=3},
|
|
|
|
selection_box = bs_cbox,
|
|
|
|
collision_box = bs_cbox,
|
|
|
|
})
|
|
|
|
|
2013-03-26 12:05:22 +01:00
|
|
|
minetest.register_alias("3dforniture:toilet", "homedecor:toilet")
|
|
|
|
minetest.register_alias("3dforniture:toilet_open", "homedecor:toilet_open")
|
|
|
|
minetest.register_alias("3dforniture:sink", "homedecor:sink")
|
|
|
|
minetest.register_alias("3dforniture:taps", "homedecor:taps")
|
|
|
|
minetest.register_alias("3dforniture:shower_tray", "homedecor:shower_tray")
|
|
|
|
minetest.register_alias("3dforniture:shower_head", "homedecor:shower_head")
|
|
|
|
minetest.register_alias("3dforniture:table_lamp", "homedecor:table_lamp_off")
|
|
|
|
|
|
|
|
minetest.register_alias("toilet", "homedecor:toilet")
|
|
|
|
minetest.register_alias("sink", "homedecor:sink")
|
|
|
|
minetest.register_alias("taps", "homedecor:taps")
|
|
|
|
minetest.register_alias("shower_tray", "homedecor:shower_tray")
|
|
|
|
minetest.register_alias("shower_head", "homedecor:shower_head")
|
|
|
|
minetest.register_alias("table_lamp", "homedecor:table_lamp_off")
|