1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-15 14:50:37 +01:00
homedecor_modpack/homedecor_furniture/init.lua

54 lines
1.1 KiB
Lua
Raw Normal View History

local S = minetest.get_translator("homedecor_furniture")
2013-03-26 12:05:22 +01:00
local ob_cbox = {
type = "fixed",
fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 }
}
2022-05-01 21:24:10 +02:00
local wood_tex = homedecor.textures.default_wood
2022-04-24 17:14:56 +02:00
homedecor.register("openframe_bookshelf", {
2017-01-24 21:43:20 +01:00
description = S("Bookshelf (open-frame)"),
drawtype = "mesh",
2014-12-14 07:19:36 +01:00
mesh = "homedecor_openframe_bookshelf.obj",
tiles = {
"homedecor_openframe_bookshelf_books.png",
2022-04-24 17:14:56 +02:00
wood_tex
},
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3},
2022-04-24 17:14:56 +02:00
_sound_def = {
key = "node_sound_wood_defaults",
},
2015-04-30 23:52:23 +02:00
paramtype = "light",
paramtype2 = "facedir",
selection_box = ob_cbox,
collision_box = ob_cbox,
2022-04-29 04:34:25 +02:00
crafts = {
2022-04-29 04:35:55 +02:00
{
recipe = {
{"group:wood", "", "group:wood"},
{"book", "book", "book"},
{"group:wood", "", "group:wood"},
},
}
2022-04-29 04:34:25 +02: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-04-24 17:14:56 +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}
}
}
})