1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-09 20:00:39 +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 }
}
local wood_tex = homedecor.textures.wood.apple.planks
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",
wood_tex
},
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3},
_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,
crafts = {
{
recipe = {
{"group:wood", "", "group:wood"},
{"book", "book", "book"},
{"group:wood", "", "group:wood"},
},
}
}
})
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 = {
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}
}
}
})