forked from mtcontrib/homedecor_modpack
546cd7110f
* make materials.lua with hades, minetest game, farlands items * make textures file for central handling * make mods game agnostic * take out the trash * handle multiple seats in sofas * add github luacheck workflow and various luacheck fixes * add fluxionary scope creep * fix devtest breaking right to a name policy Co-authored-by: wsor4035 <24964441+wsor4035@users.noreply.github.com> Co-authored-by: SFENCE <sfence.software@gmail.com>
65 lines
1.5 KiB
Lua
65 lines
1.5 KiB
Lua
-- formerly lrfurn endtable component
|
|
|
|
local S = minetest.get_translator("homedecor_tables")
|
|
|
|
minetest.register_node(":lrfurn:endtable", {
|
|
description = S("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",
|
|
use_texture_alpha = "blend",
|
|
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
|
|
_sound_def = {
|
|
key = "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},
|
|
|
|
--tabletop
|
|
{-0.4375, -0.0625, -0.4375, 0.4375, 0, 0.4375},
|
|
}
|
|
},
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.4375, -0.5, -0.4375, 0.4375, 0.0, 0.4375},
|
|
}
|
|
},
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "lrfurn:endtable",
|
|
recipe = {
|
|
{"", "", "", },
|
|
{homedecor.materials.slab_wood, homedecor.materials.slab_wood, "", },
|
|
{"group:stick", "group:stick", "", }
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "lrfurn:endtable",
|
|
recipe = {
|
|
{"", "", "", },
|
|
{"moreblocks:slab_wood", "moreblocks:slab_wood", "", },
|
|
{"group:stick", "group:stick", "", }
|
|
}
|
|
})
|
|
|
|
if minetest.settings:get("log_mods") then
|
|
minetest.log("action", "[lrfurn/endtable] Loaded!")
|
|
end
|