2013-03-26 12:05:22 +01:00
|
|
|
|
2013-10-22 02:50:45 +02:00
|
|
|
local S = homedecor.gettext
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("bars", {
|
2015-01-23 22:14:00 +01:00
|
|
|
description = S("Bars"),
|
2015-04-28 05:48:02 +02:00
|
|
|
tiles = { "homedecor_generic_metal_black.png" },
|
2015-01-23 22:14:00 +01:00
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.5, -0.50, -0.10, -0.4, 0.50, 0.10 },
|
|
|
|
{ -0.1, -0.50, -0.10, 0.1, 0.50, 0.10 },
|
|
|
|
{ 0.4, -0.50, -0.10, 0.5, 0.50, 0.10 },
|
|
|
|
{ -0.5, -0.50, -0.05, 0.5, -0.45, 0.05 },
|
|
|
|
{ -0.5, 0.45, -0.05, 0.5, 0.50, 0.05 },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, -0.1, 0.5, 0.5, 0.1 },
|
|
|
|
},
|
2015-04-29 14:14:36 +02:00
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2013-03-26 12:05:22 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
--L Binding Bars
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("L_binding_bars", {
|
2015-01-23 22:14:00 +01:00
|
|
|
description = S("Binding Bars"),
|
2015-04-28 05:48:02 +02:00
|
|
|
tiles = { "homedecor_generic_metal_black.png" },
|
2015-01-23 22:14:00 +01:00
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.10, -0.50, -0.50, 0.10, 0.50, -0.40 },
|
|
|
|
{ -0.15, -0.50, -0.15, 0.15, 0.50, 0.15 },
|
|
|
|
{ 0.40, -0.50, -0.10, 0.50, 0.50, 0.10 },
|
|
|
|
{ 0.00, -0.50, -0.05, 0.50, -0.45, 0.05 },
|
|
|
|
{ -0.05, -0.50, -0.50, 0.05, -0.45, 0.00 },
|
|
|
|
{ 0.00, 0.45, -0.05, 0.50, 0.50, 0.05 },
|
|
|
|
{ -0.05, 0.45, -0.50, 0.05, 0.50, 0.00 },
|
|
|
|
},
|
|
|
|
},
|
2015-04-29 14:14:36 +02:00
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2013-03-26 12:05:22 +01:00
|
|
|
})
|
|
|
|
|
2015-03-30 02:12:58 +02:00
|
|
|
local chain_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-1/2, -1/2, 1/4, 1/2, 1/2, 1/2},
|
|
|
|
}
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("chains", {
|
2015-01-23 22:14:00 +01:00
|
|
|
description = S("Chains"),
|
2015-03-30 02:12:58 +02:00
|
|
|
mesh = "forniture_chains.obj",
|
2015-04-28 05:48:02 +02:00
|
|
|
tiles = { "homedecor_generic_metal_black.png" },
|
2015-03-30 21:06:07 +02:00
|
|
|
inventory_image="forniture_chains_inv.png",
|
2015-03-30 02:12:58 +02:00
|
|
|
selection_box = chain_cbox,
|
2015-04-29 14:14:36 +02:00
|
|
|
walkable = false,
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2015-01-20 23:59:50 +01:00
|
|
|
})
|
2013-03-26 12:05:22 +01:00
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("torch_wall", {
|
2015-01-23 22:14:00 +01:00
|
|
|
description = S("Wall Torch"),
|
2015-03-30 20:59:39 +02:00
|
|
|
mesh = "forniture_torch.obj",
|
2015-01-23 22:14:00 +01:00
|
|
|
tiles = {
|
|
|
|
{
|
2015-03-30 20:59:39 +02:00
|
|
|
name="forniture_torch_flame.png",
|
2015-01-23 22:14:00 +01:00
|
|
|
animation={
|
|
|
|
type="vertical_frames",
|
|
|
|
aspect_w=40,
|
|
|
|
aspect_h=40,
|
|
|
|
length=1.0,
|
|
|
|
},
|
|
|
|
},
|
2015-04-28 05:48:02 +02:00
|
|
|
"homedecor_generic_metal_black.png",
|
2015-05-04 00:30:56 +02:00
|
|
|
"homedecor_generic_metal_black.png^[brighten",
|
2015-03-30 20:59:39 +02:00
|
|
|
"forniture_coal.png",
|
2015-01-23 22:14:00 +01:00
|
|
|
},
|
2015-03-30 20:59:39 +02:00
|
|
|
inventory_image="forniture_torch_inv.png",
|
2015-01-23 22:14:00 +01:00
|
|
|
walkable = false,
|
|
|
|
light_source = 14,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.45, 0.15, 0.15,0.35, 0.5 },
|
|
|
|
},
|
2015-04-29 14:14:36 +02:00
|
|
|
groups = {cracky=3},
|
2013-03-26 12:05:22 +01:00
|
|
|
})
|
|
|
|
|
2015-04-04 19:51:48 +02:00
|
|
|
local wl_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.2, -0.5, 0, 0.2, 0.5, 0.5 },
|
|
|
|
}
|
|
|
|
|
|
|
|
homedecor.register("wall_lamp", {
|
|
|
|
description = S("Wall Lamp"),
|
|
|
|
mesh = "homedecor_wall_lamp.obj",
|
2015-05-04 00:30:56 +02:00
|
|
|
tiles = {"homedecor_generic_metal_black.png^[brighten", "homedecor_generic_wood_luxury_brown1.png",
|
2015-05-02 19:48:15 +02:00
|
|
|
"homedecor_light.png", "homedecor_generic_metal_wrought_iron.png"},
|
|
|
|
use_texture_alpha = true,
|
2015-04-04 19:51:48 +02:00
|
|
|
inventory_image = "homedecor_wall_lamp_inv.png",
|
|
|
|
groups = {snappy=3},
|
|
|
|
light_source = 11,
|
|
|
|
selection_box = wl_cbox,
|
2015-04-29 14:14:36 +02:00
|
|
|
walkable = false
|
2015-04-04 19:51:48 +02:00
|
|
|
})
|
|
|
|
|
2013-03-26 12:05:22 +01:00
|
|
|
minetest.register_alias("3dforniture:bars", "homedecor:bars")
|
|
|
|
minetest.register_alias("3dforniture:L_binding_bars", "homedecor:L_binding_bars")
|
|
|
|
minetest.register_alias("3dforniture:chains", "homedecor:chains")
|
|
|
|
minetest.register_alias("3dforniture:torch_wall", "homedecor:torch_wall")
|
|
|
|
|
|
|
|
minetest.register_alias('bars', 'homedecor:bars')
|
|
|
|
minetest.register_alias('binding_bars', 'homedecor:L_binding_bars')
|
|
|
|
minetest.register_alias('chains', 'homedecor:chains')
|
|
|
|
minetest.register_alias('torch_wall', 'homedecor:torch_wall')
|