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 }
|
|
|
|
}
|
|
|
|
|
2024-03-03 21:52:58 +01:00
|
|
|
local wood_tex = homedecor.textures.wood.apple.planks
|
2022-05-03 21:21:14 +02:00
|
|
|
|
|
|
|
homedecor.register("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",
|
2022-05-03 21:21:14 +02:00
|
|
|
wood_tex
|
2015-04-17 15:28:41 +02:00
|
|
|
},
|
2014-07-13 14:35:16 +02:00
|
|
|
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3},
|
2022-05-03 21:21:14 +02:00
|
|
|
_sound_def = {
|
|
|
|
key = "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,
|
2022-05-03 21:21:14 +02:00
|
|
|
crafts = {
|
|
|
|
{
|
|
|
|
recipe = {
|
|
|
|
{"group:wood", "", "group:wood"},
|
|
|
|
{"book", "book", "book"},
|
|
|
|
{"group:wood", "", "group:wood"},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
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 = {
|
2022-05-03 21:21:14 +02:00
|
|
|
wood_tex,
|
|
|
|
},
|
|
|
|
groups = { snappy = 3, dig_tree = 2 },
|
|
|
|
_sound_def = {
|
|
|
|
key = "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}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|