homedecor_modpack/lrfurn/endtable.lua

54 lines
1.4 KiB
Lua
Raw Normal View History

2017-01-29 22:41:03 +01:00
local S = homedecor_i18n.gettext
2014-07-19 01:37:08 +02:00
minetest.register_node("lrfurn:endtable", {
2017-01-29 22:41:03 +01:00
description = S("End Table"),
2014-07-19 01:37:08 +02:00
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-07-19 01:37:08 +02:00
--tabletop
{-0.4375, -0.0625, -0.4375, 0.4375, 0, 0.4375},
2014-07-19 01:37:08 +02: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", "", }
2014-07-19 01:37:08 +02:00
}
})
minetest.register_craft({
output = "lrfurn:endtable",
recipe = {
{"", "", "", },
{"moreblocks:slab_wood", "moreblocks:slab_wood", "", },
{"group:stick", "group:stick", "", }
2014-07-19 01:37:08 +02:00
}
})
if minetest.settings:get("log_mods") then
2017-01-29 22:41:03 +01:00
minetest.log("action", "[lrfurn/endtable] "..S("Loaded!"))
2014-07-19 01:37:08 +02:00
end