better mesh/UV mapping for openframe bookshelf

This commit is contained in:
Vanessa Ezekowitz 2015-04-17 09:28:41 -04:00
parent c2575df10c
commit e71bbdc0ef
4 changed files with 503 additions and 693 deletions

View File

@ -155,24 +155,26 @@ for i in ipairs(chaircolors) do
end end
end end
local ob_cbox = {
type = "fixed",
fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 }
}
minetest.register_node(":homedecor:openframe_bookshelf", { minetest.register_node(":homedecor:openframe_bookshelf", {
description = "Bookshelf (open-frame)", description = "Bookshelf (open-frame)",
drawtype = "mesh", drawtype = "mesh",
mesh = "homedecor_openframe_bookshelf.obj", mesh = "homedecor_openframe_bookshelf.obj",
tiles = { "homedecor_openframe_bookshelf.png" }, tiles = {
"homedecor_openframe_bookshelf_books.png",
"default_wood.png"
},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3}, groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
selection_box = { selection_box = ob_cbox,
type = "fixed", collision_box = ob_cbox,
fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 }
},
collision_box = {
type = "fixed",
fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 }
},
}) })
local bedcolors = { local bedcolors = {

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB