forked from nalc/homedecor_modpack
use mesh node for radiator
This commit is contained in:
parent
57fe4a3152
commit
3506ede1f5
@ -153,49 +153,21 @@ homedecor.register("space_heater", {
|
||||
}
|
||||
})
|
||||
|
||||
local r_cbox = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, 0.25, 0.5, 0.5, 0.5 }
|
||||
}
|
||||
|
||||
homedecor.register("radiator", {
|
||||
tiles = { "homedecor_white_metal.png" },
|
||||
mesh = "homedecor_radiator.obj",
|
||||
tiles = {
|
||||
"homedecor_white_metal.png",
|
||||
"homedecor_radiator_controls.png"
|
||||
},
|
||||
inventory_image = "homedecor_radiator_inv.png",
|
||||
description = "Radiator heater",
|
||||
groups = {snappy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.4375, 0.3125, 0.3125, 0.5, 0.4375, 0.4375}, -- NodeBox1
|
||||
{0.375, 0.25, 0.25, 0.4375, 0.5, 0.5}, -- NodeBox2
|
||||
{0.25, 0.25, 0.25, 0.3125, 0.5, 0.5}, -- NodeBox3
|
||||
{0.125, 0.25, 0.25, 0.1875, 0.5, 0.5}, -- NodeBox4
|
||||
{0, 0.25, 0.25, 0.0625, 0.5, 0.5}, -- NodeBox5
|
||||
{-0.125, 0.25, 0.25, -0.0625, 0.5, 0.5}, -- NodeBox6
|
||||
{-0.25, 0.25, 0.25, -0.1875, 0.5, 0.5}, -- NodeBox7
|
||||
{-0.375, 0.25, 0.25, -0.3125, 0.5, 0.5}, -- NodeBox8
|
||||
{0.375, -0.375, 0.4375, 0.4375, 0.5, 0.5}, -- NodeBox9
|
||||
{0.375, -0.375, 0.25, 0.4375, 0.5, 0.3125}, -- NodeBox10
|
||||
{0.25, -0.375, 0.4375, 0.3125, 0.5, 0.5}, -- NodeBox11
|
||||
{0.25, -0.375, 0.25, 0.3125, 0.5, 0.3125}, -- NodeBox12
|
||||
{0.125, -0.375, 0.4375, 0.1875, 0.5, 0.5}, -- NodeBox13
|
||||
{0.125, -0.375, 0.25, 0.1875, 0.5, 0.3125}, -- NodeBox14
|
||||
{0, -0.375, 0.4375, 0.0625, 0.5, 0.5}, -- NodeBox15
|
||||
{0, -0.375, 0.25, 0.0625, 0.5, 0.3125}, -- NodeBox16
|
||||
{-0.125, -0.375, 0.4375, -0.0625, 0.5, 0.5}, -- NodeBox17
|
||||
{-0.125, -0.375, 0.25, -0.0625, 0.5, 0.3125}, -- NodeBox18
|
||||
{-0.25, -0.375, 0.4375, -0.1875, 0.5, 0.5}, -- NodeBox19
|
||||
{-0.25, -0.375, 0.25, -0.1875, 0.5, 0.3125}, -- NodeBox20
|
||||
{-0.375, -0.375, 0.4375, -0.3125, 0.5, 0.5}, -- NodeBox21
|
||||
{-0.375, -0.375, 0.25, -0.3125, 0.5, 0.3125}, -- NodeBox22
|
||||
{-0.4375, -0.3125, 0.3125, 0.5, -0.1875, 0.4375}, -- NodeBox23
|
||||
{0.375, -0.375, 0.3125, 0.4375, -0.125, 0.4375}, -- NodeBox24
|
||||
{0.25, -0.375, 0.3125, 0.3125, -0.125, 0.4375}, -- NodeBox25
|
||||
{0.125, -0.375, 0.3125, 0.1875, -0.125, 0.4375}, -- NodeBox26
|
||||
{0, -0.375, 0.3125, 0.0625, -0.125, 0.4375}, -- NodeBox27
|
||||
{-0.125, -0.375, 0.3125, -0.0625, -0.125, 0.4375}, -- NodeBox28
|
||||
{-0.25, -0.375, 0.3125, -0.1875, -0.125, 0.4375}, -- NodeBox29
|
||||
{-0.375, -0.375, 0.3125, -0.3125, -0.125, 0.4375}, -- NodeBox30
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.4375, -0.375, 0.25, 0.5, 0.5, 0.5 }
|
||||
}
|
||||
selection_box = r_cbox,
|
||||
collision_box = r_cbox,
|
||||
})
|
||||
|
||||
|
2458
homedecor/models/homedecor_radiator.obj
Normal file
2458
homedecor/models/homedecor_radiator.obj
Normal file
File diff suppressed because it is too large
Load Diff
BIN
homedecor/textures/homedecor_radiator_controls.png
Normal file
BIN
homedecor/textures/homedecor_radiator_controls.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 331 B |
Loading…
Reference in New Issue
Block a user