forked from nalc/homedecor_modpack
use mesh node for coat rack/tree
This commit is contained in:
parent
20b8a8f875
commit
9767b5d5f8
@ -342,25 +342,23 @@ homedecor.register("coatrack_wallmount", {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local ct_cbox = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 }
|
||||||
|
}
|
||||||
|
|
||||||
homedecor.register("coat_tree", {
|
homedecor.register("coat_tree", {
|
||||||
tiles = { "forniture_wood.png" },
|
mesh = "homedecor_coatrack.obj",
|
||||||
|
tiles = {
|
||||||
|
"forniture_wood.png",
|
||||||
|
"homedecor_generic_wood.png"
|
||||||
|
},
|
||||||
inventory_image = "homedecor_coatrack_inv.png",
|
inventory_image = "homedecor_coatrack_inv.png",
|
||||||
description = "Coat tree",
|
description = "Coat tree",
|
||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
node_box = {
|
expand = { top="air" },
|
||||||
type = "fixed",
|
selection_box = ct_cbox,
|
||||||
fixed = {
|
collision_box = ct_cbox,
|
||||||
{0, -0.5, 0, 0.0625, 1.5, 0.0625}, -- NodeBox1
|
|
||||||
{-0.125, -0.5, -0.125, 0.1875, -0.4375, 0.1875}, -- NodeBox2
|
|
||||||
{0.1875, -0.5, -0.0625, 0.22, -0.4375, 0.125}, -- NodeBox3
|
|
||||||
{-0.0625, -0.5, 0.188, 0.125, -0.4375, 0.22}, -- NodeBox4
|
|
||||||
{-0.16, -0.5, -0.0625, -0.125, -0.4375, 0.125}, -- NodeBox5
|
|
||||||
{-0.0625, -0.5, -0.16, 0.125, -0.4375, -0.125}, -- NodeBox6
|
|
||||||
{-0.25, 1.1875, 0, 0.3125, 1.25, 0.0625}, -- NodeBox7
|
|
||||||
{0, 1.1875, -0.25, 0.0625, 1.25, 0.3125}, -- NodeBox8
|
|
||||||
{-0.0207468, 1.4375, -0.0207468, 0.0829876, 1.5, 0.0829876}, -- NodeBox9
|
|
||||||
}
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
local cutlery_cbox = {
|
local cutlery_cbox = {
|
||||||
|
2235
homedecor/models/homedecor_coatrack.obj
Normal file
2235
homedecor/models/homedecor_coatrack.obj
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user