use mesh nodes for former-3dforniture toilets

This commit is contained in:
Vanessa Ezekowitz 2015-04-18 04:22:12 -04:00
parent 877e6f3607
commit 5de0fc7538
3 changed files with 3194 additions and 30 deletions

View File

@ -1,19 +1,21 @@
local S = homedecor.gettext local S = homedecor.gettext
local toilet_cbox = {
type = "fixed",
fixed = { -6/16, -8/16, -8/16, 6/16, 9/16, 8/16 }
}
homedecor.register("toilet", { homedecor.register("toilet", {
description = S("Toilet"), description = S("Toilet"),
tiles = { "forniture_marble.png" }, mesh = "homedecor_toilet_closed.obj",
node_box = { tiles = {
type = "fixed", "homedecor_marble_light.png",
fixed = { "homedecor_marble_light.png",
{ -0.20, -0.50, -0.20, 0.20, -0.45, 0.50, }, "homedecor_marble_light.png",
{ -0.10, -0.45, -0.10, 0.10, 0.00, 0.50, }, "forniture_metal.png"
{ -0.30, -0.20, -0.30, 0.30, 0.00, 0.35, },
{ -0.25, 0.00, -0.25, 0.25, 0.05, 0.25, },
{ -0.30, 0.00, 0.30, 0.30, 0.40, 0.50, },
{ -0.05, 0.40, 0.35, 0.05, 0.45, 0.45, },
},
}, },
selection_box = toilet_cbox,
collision_box = toilet_cbox,
groups = {cracky=3,}, groups = {cracky=3,},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
on_punch = function (pos, node, puncher) on_punch = function (pos, node, puncher)
@ -23,27 +25,16 @@ homedecor.register("toilet", {
}) })
homedecor.register("toilet_open", { homedecor.register("toilet_open", {
mesh = "homedecor_toilet_open.obj",
tiles = { tiles = {
"forniture_marble_top_toilet.png", "homedecor_marble_light.png",
"forniture_marble.png" "homedecor_marble_light.png",
}, "homedecor_marble_light.png",
node_box = { "default_water.png",
type = "fixed", "forniture_metal.png"
fixed = {
{ -0.20, -0.50, -0.20, 0.20, -0.45, 0.50, },
{ -0.10, -0.45, -0.10, 0.10, -0.20, 0.50, },
{ -0.10, -0.20, 0.30, 0.10, 0.00, 0.50, },
{ -0.30, -0.20, 0.10, 0.30, 0.00, 0.35, },
{ -0.30, -0.20, -0.30, -0.10, -0.15, 0.10, },
{ -0.10, -0.20, -0.30, 0.10, -0.15, -0.10, },
{ 0.10, -0.20, -0.30, 0.30, -0.15, 0.10, },
{ -0.30, -0.15, -0.30, -0.20, 0.00, 0.10, },
{ -0.20, -0.15, -0.30, 0.20, 0.00, -0.20, },
{ 0.20, -0.15, -0.30, 0.30, 0.00, 0.10, },
{ -0.25, 0.00, 0.20, 0.25, 0.50, 0.25, },
{ -0.30, 0.00, 0.30, 0.30, 0.40, 0.50, },
},
}, },
selection_box = toilet_cbox,
collision_box = toilet_cbox,
drop = "homedecor:toilet", drop = "homedecor:toilet",
groups = {cracky = 3,}, groups = {cracky = 3,},
--sounds = {dig = "3dforniture_dig_toilet", gain=0.5}, --sounds = {dig = "3dforniture_dig_toilet", gain=0.5},

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff