mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 08:20:21 +01:00
0d5cab9455
* switch existing to xcompat textures * replace the rest of the hard coded texture conversions to use homedecor.textures
54 lines
1.1 KiB
Lua
54 lines
1.1 KiB
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 }
|
|
}
|
|
|
|
local wood_tex = homedecor.textures.wood.apple.planks
|
|
|
|
homedecor.register("openframe_bookshelf", {
|
|
description = S("Bookshelf (open-frame)"),
|
|
drawtype = "mesh",
|
|
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",
|
|
},
|
|
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", {
|
|
description = S("Wall Shelf"),
|
|
tiles = {
|
|
wood_tex,
|
|
},
|
|
groups = { snappy = 3, dig_tree = 2 },
|
|
_sound_def = {
|
|
key = "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}
|
|
}
|
|
}
|
|
})
|