use mesh node for coffee maker

This commit is contained in:
Vanessa Ezekowitz 2015-04-16 23:39:18 -04:00
parent 8e5197af58
commit c6dd69769e
11 changed files with 1867 additions and 31 deletions

View File

@ -97,46 +97,30 @@ homedecor.register_furnace("homedecor:microwave_oven", {
-- coffee! -- coffee!
-- coffee! -- coffee!
-- coffee! -- coffee!
local cm_cbox = {
type = "fixed",
fixed = {
{ 0, -8/16, 0, 7/16, 3/16, 8/16 },
{ -4/16, -8/16, -6/16, -1/16, -5/16, -3/16 }
}
}
homedecor.register("coffee_maker", { homedecor.register("coffee_maker", {
mesh = "homedecor_coffeemaker.obj",
tiles = { tiles = {
"homedecor_coffeemaker_top.png", "homedecor_coffeemaker_decanter.png",
"homedecor_coffeemaker_bottom.png", "homedecor_coffeemaker_cup.png",
"homedecor_coffeemaker_right.png", "homedecor_coffeemaker_case.png",
"homedecor_coffeemaker_right.png^[transformFX",
"homedecor_coffeemaker_back.png",
"homedecor_coffeemaker_front.png"
}, },
description = "Coffee Maker", description = "Coffee Maker",
inventory_image = "homedecor_coffeemaker_inv.png", inventory_image = "homedecor_coffeemaker_inv.png",
drawtype = "nodebox",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true, sunlight_propagates = true,
groups = {snappy=3}, groups = {snappy=3},
node_box = { selection_box = cm_cbox,
type = "fixed", node_box = cm_cbox
fixed = {
{0.0625, -0.5, -0.025, 0.375, -0.375, 0.5}, -- NodeBox1
{0.0625, -0.375, 0.3125, 0.375, 0, 0.5}, -- NodeBox2
{0.0625, -0.052, 0.02, 0.375, 0.19, 0.5}, -- NodeBox3
{0.078, -0.375, 0, 0.36, -0.0625, 0.3125}, -- NodeBox4
{0.1875, -0.098, -0.0525, 0.25, -0.078, 0}, -- NodeBox5
{0.1875, -0.36, -0.090, 0.25, -0.078, -0.0525}, -- NodeBox6
{0.1875, -0.36, -0.0525, 0.25, -0.34, 0}, -- NodeBox7
{-0.1875, -0.5, -0.3125, -0.1, -0.4, -0.225}, -- NodeBox8
{-0.1975, -0.5, -0.3225, -0.1, -0.375, -0.3125}, -- NodeBox9
{-0.1975, -0.5, -0.235, -0.1, -0.375, -0.225}, -- NodeBox10
{-0.1975, -0.5, -0.3225, -0.1875, -0.375, -0.225}, -- NodeBox11
{-0.11, -0.5, -0.3225, -0.1, -0.375, -0.225}, -- NodeBox12
{-0.1, -0.485, -0.2838, -0.06, -0.475, -0.2638}, -- NodeBox13
{-0.1, -0.4, -0.2838, -0.06, -0.39, -0.2638}, -- NodeBox14
{-0.075, -0.485, -0.2838, -0.06, -0.39, -0.2638}, -- NodeBox15
}
},
selection_box = {
type = "fixed",
fixed = { -0.22, -0.5, -0.35, 0.4, 0.21, 0.5 }
}
}) })
local fdir_to_steampos = { local fdir_to_steampos = {

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 B