2019-05-27 02:02:29 +02:00
|
|
|
-- formerly lrfurn endtable component
|
2017-01-29 22:41:03 +01:00
|
|
|
|
2020-08-05 00:42:05 +02:00
|
|
|
local S = minetest.get_translator("homedecor_tables")
|
2017-01-29 22:41:03 +01:00
|
|
|
|
2019-05-27 02:02:29 +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",
|
2020-08-05 00:42:05 +02:00
|
|
|
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"
|
|
|
|
},
|
2014-07-19 01:37:08 +02:00
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
2022-02-07 14:18:17 +01:00
|
|
|
use_texture_alpha = "blend",
|
2014-07-19 01:37:08 +02:00
|
|
|
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
|
2022-05-03 21:21:14 +02:00
|
|
|
_sound_def = {
|
|
|
|
key = "node_sound_wood_defaults",
|
|
|
|
},
|
2014-07-19 01:37:08 +02:00
|
|
|
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},
|
2015-01-20 23:59:50 +01:00
|
|
|
|
2014-07-19 01:37:08 +02:00
|
|
|
--tabletop
|
2015-01-20 23:59:50 +01:00
|
|
|
{-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 = {
|
|
|
|
{"", "", "", },
|
2022-05-03 21:21:14 +02:00
|
|
|
{homedecor.materials.slab_wood, homedecor.materials.slab_wood, "", },
|
2014-07-31 00:19:42 +02:00
|
|
|
{"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", "", },
|
2014-07-31 00:19:42 +02:00
|
|
|
{"group:stick", "group:stick", "", }
|
2014-07-19 01:37:08 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-05-13 09:15:26 +02:00
|
|
|
if minetest.settings:get("log_mods") then
|
2020-08-05 00:42:05 +02:00
|
|
|
minetest.log("action", "[lrfurn/endtable] Loaded!")
|
2014-07-19 01:37:08 +02:00
|
|
|
end
|