Chest: Redo new chests to use single-tile textures where possible

This keeps the filenames the same, but adds a new "inside" double texture
for the open chest.
Use regular drawtype for closed chest and delete the "cube.obj" model.
X-flip the right-side texture for the closed chest.
This commit is contained in:
Vanessa Ezekowitz 2017-05-08 15:29:07 -04:00 committed by paramat
parent 758d5010b8
commit d104b9b10f
8 changed files with 97 additions and 126 deletions

View File

@ -136,10 +136,10 @@ BlockMen (CC BY-SA 3.0):
default_lava_source_animated.png default_lava_source_animated.png
default_lava_flowing_animated.png default_lava_flowing_animated.png
default_stick.png default_stick.png
default_chest_front.png -- Texture kept for mod compability default_chest_front.png
default_chest_lock.png -- Texture kept for mod compability default_chest_lock.png
default_chest_side.png -- Texture kept for mod compability default_chest_side.png
default_chest_top.png -- Texture kept for mod compability default_chest_top.png
default_mineral_mese.png default_mineral_mese.png
default_meselamp.png default_meselamp.png
bubble.png bubble.png
@ -154,7 +154,7 @@ sofar (CC BY-SA 3.0):
default_aspen_tree default_aspen_tree
default_aspen_tree_top, derived from default_pine_tree_top (by paramat) default_aspen_tree_top, derived from default_pine_tree_top (by paramat)
default_aspen_wood, derived from default_pine_wood (by paramat) default_aspen_wood, derived from default_pine_wood (by paramat)
default_chest_wood, default_chest_wood_locked derived from default_chest_* textures by BlockMen default_chest_inside
sofar (WTFPL): sofar (WTFPL):
default_gravel.png -- Derived from Gambit's PixelBOX texture pack light gravel default_gravel.png -- Derived from Gambit's PixelBOX texture pack light gravel

View File

