1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00
homedecor_modpack/homedecor_furniture/init.lua

39 lines
904 B
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 }
}
minetest.register_node(":homedecor: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",
"default_wood.png"
},
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",
selection_box = ob_cbox,
collision_box = ob_cbox,
})
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 = {
"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}
}
}
})