add middle shelf to open medicine cabinet,

make closed and opened both non-walkable
This commit is contained in:
Vanessa Ezekowitz 2015-05-04 04:21:11 -04:00
parent 9d76512cd0
commit 495af4ce5c
2 changed files with 21 additions and 15 deletions

View File

@ -70,6 +70,7 @@ homedecor.register("medicine_cabinet", {
type = "fixed",
fixed = {-0.3125, -0.1875, 0.3125, 0.3125, 0.5, 0.5}
},
walkable = false,
groups = { snappy = 3 },
sounds = default.node_sound_wood_defaults(),
on_punch = function(pos, node, puncher, pointed_thing)
@ -93,6 +94,7 @@ homedecor.register("medicine_cabinet_open", {
type = "fixed",
fixed = {-0.3125, -0.1875, -0.25, 0.3125, 0.5, 0.5}
},
walkable = false,
groups = { snappy = 3, not_in_creative_inventory=1 },
drop = "homedecor:medicine_cabinet",
on_punch = function(pos, node, puncher, pointed_thing)

View File

@ -23,20 +23,16 @@ v -0.250000 0.500000 0.375000
v -0.250000 -0.187500 0.375000
v -0.250000 0.500000 -0.250000
v -0.250000 -0.187500 -0.250000
v -0.312500 0.500000 0.375000
v -0.312500 -0.187500 0.375000
v 0.312500 -0.187500 0.375000
v 0.312500 0.500000 0.375000
v -0.312500 0.437500 0.375000
v 0.312500 0.437500 0.375000
v -0.312500 -0.125000 0.375000
v 0.312500 -0.125000 0.375000
v 0.250000 0.437500 0.375000
v 0.250000 -0.125000 0.375000
v 0.250000 0.437500 0.375000
v 0.250000 -0.125000 0.375000
v -0.250000 0.437500 0.375000
v -0.250000 0.125000 0.375000
v 0.250000 0.125000 0.375000
v 0.250000 0.187500 0.375000
v -0.250000 0.187500 0.375000
v -0.250000 -0.125000 0.375000
v -0.250000 0.437500 0.375000
v 0.312500 0.437500 0.375000
v 0.312500 -0.125000 0.375000
vt 0.875000 0.875000
vt 0.875000 1.000000
vt 0.187500 1.000000
@ -66,6 +62,12 @@ vt 0.250000 0.937500
vt 0.250000 0.375000
vt 0.875000 0.750000
vt 0.187500 0.750000
vt 0.750000 0.312500
vt 0.750000 1.000000
vt 0.250000 0.687500
vt 0.250000 0.625000
vt 0.750000 0.625000
vt 0.750000 0.687500
vn 1.000000 0.000000 0.000000
vn 0.000000 0.000000 1.000000
vn -1.000000 0.000000 -0.000000
@ -87,10 +89,12 @@ f 22/7/1 21/5/1 19/3/1 20/6/1
f 15/24/3 16/25/3 13/8/3 11/11/3
f 17/26/3 12/10/3 14/9/3 18/27/3
f 10/21/6 21/28/6 22/29/6 9/22/6
f 25/6/6 24/7/6 29/8/6 30/9/6
f 23/5/6 26/3/6 28/10/6 27/11/6
f 31/26/6 28/10/6 30/9/6 32/27/6
f 8/6/6 20/30/6 29/25/6 32/9/6
f 19/31/6 7/3/6 31/10/6 30/24/6
f 23/26/6 31/10/6 32/9/6 24/27/6
f 27/32/6 26/33/6 25/34/6 28/35/6
g Cylinder_Cylinder_mirror
f 16/25/3 15/24/3 17/26/3 18/27/3
g Cylinder_Cylinder_inside
f 34/27/6 36/25/6 35/24/6 33/26/6
f 23/26/6 27/32/6 28/35/6 30/24/6
f 25/34/6 26/33/6 24/27/6 29/25/6