mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
check for presence of moreblocks before overriding empty bookshelf
This commit is contained in:
parent
2e4dce266f
commit
d9f56ea229
@ -56,27 +56,29 @@ minetest.override_item("default:bookshelf", {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.override_item("moreblocks:empty_bookshelf", {
|
if minetest.get_modpath("moreblocks") then
|
||||||
drawtype = "nodebox",
|
minetest.override_item("moreblocks:empty_bookshelf", {
|
||||||
tiles = {
|
drawtype = "nodebox",
|
||||||
"3dbookshelf_top.png",
|
tiles = {
|
||||||
"3dbookshelf_bottom.png",
|
"3dbookshelf_top.png",
|
||||||
"3dbookshelf_sides.png",
|
"3dbookshelf_bottom.png",
|
||||||
"3dbookshelf_sides.png",
|
"3dbookshelf_sides.png",
|
||||||
"3dbookshelf_fb_empty.png",
|
"3dbookshelf_sides.png",
|
||||||
"3dbookshelf_fb_empty.png"
|
"3dbookshelf_fb_empty.png",
|
||||||
},
|
"3dbookshelf_fb_empty.png"
|
||||||
paramtype = "light",
|
},
|
||||||
paramtype2 = "facedir",
|
paramtype = "light",
|
||||||
node_box = {
|
paramtype2 = "facedir",
|
||||||
type = "fixed",
|
node_box = {
|
||||||
fixed = {
|
type = "fixed",
|
||||||
{-0.5, -0.5, -0.1875, 0.5, 0.5, 0.1875}, -- NodeBox1
|
fixed = {
|
||||||
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5}, -- NodeBox2
|
{-0.5, -0.5, -0.1875, 0.5, 0.5, 0.1875}, -- NodeBox1
|
||||||
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5}, -- NodeBox3
|
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5}, -- NodeBox2
|
||||||
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, -- NodeBox4
|
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5}, -- NodeBox3
|
||||||
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, -- NodeBox5
|
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, -- NodeBox4
|
||||||
{-0.5, -0.0625, -0.5, 0.5, 0.0625, 0.5}, -- NodeBox6
|
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, -- NodeBox5
|
||||||
|
{-0.5, -0.0625, -0.5, 0.5, 0.0625, 0.5}, -- NodeBox6
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user