2020-08-04 22:50:24 +02:00
|
|
|
local S = minetest.get_translator("homedecor_furniture")
|
2013-03-26 12:05:22 +01:00
|
|
|
|
2015-04-17 15:28:41 +02:00
|
|
|
local ob_cbox = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 }
|
|
|
|
}
|
|
|
|
|
2014-07-13 14:35:16 +02:00
|
|
|
minetest.register_node(":homedecor:openframe_bookshelf", {
|
2017-01-24 21:43:20 +01:00
|
|
|
description = S("Bookshelf (open-frame)"),
|
2015-01-24 01:29:51 +01:00
|
|
|
drawtype = "mesh",
|
2014-12-14 07:19:36 +01:00
|
|
|
mesh = "homedecor_openframe_bookshelf.obj",
|
2015-04-17 15:28:41 +02:00
|
|
|
tiles = {
|
|
|
|
"homedecor_openframe_bookshelf_books.png",
|
|
|
|
"default_wood.png"
|
|
|
|
},
|
2014-07-13 14:35:16 +02:00
|
|
|
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2015-04-30 23:52:23 +02:00
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
2015-04-17 15:28:41 +02:00
|
|
|
selection_box = ob_cbox,
|
|
|
|
collision_box = ob_cbox,
|
2014-07-13 14:35:16 +02:00
|
|
|
})
|
|
|
|
|
2015-01-24 00:34:02 +01:00
|
|
|
homedecor.register("wall_shelf", {
|
2017-01-24 21:43:20 +01:00
|
|
|
description = S("Wall Shelf"),
|
2014-09-10 16:09:06 +02:00
|
|
|
tiles = {
|
2019-04-20 21:49:36 +02:00
|
|
|
"default_wood.png",
|
2014-09-10 16:09:06 +02:00
|
|
|
},
|
2014-09-10 18:00:51 +02:00
|
|
|
groups = { snappy = 3 },
|
2015-04-29 14:14:36 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2014-09-10 16:09:06 +02:00
|
|
|
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}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|