@ -1,88 +1,79 @@
# Blender v2.78 (sub 0) OBJ File: 'chest_open.blend' # Blender v2.78 (sub 0) OBJ File: 'chest-open.blend'
# www.blender.org # www.blender.org
mtllib chest_open.mtl o Top_Cube.002_None_Top_Cube.002_None_bottom
o Bottom_Cube.001
v -0.500000 -0.500000 0.500000
v -0.500000 0.187500 0.500000
v -0.500000 -0.500000 -0.500000
v -0.500000 0.187500 -0.500000
v 0.500000 -0.500000 0.500000
v 0.500000 0.187500 0.500000
v 0.500000 -0.500000 -0.500000
v 0.500000 0.187500 -0.500000
vt 0.7500 0.3438
vt 0.5000 0.3438
vt 0.5000 0.0000
vt 0.7500 0.0000
vt 0.2500 0.3438
vt 0.2500 0.0000
vt 0.0000 0.3438
vt 0.0000 0.0000
vt 0.7500 0.8438
vt 0.5000 0.8438
vt 0.5000 0.5000
vt 0.7500 0.5000
vt 0.2500 0.5000
vt 0.2500 1.0000
vt 0.0000 1.0000
vt 0.0000 0.5000
vt 0.7500 -0.0000
vt 0.7500 0.5000
vt 1.0000 0.5000
vt 1.0000 0.0000
vn -1.0000 0.0000 0.0000
vn 0.0000 0.0000 -1.0000
vn 1.0000 0.0000 0.0000
vn 0.0000 0.0000 1.0000
vn 0.0000 -1.0000 0.0000
vn 0.0000 1.0000 0.0000
g Bottom_Cube.001_None
usemtl None
s off
f 2/1/1 4/2/1 3/3/1 1/4/1
f 4/2/2 8/5/2 7/6/2 3/3/2
f 8/5/3 6/7/3 5/8/3 7/6/3
f 6/9/4 2/10/4 1/11/4 5/12/4
f 1/13/5 3/14/5 7/15/5 5/16/5
f 6/17/6 8/18/6 4/19/6 2/20/6
o Top_Cube.002
v -0.500000 0.187501 0.499999
v -0.500000 0.408471 0.720970 v -0.500000 0.408471 0.720970
v -0.500000 0.894607 -0.207108
v -0.500000 1.115578 0.013863 v -0.500000 1.115578 0.013863
v 0.500000 0.187501 0.499999 v -0.500000 0.894607 -0.207108
v 0.500000 0.408471 0.720970 v -0.500000 0.187501 0.499999
v 0.500000 0.894607 -0.207108
v 0.500000 1.115578 0.013863 v 0.500000 1.115578 0.013863
vt 0.7500 0.5000 v 0.500000 0.408471 0.720970
vt 0.5000 0.5000 v 0.500000 0.187501 0.499999
vt 0.5000 0.3438 v 0.500000 0.894607 -0.207108
vt 0.7500 0.3438 v -0.500000 0.187500 -0.500000
vt 0.2500 0.5000 v -0.500000 -0.500000 -0.500000
vt 0.2500 0.3438 v -0.500000 -0.500000 0.500000
vt 0.0000 0.5000 v 0.500000 0.187500 -0.500000
vt 0.0000 0.3438 v 0.500000 -0.500000 0.500000
vt 0.7500 1.0000 v 0.500000 -0.500000 -0.500000
vt 0.5000 1.0000 vt 0.0000 1.0000
vt 0.5000 0.8438 vt 0.0000 0.0000
vt 0.7500 0.8438 vt 1.0000 0.0000
vt 1.0000 1.0000
vt 1.0000 0.0000
vt 1.0000 1.0000
vt 0.0000 1.0000
vt 0.0000 0.0000
vt 0.0000 1.0000
vt 1.0000 1.0000
vt 1.0000 0.6875
vt 0.0000 0.6875
vt 1.0000 1.0000
vt 0.0000 0.6875
vt 1.0000 0.6875
vt 1.0000 0.6875
vt 1.0000 0.0000
vt 0.0000 0.0000
vt 1.0000 0.6875
vt 1.0000 0.0000
vt 1.0000 1.0000
vt 1.0000 0.6875
vt 1.0000 0.0000
vt 0.0000 1.0000
vt 0.0000 0.6875
vt 0.0000 0.6875
vt 0.0000 0.0000
vt 1.0000 0.5000 vt 1.0000 0.5000
vt 1.0000 1.0000 vt 1.0000 1.0000
vt 0.7500 1.0000 vt 0.0000 1.0000
vt 0.7500 0.5000 vt 0.0000 0.5000
vt 0.2500 1.0000 vt 0.0000 0.0000
vn -1.0000 0.0000 0.0000 vt 1.0000 0.0000
vn 0.0000 0.7071 -0.7071
vn 1.0000 0.0000 0.0000
vn 0.0000 -0.7071 0.7071
vn 0.0000 -0.7071 -0.7071
vn 0.0000 0.7071 0.7071 vn 0.0000 0.7071 0.7071
g Top_Cube.002_None vn -0.0000 -1.0000 -0.0000
usemtl None vn -1.0000 0.0000 0.0000
vn 1.0000 0.0000 -0.0000
vn 0.0000 -0.7071 0.7071
vn 0.0000 0.0000 1.0000
vn -0.0000 0.7071 -0.7071
vn -0.0000 0.0000 -1.0000
vn -0.0000 -0.7071 -0.7071
vn -0.0000 1.0000 -0.0000
g Top_Cube.002_None_Top_Cube.002_None_bottom_Top_Cube.002_None_Top_Cube.002_None_bottom_Top
s off s off
f 10/21/7 12/22/7 11/23/7 9/24/7 f 6/1/1 5/2/1 2/3/1 1/4/1
f 12/22/8 16/25/8 15/26/8 11/23/8 g Top_Cube.002_None_Top_Cube.002_None_bottom_Top_Cube.002_None_Top_Cube.002_None_bottom_Bottom
f 16/25/9 14/27/9 13/28/9 15/26/9 f 11/5/2 10/6/2 14/7/2 13/8/2
f 14/29/10 10/30/10 9/31/10 13/32/10 g Top_Cube.002_None_Top_Cube.002_None_bottom_Top_Cube.002_None_Top_Cube.002_None_bottom_Right-Left
f 9/33/11 11/34/11 15/35/11 13/36/11 f 1/9/3 2/10/3 3/11/3 4/12/3
f 14/37/12 16/25/12 12/22/12 10/30/12 f 5/13/4 6/1/4 7/14/4 8/15/4
f 4/12/3 9/16/3 10/17/3 11/18/3
f 12/19/4 7/14/4 13/8/4 14/20/4
g Top_Cube.002_None_Top_Cube.002_None_bottom_Top_Cube.002_None_Top_Cube.002_None_bottom_Back
f 6/21/5 1/9/5 4/12/5 7/22/5
f 7/22/6 4/12/6 11/18/6 13/23/6
g Top_Cube.002_None_Top_Cube.002_None_bottom_Top_Cube.002_None_Top_Cube.002_None_bottom_Front
f 2/10/7 5/24/7 8/25/7 3/11/7
f 9/16/8 12/26/8 14/27/8 10/17/8
g Top_Cube.002_None_Top_Cube.002_None_bottom_Top_Cube.002_None_Top_Cube.002_None_bottom_Inside
f 4/28/9 3/29/9 8/30/9 7/31/9
f 7/31/10 12/32/10 9/33/10 4/28/10

