make front edge of books uneven (looks better this way)

This commit is contained in:
Vanessa Ezekowitz 2014-05-29 22:45:20 -04:00
parent d9f56ea229
commit 2f68d17cf7

View File

@ -13,49 +13,76 @@ minetest.override_item("default:bookshelf", {
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
{-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},
{-0.4375, 0.0625, -0.486, -0.3125, 0.375, -0.125},
{-0.3125, 0.0625, -0.420, -0.25, 0.3125, -0.125},
{-0.25, 0.0625, -0.456, -0.1875, 0.375, -0.125},
{-0.125, 0.0625, -0.481, 0, 0.4375, -0.125},
{0, 0.0625, -0.4375, 0.0625, 0.3125, -0.125},
{0.0625, 0.0625, -0.461, 0.125, 0.375, -0.125},
{0.125, 0.0625, -0.425, 0.1875, 0.25, -0.125},
{0.1875, 0.0625, -0.456, 0.25, 0.3125, -0.125},
{0.25, 0.0625, -0.430, 0.3125, 0.25, -0.125},
{0.3125, 0.0625, -0.456, 0.4375, 0.375, -0.125},
{-0.4375, -0.4375, -0.456, -0.25, -0.125, -0.125},
{-0.25, -0.4375, -0.435, -0.125, -0.1875, -0.125},
{-0.125, -0.4375, -0.466, -0.0625, -0.125, -0.125},
{-0.0625, -0.4375, -0.476, 0, -0.1875, -0.125},
{0.25, -0.4375, -0.471, 0.375, -0.125, -0.125},
{0.375, -0.4375, -0.445, 0.4375, -0.1875, -0.125},
{0.3125, 0.0625, 0.125, 0.4375, 0.375, 0.471},
{0.25, 0.0625, 0.125, 0.3125, 0.3125, 0.461},
{0.1875, 0.0625, 0.125, 0.25, 0.375, 0.430},
{0, 0.0625, 0.125, 0.125, 0.4375, 0.497},
{-0.0625, 0.0625, 0.125, 0, 0.3125, 0.435},
{-0.125, 0.0625, 0.125, -0.0625, 0.375, 0.437},
{-0.1875, 0.0625, 0.125, -0.125, 0.25, 0.379},
{-0.25, 0.0625, 0.125, -0.1875, 0.3125, 0.445},
{-0.3125, 0.0625, 0.125, -0.25, 0.25, 0.425},
{-0.4375, 0.0625, 0.125, -0.3125, 0.375, 0.458},
{0.25, -0.4375, 0.125, 0.4375, -0.125, 0.437},
{0.125, -0.4375, 0.125, 0.25, -0.1875, 0.461},
{0.0625, -0.4375, 0.125, 0.125, -0.125, 0.435},
{-0.0625, -0.4375, 0.1875, 0, -0.1875, 0.456},
{-0.25, -0.4375, 0.125, -0.1875, -0.125, 0.394},
{-0.375, -0.4375, 0.125, -0.25, -0.0625, 0.430},
{-0.4375, -0.4375, 0.125, -0.375, -0.125, 0.394},
{-0.125, -0.4375, 0.125, -0.0625, -0.1875, 0.437},
{0.125, -0.4375, -0.435, 0.25, -0.1875, -0.125},
{0, -0.4375, -0.430, 0.0625, -0.1875, -0.125},
{0.0625, -0.4375, -0.461, 0.125, -0.1875, -0.125},
{-0.1875, 0.0625, -0.4375, -0.125, 0.375, -0.125},
{0.125, 0.0625, 0.125, 0.1875, 0.375, 0.448},
{0, -0.4375, 0.125, 0.0625, -0.1875, 0.471},
{-0.1875, -0.4375, 0.125, -0.125, -0.1875, 0.466},
}
}
})
minetest.register_node(":homedecor:openframe_bookshelf", {
description = "Bookshelf (open-frame)",
drawtype = "nodebox",
is_ground_content = false,
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(),
tiles = {
"3dbookshelf_top.png",
"3dbookshelf_bottom.png",
"3dbookshelf_sides.png",
"3dbookshelf_sides.png",
"3dbookshelf_fb.png",
"3dbookshelf_fb.png"
},
paramtype = "light",
paramtype2 = "facedir",
})
if minetest.get_modpath("moreblocks") then
minetest.override_item("moreblocks:empty_bookshelf", {
drawtype = "nodebox",