mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-09-19 11:10:23 +02:00
ef8497f9b2
more mesh on homedecor, and important performance upgrade for plantlife
36 lines
860 B
Lua
Executable File
36 lines
860 B
Lua
Executable File
minetest.override_item("default:bookshelf", {
|
|
drawtype = "mesh",
|
|
mesh = "3dbookshelf.obj",
|
|
tiles = { "3dbookshelf.png" },
|
|
paramtype = "light",
|
|
paramtype2 = "facedir",
|
|
})
|
|
|
|
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 = {
|
|
{-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},
|
|
}
|
|
}
|
|
})
|
|
end
|
|
|