2014-05-29 18:52:51 -04:00
|
|
|
minetest.override_item("default:bookshelf", {
|
2014-12-14 05:49:46 -05:00
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "3dbookshelf.obj",
|
2015-04-17 06:02:36 -04:00
|
|
|
tiles = {
|
|
|
|
"default_wood.png",
|
|
|
|
"default_wood.png^3dbookshelf_inside_back.png",
|
|
|
|
"3dbookshelf_books.png",
|
|
|
|
},
|
2014-05-29 18:52:51 -04:00
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
})
|
2014-05-29 19:06:53 -04:00
|
|
|
|
2015-04-22 03:14:36 -04:00
|
|
|
if minetest.get_modpath("vessels") and minetest.registered_nodes["vessels:shelf"] then
|
|
|
|
minetest.override_item("vessels:shelf", {
|
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "3dvesselshelf.obj",
|
|
|
|
tiles = {
|
|
|
|
"default_wood.png",
|
|
|
|
"default_wood.png^3dbookshelf_inside_back.png",
|
|
|
|
"3dvesselshelf_glass.png",
|
|
|
|
},
|
|
|
|
use_texture_alpha = true,
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
})
|
|
|
|
end
|
2015-04-17 06:02:36 -04:00
|
|
|
|
2014-05-29 19:13:23 -04:00
|
|
|
if minetest.get_modpath("moreblocks") then
|
|
|
|
minetest.override_item("moreblocks:empty_bookshelf", {
|
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles = {
|
2015-04-17 06:02:36 -04:00
|
|
|
"default_wood.png^[transformR180",
|
|
|
|
"default_wood.png",
|
|
|
|
"default_wood.png^[transformR90",
|
|
|
|
"default_wood.png^[transformR270",
|
|
|
|
"default_wood.png^3dbookshelf_inside_back.png",
|
|
|
|
"default_wood.png^3dbookshelf_inside_back.png"
|
2014-05-29 19:13:23 -04:00
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
2014-05-29 22:47:05 -04: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-29 19:13:23 -04:00
|
|
|
}
|
2014-05-29 19:06:53 -04:00
|
|
|
}
|
2014-05-29 19:13:23 -04:00
|
|
|
})
|
|
|
|
end
|
2014-05-30 00:42:35 -04:00
|
|
|
|