1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-29 02:00:19 +02:00

use mesh node for forniture chains, model by kilbith

This commit is contained in:
Vanessa Ezekowitz
2015-03-29 20:12:58 -04:00
parent 58f64d265f
commit f8a071aa4b
2 changed files with 938 additions and 57 deletions

View File

@ -42,68 +42,19 @@ homedecor.register("L_binding_bars", {
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="3dforniture_inv_chains.png",
sunlight_propagates = true,
node_box = {
type = "fixed",
fixed = {
{ -0.45, 0.25, 0.45, -0.20, 0.50, 0.50, },
{ -0.35, 0.40, 0.35, -0.30, 0.45, 0.45, },
{ -0.35, 0.30, 0.35, -0.30, 0.35, 0.45, },
{ -0.35, 0.35, 0.30, -0.30, 0.40, 0.35, },
{ -0.40, 0.35, 0.35, -0.25, 0.40, 0.40, },
{ -0.40, 0.15, 0.35, -0.25, 0.20, 0.40, },
{ -0.45, 0.20, 0.35, -0.40, 0.35, 0.40, },
{ -0.25, 0.20, 0.35, -0.20, 0.35, 0.40, },
{ -0.35, 0.20, 0.30, -0.30, 0.25, 0.45, },
{ -0.35, 0.00, 0.30, -0.30, 0.05, 0.45, },
{ -0.35, 0.05, 0.25, -0.30, 0.20, 0.30, },
{ -0.35, 0.05, 0.45, -0.30, 0.20, 0.50, },
{ -0.40, 0.05, 0.35, -0.25, 0.10, 0.40, },
{ -0.40, -0.15, 0.35, -0.25, -0.10, 0.40, },
{ -0.45, -0.10, 0.35, -0.40, 0.05, 0.40, },
{ -0.25, -0.10, 0.35, -0.20, 0.05, 0.40, },
{ -0.35, -0.10, 0.30, -0.30, -0.05, 0.45, },
{ -0.35, -0.30, 0.30, -0.30, -0.25, 0.45, },
{ -0.35, -0.25, 0.25, -0.30, -0.10, 0.30, },
{ -0.35, -0.25, 0.45, -0.30, -0.10, 0.50, },
{ -0.40, -0.25, 0.35, -0.25, -0.20, 0.40, },
{ -0.40, -0.45, 0.35, -0.25, -0.40, 0.40, },
{ -0.45, -0.40, 0.35, -0.40, -0.25, 0.40, },
{ -0.25, -0.40, 0.35, -0.20, -0.25, 0.40, },
{ 0.20, 0.25, 0.45, 0.45, 0.50, 0.50, },
{ 0.30, 0.40, 0.35, 0.35, 0.45, 0.45, },
{ 0.30, 0.30, 0.35, 0.35, 0.35, 0.45, },
{ 0.30, 0.35, 0.30, 0.35, 0.40, 0.35, },
{ 0.25, 0.35, 0.35, 0.40, 0.40, 0.40, },
{ 0.25, 0.15, 0.35, 0.40, 0.20, 0.40, },
{ 0.20, 0.20, 0.35, 0.25, 0.35, 0.40, },
{ 0.40, 0.20, 0.35, 0.45, 0.35, 0.40, },
{ 0.30, 0.20, 0.30, 0.35, 0.25, 0.45, },
{ 0.30, 0.00, 0.30, 0.35, 0.05, 0.45, },
{ 0.30, 0.05, 0.25, 0.35, 0.20, 0.30, },
{ 0.30, 0.05, 0.45, 0.35, 0.20, 0.50, },
{ 0.25, 0.05, 0.35, 0.40, 0.10, 0.40, },
{ 0.25, -0.15, 0.35, 0.40, -0.10, 0.40, },
{ 0.20, -0.10, 0.35, 0.25, 0.05, 0.40, },
{ 0.40, -0.10, 0.35, 0.45, 0.05, 0.40, },
{ 0.30, -0.10, 0.30, 0.35, -0.05, 0.45, },
{ 0.30, -0.30, 0.30, 0.35, -0.25, 0.45, },
{ 0.30, -0.25, 0.25, 0.35, -0.10, 0.30, },
{ 0.30, -0.25, 0.45, 0.35, -0.10, 0.50, },
{ 0.25, -0.25, 0.35, 0.40, -0.20, 0.40, },
{ 0.25, -0.45, 0.35, 0.40, -0.40, 0.40, },
{ 0.20, -0.40, 0.35, 0.25, -0.25, 0.40, },
{ 0.40, -0.40, 0.35, 0.45, -0.25, 0.40, },
},
},
selection_box = {
type = "fixed",
fixed = {-1/2, -1/2, 1/4, 1/2, 1/2, 1/2},
},
selection_box = chain_cbox,
collision_box = chain_cbox,
groups = {cracky=1},
})