View File

@ -1,38 +0,0 @@
# Blender v2.76 (sub 0) OBJ File: 'chest_close.blend'
# www.blender.org
mtllib chest_close.mtl
o Cube_Cube.001
v -0.500000 -0.500000 0.500000
v -0.500000 0.500000 0.500000
v -0.500000 -0.500000 -0.500000
v -0.500000 0.500000 -0.500000
v 0.500000 -0.500000 0.500000
v 0.500000 0.500000 0.500000
v 0.500000 -0.500000 -0.500000
v 0.500000 0.500000 -0.500000
vt 0.750000 0.500000
vt 0.500000 0.500000
vt 0.500000 -0.000000
vt 0.750000 0.000000
vt 0.250000 0.500000
vt 0.250000 0.000000
vt 0.000000 0.500000
vt -0.000000 0.000000
vt 0.750000 1.000000
vt 0.500000 1.000000
vt 0.250000 1.000000
vt -0.000000 1.000000
vn -1.000000 0.000000 0.000000
vn 0.000000 0.000000 -1.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 -1.000000 0.000000
vn 0.000000 1.000000 0.000000
usemtl None
s off
f 2/1/1 4/2/1 3/3/1 1/4/1
f 4/2/2 8/5/2 7/6/2 3/3/2
f 8/5/3 6/7/3 5/8/3 7/6/3
f 6/9/4 2/10/4 1/2/4 5/1/4
f 1/5/5 3/11/5 7/12/5 5/7/5
f 6/11/6 8/5/6 4/2/6 2/10/6

View File

@ -1999,7 +1999,11 @@ function default.register_chest(name, d)
return false return false
end end
def_closed.mesh = "cube.obj" def_closed.mesh = nil
def_closed.drawtype = nil
def_closed.tiles[6] = def.tiles[5] -- swap textures around for "normal"
def_closed.tiles[5] = def.tiles[3] -- drawtype to make them match the mesh
def_closed.tiles[3] = def.tiles[3].."^[transformFX"
minetest.register_node("default:" .. name, def_closed) minetest.register_node("default:" .. name, def_closed)
minetest.register_node("default:" .. name .. "_open", def_opened) minetest.register_node("default:" .. name .. "_open", def_opened)
@ -2026,7 +2030,14 @@ end
default.register_chest("chest", { default.register_chest("chest", {
description = "Chest", description = "Chest",
tiles = { "default_chest_wood.png" }, tiles = {
"default_chest_top.png",
"default_chest_top.png",
"default_chest_side.png",
"default_chest_side.png",
"default_chest_front.png",
"default_chest_inside.png"
},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
sound_open = "default_chest_open", sound_open = "default_chest_open",
sound_close = "default_chest_close", sound_close = "default_chest_close",
@ -2035,7 +2046,14 @@ default.register_chest("chest", {
default.register_chest("chest_locked", { default.register_chest("chest_locked", {
description = "Locked Chest", description = "Locked Chest",
tiles = { "default_chest_wood_locked.png" }, tiles = {
"default_chest_top.png",
"default_chest_top.png",
"default_chest_side.png",
"default_chest_side.png",
"default_chest_lock.png",
"default_chest_inside.png"
},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
sound_open = "default_chest_open", sound_open = "default_chest_open",
sound_close = "default_chest_close", sound_close = "default_chest_close",

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 B

After

Width:  |  Height:  |  Size: 423 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB