homedecor_modpack/homedecor_3d_extras/init.lua

58 lines
2.7 KiB
Lua
Raw Normal View History

minetest.override_item("default:bookshelf", {
drawtype = "nodebox",
tiles = {
"3dbookshelf_top.png",
"3dbookshelf_bottom.png",
"3dbookshelf_sides.png",
"3dbookshelf_sides.png",
"3dbookshelf_fb.png",
"3dbookshelf_fb.png"
},
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.1875, 0.5, 0.5, 0.1875}, -- NodeBox1
{-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5}, -- NodeBox2
{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5}, -- NodeBox3
{-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, -- NodeBox4
{-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
{-0.4375, 0.0625, -0.4375, -0.3125, 0.375, -0.125}, -- NodeBox7
{-0.3125, 0.0625, -0.4375, -0.25, 0.3125, -0.125}, -- NodeBox8
{-0.25, 0.0625, -0.4375, -0.125, 0.375, -0.125}, -- NodeBox9
{-0.125, 0.0625, -0.4375, 0, 0.4375, -0.125}, -- NodeBox10
{0, 0.0625, -0.4375, 0.0625, 0.3125, -0.125}, -- NodeBox11
{0.0625, 0.0625, -0.4375, 0.125, 0.375, -0.125}, -- NodeBox12
{0.125, 0.0625, -0.4375, 0.1875, 0.25, -0.125}, -- NodeBox13
{0.1875, 0.0625, -0.4375, 0.25, 0.3125, -0.125}, -- NodeBox14
{0.25, 0.0625, -0.4375, 0.3125, 0.25, -0.125}, -- NodeBox15
{0.3125, 0.0625, -0.4375, 0.4375, 0.375, -0.125}, -- NodeBox16
{-0.4375, -0.4375, -0.4375, -0.25, -0.125, -0.125}, -- NodeBox17
{-0.25, -0.4375, -0.4375, -0.125, -0.1875, -0.125}, -- NodeBox18
{-0.125, -0.4375, -0.4375, -0.0625, -0.125, -0.125}, -- NodeBox19
{-0.0625, -0.4375, -0.4375, 0.25, -0.1875, -0.125}, -- NodeBox22
{0.25, -0.4375, -0.4375, 0.375, -0.125, -0.125}, -- NodeBox23
{0.375, -0.4375, -0.4375, 0.4375, -0.1875, -0.125}, -- NodeBox24
{0.3125, 0.0625, 0.125, 0.4375, 0.375, 0.4375}, -- NodeBox25
{0.25, 0.0625, 0.125, 0.3125, 0.3125, 0.4375}, -- NodeBox26
{0.125, 0.0625, 0.125, 0.25, 0.375, 0.4375}, -- NodeBox27
{0, 0.0625, 0.125, 0.125, 0.5, 0.4375}, -- NodeBox28
{-0.0625, 0.0625, 0.125, 0, 0.3125, 0.4375}, -- NodeBox29
{-0.125, 0.0625, 0.125, -0.0625, 0.375, 0.4375}, -- NodeBox30
{-0.1875, 0.0625, 0.125, -0.125, 0.25, 0.4375}, -- NodeBox31
{-0.25, 0.0625, 0.125, -0.1875, 0.3125, 0.4375}, -- NodeBox32
{-0.3125, 0.0625, 0.125, -0.25, 0.25, 0.4375}, -- NodeBox33
{-0.4375, 0.0625, 0.125, -0.3125, 0.375, 0.4375}, -- NodeBox34
{0.25, -0.4375, 0.125, 0.4375, -0.125, 0.4375}, -- NodeBox35
{0.125, -0.4375, 0.125, 0.25, -0.1875, 0.4375}, -- NodeBox36
{0.0625, -0.4375, 0.125, 0.125, -0.125, 0.4375}, -- NodeBox37
{-0.1875, -0.4375, 0.1875, 0.0625, -0.1875, 0.4375}, -- NodeBox38
{-0.25, -0.4375, 0.125, -0.1875, -0.125, 0.4375}, -- NodeBox39
{-0.375, -0.4375, 0.125, -0.25, -0.0625, 0.4375}, -- NodeBox40
{-0.4375, -0.4375, 0.125, -0.375, -0.125, 0.4375}, -- NodeBox41
}
}
})