mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-11-18 16:10:39 +01:00
98 lines
2.5 KiB
Lua
98 lines
2.5 KiB
Lua
|
|
local S = homedecor.gettext
|
|
|
|
homedecor.register("bars", {
|
|
description = S("Bars"),
|
|
tiles = { "forniture_black_metal.png" },
|
|
sunlight_propagates = true,
|
|
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 },
|
|
},
|
|
groups = {cracky=1},
|
|
})
|
|
|
|
--L Binding Bars
|
|
homedecor.register("L_binding_bars", {
|
|
description = S("Binding Bars"),
|
|
tiles = { "forniture_black_metal.png" },
|
|
sunlight_propagates = true,
|
|
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 },
|
|
},
|
|
},
|
|
groups = {cracky=1,}
|
|
})
|
|
|
|
local chain_cbox = {
|
|
type = "fixed",
|
|
fixed = {-1/2, -1/2, 1/4, 1/2, 1/2, 1/2},
|
|
}
|
|
|
|
homedecor.register("chains", {
|
|
description = S("Chains"),
|
|
mesh = "forniture_chains.obj",
|
|
tiles = { "forniture_black_metal.png" },
|
|
inventory_image="forniture_chains_inv.png",
|
|
sunlight_propagates = true,
|
|
selection_box = chain_cbox,
|
|
collision_box = chain_cbox,
|
|
groups = {cracky=1},
|
|
})
|
|
|
|
homedecor.register("torch_wall", {
|
|
description = S("Wall Torch"),
|
|
mesh = "forniture_torch.obj",
|
|
tiles = {
|
|
{
|
|
name="forniture_torch_flame.png",
|
|
animation={
|
|
type="vertical_frames",
|
|
aspect_w=40,
|
|
aspect_h=40,
|
|
length=1.0,
|
|
},
|
|
},
|
|
"forniture_black_metal.png",
|
|
"forniture_metal.png",
|
|
"forniture_coal.png",
|
|
},
|
|
inventory_image="forniture_torch_inv.png",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
light_source = 14,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = { -0.15, -0.45, 0.15, 0.15,0.35, 0.5 },
|
|
},
|
|
groups = {cracky=2},
|
|
})
|
|
|
|
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')
|