2022-05-03 15:21:14 -04:00
|
|
|
if minetest.get_modpath("default") then
|
|
|
|
minetest.override_item("default:bookshelf", {
|
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "homedecor_3d_bookshelf.obj",
|
|
|
|
tiles = {
|
|
|
|
"default_wood.png",
|
|
|
|
"default_wood.png^homedecor_3d_bookshelf_inside_back.png",
|
|
|
|
"homedecor_3d_bookshelf_books.png",
|
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
})
|
|
|
|
end
|
2014-05-29 19:06:53 -04:00
|
|
|
|
2019-05-28 06:26:50 -04:00
|
|
|
if minetest.get_modpath("vessels") then
|
2015-04-22 03:14:36 -04:00
|
|
|
minetest.override_item("vessels:shelf", {
|
|
|
|
drawtype = "mesh",
|
2019-05-28 06:38:18 -04:00
|
|
|
mesh = "homedecor_3d_vessels_shelf.obj",
|
2015-04-22 03:14:36 -04:00
|
|
|
tiles = {
|
|
|
|
"default_wood.png",
|
2019-05-28 06:38:18 -04:00
|
|
|
"default_wood.png^homedecor_3d_bookshelf_inside_back.png",
|
|
|
|
"homedecor_3d_vessels_shelf_glass.png",
|
2015-04-22 03:14:36 -04:00
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
2022-02-07 08:18:17 -05:00
|
|
|
use_texture_alpha = "blend",
|
2015-05-17 21:15:41 +02:00
|
|
|
})
|
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",
|
2019-05-28 06:38:18 -04:00
|
|
|
mesh = "homedecor_3d_vessels_bottle.obj",
|
|
|
|
tiles = {"homedecor_3d_vessels_shelf_glass.png"},
|
|
|
|
inventory_image = "homedecor_3d_vessels_glass_bottle_inv.png",
|
|
|
|
wield_image = "homedecor_3d_vessels_glass_bottle_inv.png",
|
2022-02-07 08:18:17 -05:00
|
|
|
use_texture_alpha = "blend",
|
2015-05-17 21:15:41 +02:00
|
|
|
selection_box = sbox
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.override_item("vessels:steel_bottle", {
|
|
|
|
drawtype = "mesh",
|
2019-05-28 06:38:18 -04:00
|
|
|
mesh = "homedecor_3d_vessels_bottle_steel.obj",
|
|
|
|
tiles = {"homedecor_3d_bottle_metal_bright.png"},
|
|
|
|
inventory_image = "homedecor_3d_vessels_steel_bottle_inv.png",
|
|
|
|
wield_image = "homedecor_3d_vessels_steel_bottle_inv.png",
|
2015-05-17 21:15:41 +02:00
|
|
|
selection_box = sbox
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.override_item("vessels:drinking_glass", {
|
|
|
|
drawtype = "mesh",
|
2019-05-28 06:38:18 -04:00
|
|
|
mesh = "homedecor_3d_vessels_drink.obj",
|
|
|
|
tiles = {"homedecor_3d_vessels_shelf_glass.png"},
|
|
|
|
inventory_image = "homedecor_3d_vessels_drinking_glass_inv.png",
|
|
|
|
wield_image = "homedecor_3d_vessels_drinking_glass_inv.png",
|
2022-02-07 08:18:17 -05:00
|
|
|
use_texture_alpha = "blend",
|
2015-05-17 21:15:41 +02:00
|
|
|
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",
|
2019-05-28 06:38:18 -04:00
|
|
|
"default_wood.png^homedecor_3d_bookshelf_inside_back.png",
|
|
|
|
"default_wood.png^homedecor_3d_bookshelf_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
|
2019-05-28 06:26:50 -04:00
|
|
|
|
|
|
|
-- 3d-ify default mtg wood and steel doors and trap doors
|
|
|
|
|
|
|
|
if minetest.get_modpath("doors") then
|
|
|
|
local def
|
|
|
|
for _,mat in ipairs({"wood", "steel"}) do
|
2019-06-18 15:04:08 -04:00
|
|
|
def = table.copy(minetest.registered_nodes["doors:door_"..mat.."_a"])
|
2019-05-28 06:26:50 -04:00
|
|
|
def.mesh = "homedecor_3d_door_"..mat.."_a.obj"
|
|
|
|
minetest.register_node(":doors:door_"..mat.."_a", def)
|
|
|
|
|
2019-06-18 15:04:08 -04:00
|
|
|
def = table.copy(minetest.registered_nodes["doors:door_"..mat.."_b"])
|
2019-05-28 06:26:50 -04:00
|
|
|
def.mesh = "homedecor_3d_door_"..mat.."_b.obj"
|
|
|
|
minetest.register_node(":doors:door_"..mat.."_b", def)
|
|
|
|
end
|
|
|
|
|
|
|
|
for _,mat in ipairs({"", "_steel"}) do
|
2019-06-18 15:04:08 -04:00
|
|
|
def = table.copy(minetest.registered_nodes["doors:trapdoor"..mat])
|
2019-05-28 06:26:50 -04:00
|
|
|
def.drawtype = "mesh"
|
|
|
|
def.mesh = "homedecor_3d_trapdoor"..mat..".obj"
|
|
|
|
def.tiles = {
|
|
|
|
"doors_trapdoor"..mat..".png",
|
|
|
|
"doors_trapdoor"..mat.."_side.png"
|
|
|
|
}
|
|
|
|
minetest.register_node(":doors:trapdoor"..mat, def)
|
|
|
|
|
2019-06-18 15:04:08 -04:00
|
|
|
def = table.copy(minetest.registered_nodes["doors:trapdoor"..mat.."_open"])
|
2019-05-28 06:26:50 -04:00
|
|
|
def.mesh = "homedecor_3d_trapdoor"..mat.."_open.obj"
|
|
|
|
def.drawtype = "mesh"
|
|
|
|
def.tiles = {
|
|
|
|
"doors_trapdoor"..mat..".png",
|
|
|
|
"doors_trapdoor"..mat.."_side.png"
|
|
|
|
}
|
|
|
|
minetest.register_node(":doors:trapdoor"..mat.."_open", def)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|