forked from nalc/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 toilet_cbox = {
|
||||
type = "fixed",
|
||||
fixed = { -6/16, -8/16, -8/16, 6/16, 9/16, 8/16 }
|
||||
}
|
||||
|
||||
homedecor.register("toilet", {
|
||||
description = S("Toilet"),
|
||||
tiles = { "forniture_marble.png" },
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.20, -0.50, -0.20, 0.20, -0.45, 0.50, },
|
||||
{ -0.10, -0.45, -0.10, 0.10, 0.00, 0.50, },
|
||||
{ -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, },
|
||||
},
|
||||
mesh = "homedecor_toilet_closed.obj",
|
||||
tiles = {
|
||||
"homedecor_marble_light.png",
|
||||
"homedecor_marble_light.png",
|
||||
"homedecor_marble_light.png",
|
||||
"forniture_metal.png"
|
||||
},
|
||||
selection_box = toilet_cbox,
|
||||
collision_box = toilet_cbox,
|
||||
groups = {cracky=3,},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_punch = function (pos, node, puncher)
|
||||
|
@ -23,27 +25,16 @@ homedecor.register("toilet", {
|
|||
})
|
||||
|
||||
homedecor.register("toilet_open", {
|
||||
mesh = "homedecor_toilet_open.obj",
|
||||
tiles = {
|
||||
"forniture_marble_top_toilet.png",
|
||||
"forniture_marble.png"
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
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, },
|
||||
},
|
||||
"homedecor_marble_light.png",
|
||||
"homedecor_marble_light.png",
|
||||
"homedecor_marble_light.png",
|
||||
"default_water.png",
|
||||
"forniture_metal.png"
|
||||
},
|
||||
selection_box = toilet_cbox,
|
||||
collision_box = toilet_cbox,
|
||||
drop = "homedecor:toilet",
|
||||
groups = {cracky = 3,},
|
||||
--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