2020-08-04 22:53:10 +02:00
|
|
|
local S = minetest.get_translator("homedecor_furniture_medieval")
|
2013-10-21 22:50:45 -02:00
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("bars", {
|
2015-01-23 22:14:00 +01:00
|
|
|
description = S("Bars"),
|
2017-01-25 04:22:28 -05:00
|
|
|
tiles = { { name = "homedecor_generic_metal.png^[transformR270", color = homedecor.color_black } },
|
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 08:05:22 -03: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"),
|
2017-01-25 04:22:28 -05:00
|
|
|
tiles = { { name = "homedecor_generic_metal.png^[transformR270", color = homedecor.color_black } },
|
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 08:05:22 -03:00
|
|
|
})
|
|
|
|
|
2015-03-29 20:12:58 -04: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-29 20:12:58 -04:00
|
|
|
mesh = "forniture_chains.obj",
|
2017-01-25 04:22:28 -05:00
|
|
|
tiles = { { name = "homedecor_generic_metal.png", color = homedecor.color_black } },
|
2015-03-30 15:06:07 -04:00
|
|
|
inventory_image="forniture_chains_inv.png",
|
2015-03-29 20:12:58 -04: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 08:05:22 -03:00
|
|
|
|
2021-03-26 23:21:37 -04:00
|
|
|
-- Crafts
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:bars 6",
|
|
|
|
recipe = {
|
|
|
|
{ "default:steel_ingot","default:steel_ingot","default:steel_ingot" },
|
|
|
|
{ "homedecor:pole_wrought_iron","homedecor:pole_wrought_iron","homedecor:pole_wrought_iron" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "homedecor:L_binding_bars 3",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:bars","" },
|
|
|
|
{ "homedecor:bars","homedecor:bars" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-03-26 08:05:22 -03: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('bars', 'homedecor:bars')
|
|
|
|
minetest.register_alias('binding_bars', 'homedecor:L_binding_bars')
|
|
|
|
minetest.register_alias('chains', 'homedecor:chains')
|