use mesh node for 3d bookshelf

(but not moreblocks empty one, isn't needed there)
This commit is contained in:
Vanessa Ezekowitz 2014-12-14 05:49:46 -05:00
parent d1064c2beb
commit fecde79709
5 changed files with 1098 additions and 61 deletions

Binary file not shown.

View File

@ -1,67 +1,9 @@
minetest.override_item("default:bookshelf", {
drawtype = "nodebox",
tiles = {
"3dbookshelf_top.png",
"3dbookshelf_bottom.png",
"3dbookshelf_sides.png",
"3dbookshelf_sides.png",
"3dbookshelf_fb.png",
"3dbookshelf_fb.png"
},
drawtype = "mesh",
mesh = "3dbookshelf.obj",
tiles = { "3dbookshelf.png" },
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.1875, 0.5, 0.5, 0.1875},
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5},
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
{-0.5, -0.0625, -0.5, 0.5, 0.0625, 0.5},
{-0.4375, 0.0625, -0.486, -0.3125, 0.375, -0.125},
{-0.3125, 0.0625, -0.420, -0.25, 0.3125, -0.125},
{-0.25, 0.0625, -0.456, -0.1875, 0.375, -0.125},
{-0.125, 0.0625, -0.481, 0, 0.4375, -0.125},
{0, 0.0625, -0.4375, 0.0625, 0.3125, -0.125},
{0.0625, 0.0625, -0.461, 0.125, 0.375, -0.125},
{0.125, 0.0625, -0.425, 0.1875, 0.25, -0.125},
{0.1875, 0.0625, -0.456, 0.25, 0.3125, -0.125},
{0.25, 0.0625, -0.430, 0.3125, 0.25, -0.125},
{0.3125, 0.0625, -0.456, 0.4375, 0.375, -0.125},
{-0.4375, -0.4375, -0.456, -0.25, -0.125, -0.125},
{-0.25, -0.4375, -0.435, -0.125, -0.1875, -0.125},
{-0.125, -0.4375, -0.466, -0.0625, -0.125, -0.125},
{-0.0625, -0.4375, -0.476, 0, -0.1875, -0.125},
{0.25, -0.4375, -0.471, 0.375, -0.125, -0.125},
{0.375, -0.4375, -0.445, 0.4375, -0.1875, -0.125},
{0.3125, 0.0625, 0.125, 0.4375, 0.375, 0.471},
{0.25, 0.0625, 0.125, 0.3125, 0.3125, 0.461},
{0.1875, 0.0625, 0.125, 0.25, 0.375, 0.430},
{0, 0.0625, 0.125, 0.125, 0.4375, 0.497},
{-0.0625, 0.0625, 0.125, 0, 0.3125, 0.435},
{-0.125, 0.0625, 0.125, -0.0625, 0.375, 0.437},
{-0.1875, 0.0625, 0.125, -0.125, 0.25, 0.379},
{-0.25, 0.0625, 0.125, -0.1875, 0.3125, 0.445},
{-0.3125, 0.0625, 0.125, -0.25, 0.25, 0.425},
{-0.4375, 0.0625, 0.125, -0.3125, 0.375, 0.458},
{0.25, -0.4375, 0.125, 0.4375, -0.125, 0.437},
{0.125, -0.4375, 0.125, 0.25, -0.1875, 0.461},
{0.0625, -0.4375, 0.125, 0.125, -0.125, 0.435},
{-0.0625, -0.4375, 0.1875, 0, -0.1875, 0.456},
{-0.25, -0.4375, 0.125, -0.1875, -0.125, 0.394},
{-0.375, -0.4375, 0.125, -0.25, -0.0625, 0.430},
{-0.4375, -0.4375, 0.125, -0.375, -0.125, 0.394},
{-0.125, -0.4375, 0.125, -0.0625, -0.1875, 0.437},
{0.125, -0.4375, -0.435, 0.25, -0.1875, -0.125},
{0, -0.4375, -0.430, 0.0625, -0.1875, -0.125},
{0.0625, -0.4375, -0.461, 0.125, -0.1875, -0.125},
{-0.1875, 0.0625, -0.4375, -0.125, 0.375, -0.125},
{0.125, 0.0625, 0.125, 0.1875, 0.375, 0.448},
{0, -0.4375, 0.125, 0.0625, -0.1875, 0.471},
{-0.1875, -0.4375, 0.125, -0.125, -0.1875, 0.466},
}
}
})
if minetest.get_modpath("moreblocks") then

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B