2014-05-30 00:52:51 +02:00
|
|
|
minetest.override_item("default:bookshelf", {
|
2014-12-14 11:49:46 +01:00
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "3dbookshelf.obj",
|
|
|
|
tiles = { "3dbookshelf.png" },
|
2014-05-30 00:52:51 +02:00
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
})
|
2014-05-30 01:06:53 +02:00
|
|
|
|
2014-05-30 01:13:23 +02:00
|
|
|
if minetest.get_modpath("moreblocks") then
|
|
|
|
minetest.override_item("moreblocks:empty_bookshelf", {
|
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles = {
|
|
|
|
"3dbookshelf_top.png",
|
|
|
|
"3dbookshelf_bottom.png",
|
|
|
|
"3dbookshelf_sides.png",
|
|
|
|
"3dbookshelf_sides.png",
|
|
|
|
"3dbookshelf_fb_empty.png",
|
|
|
|
"3dbookshelf_fb_empty.png"
|
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
2014-05-30 04:47:05 +02:00
|
|
|
{-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},
|
2014-05-30 01:13:23 +02:00
|
|
|
}
|
2014-05-30 01:06:53 +02:00
|
|
|
}
|
2014-05-30 01:13:23 +02:00
|
|
|
})
|
|
|
|
end
|
2014-05-30 06:42:35 +02:00
|
|
|
|