mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-13 11:30:19 +02:00
Refactor tables and seating
move lrfurn tables to homedecor_tables create new mod: homedecor_seating move lrfurn chair, sofas, and all types of homedecor chairs, benches, etc. that I could think of, whether intended for exterior or interior use, to that new mod. (except tree swing :P ) lrfurn was left empty after this, so deleted.
This commit is contained in:
54
homedecor_tables/endtable.lua
Normal file
54
homedecor_tables/endtable.lua
Normal file
@ -0,0 +1,54 @@
|
||||
-- formerly lrfurn endtable component
|
||||
|
||||
local S = homedecor.gettext
|
||||
|
||||
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",
|
||||
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},
|
||||
|
||||
--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 = {
|
||||
{"", "", "", },
|
||||
{"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", "", }
|
||||
}
|
||||
})
|
||||
|
||||
if minetest.settings:get("log_mods") then
|
||||
minetest.log("action", "[lrfurn/endtable] "..S("Loaded!"))
|
||||
end
|
Reference in New Issue
Block a user