forked from mtcontrib/homedecor_modpack
use mesh nodes for former-3dforniture toilets
This commit is contained in:
parent
877e6f3607
commit
5de0fc7538
@ -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},
|
||||||
|
1418
homedecor/models/homedecor_toilet_closed.obj
Normal file
1418
homedecor/models/homedecor_toilet_closed.obj
Normal file
File diff suppressed because it is too large
Load Diff
1755
homedecor/models/homedecor_toilet_open.obj
Normal file
1755
homedecor/models/homedecor_toilet_open.obj
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user