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-05-17 21:15:41 +02:00
|
|
|
if minetest.get_modpath("vessels")
|
|
|
|
and minetest.registered_nodes["vessels:shelf"]
|
|
|
|
and minetest.registered_nodes["vessels:glass_bottle"]
|
|
|
|
and minetest.registered_nodes["vessels:drinking_glass"] then
|
|
|
|
|
2015-04-22 03:14:36 -04:00
|
|
|
minetest.override_item("vessels:shelf", {
|
|
|
|
drawtype = "mesh",
|
2015-05-17 17:17:19 -04:00
|
|
|
mesh = "3dvessels_shelf.obj",
|
2015-04-22 03:14:36 -04:00
|
|
|
tiles = {
|
|
|
|
"default_wood.png",
|
|
|
|
"default_wood.png^3dbookshelf_inside_back.png",
|
2015-05-17 17:17:19 -04:00
|
|
|
"3dvessels_shelf_glass.png",
|
2015-04-22 03:14:36 -04:00
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
2015-05-17 21:15:41 +02:00
|
|
|
use_texture_alpha = true
|
|
|
|
})
|
2016-12-15 13:23:31 -08:00
|
|
|
|
2015-05-17 21:15:41 +02:00
|
|
|
local sbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.5, -0.15, 0.15, -0.1, 0.15 }
|
|
|
|
}
|
|
|
|
|
|
|
|
minetest.override_item("vessels:glass_bottle", {
|
|
|
|
drawtype = "mesh",
|
2015-05-17 17:17:19 -04:00
|
|
|
mesh = "3dvessels_bottle.obj",
|
|
|
|
tiles = {"3dvessels_shelf_glass.png"},
|
2015-05-17 21:15:41 +02:00
|
|
|
inventory_image = "3dvessels_glass_bottle_inv.png",
|
|
|
|
wield_image = "3dvessels_glass_bottle_inv.png",
|
|
|
|
use_texture_alpha = true,
|
|
|
|
selection_box = sbox
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.override_item("vessels:steel_bottle", {
|
|
|
|
drawtype = "mesh",
|
2015-05-17 17:17:19 -04:00
|
|
|
mesh = "3dvessels_bottle_steel.obj",
|
2015-05-17 21:15:41 +02:00
|
|
|
tiles = {"bottle_metal_bright.png"},
|
|
|
|
inventory_image = "3dvessels_steel_bottle_inv.png",
|
|
|
|
wield_image = "3dvessels_steel_bottle_inv.png",
|
|
|
|
selection_box = sbox
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.override_item("vessels:drinking_glass", {
|
|
|
|
drawtype = "mesh",
|
2015-05-17 17:17:19 -04:00
|
|
|
mesh = "3dvessels_drink.obj",
|
|
|
|
tiles = {"3dvessels_shelf_glass.png"},
|
2015-05-17 21:15:41 +02:00
|
|
|
inventory_image = "3dvessels_drinking_glass_inv.png",
|
|
|
|
wield_image = "3dvessels_drinking_glass_inv.png",
|
|
|
|
use_texture_alpha = true,
|
|
|
|
selection_box = sbox
|
2015-04-22 03:14:36 -04:00
|
|
|
})
|
|
|
|
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
|