mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-11-06 02:10:26 +01:00
39 lines
904 B
Lua
39 lines
904 B
Lua
local S = minetest.get_translator("homedecor_furniture")
|
|
|
|
local ob_cbox = {
|
|
type = "fixed",
|
|
fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 }
|
|
}
|
|
|
|
minetest.register_node(":homedecor:openframe_bookshelf", {
|
|
description = S("Bookshelf (open-frame)"),
|
|
drawtype = "mesh",
|
|
mesh = "homedecor_openframe_bookshelf.obj",
|
|
tiles = {
|
|
"homedecor_openframe_bookshelf_books.png",
|
|
"default_wood.png"
|
|
},
|
|
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3},
|
|
sounds = default.node_sound_wood_defaults(),
|
|
paramtype = "light",
|
|
paramtype2 = "facedir",
|
|
selection_box = ob_cbox,
|
|
collision_box = ob_cbox,
|
|
})
|
|
|
|
homedecor.register("wall_shelf", {
|
|
description = S("Wall Shelf"),
|
|
tiles = {
|
|
"default_wood.png",
|
|
},
|
|
groups = { snappy = 3 },
|
|
sounds = default.node_sound_wood_defaults(),
|
|
node_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.5, 0.4, 0.47, 0.5, 0.47, 0.5},
|
|
{-0.5, 0.47, -0.1875, 0.5, 0.5, 0.5}
|
|
}
|
|
}
|
|
})
|