1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-18 16:20:38 +01:00
server-nalc/mods/homedecor_modpack/lrfurn/endtable.lua

60 lines
1.5 KiB
Lua
Raw Normal View History

2014-10-28 18:01:32 +01:00
minetest.register_node("lrfurn:endtable", {
description = "End Table",
drawtype = "nodebox",
tiles = {"lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png", "lrfurn_coffeetable_back.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(),
node_box = {
type = "fixed",
fixed = {
--legs
{-0.375, -0.5, -0.375, -0.3125, -0.0625, -0.3125},
{0.3125, -0.5, -0.375, 0.375, -0.0625, -0.3125},
{-0.375, -0.5, 0.3125, -0.3125, -0.0625, 0.375},
{0.3125, -0.5, 0.3125, 0.375, -0.0625, 0.375},
2014-10-28 18:01:32 +01:00
--tabletop
{-0.4375, -0.0625, -0.4375, 0.4375, 0, 0.4375},
2014-10-28 18:01:32 +01:00
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.4375, -0.5, -0.4375, 0.4375, 0.0, 0.4375},
}
},
})
minetest.register_craft({
output = "lrfurn:endtable",
recipe = {
{"", "", "", },
{"stairs:slab_wood", "stairs:slab_wood", "", },
{"group:stick", "group:stick", "", }
}
})
minetest.register_craft({
output = "lrfurn:endtable",
recipe = {
{"", "", "", },
{"moreblocks:slab_wood", "moreblocks:slab_wood", "", },
{"group:stick", "group:stick", "", }
}
})
2015-01-10 21:42:49 +01:00
minetest.register_craft({
2014-10-28 18:01:32 +01:00
output = "lrfurn:endtable",
recipe = {
{"", "", "", },
{"group:wood_slab", "group:wood_slab", "", },
{"group:stick", "group:stick", "", }
}
2015-01-10 21:42:49 +01:00
})
2014-10-28 18:01:32 +01:00
if minetest.setting_get("log_mods") then
minetest.log("action", "endtable loaded")
end