1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-13 19:40:18 +02:00

use mesh nodes for lrfurn sofas and armchairs

This commit is contained in:
Vanessa Ezekowitz
2015-04-06 21:35:25 -04:00
parent 64c8deb868
commit 2b5d07470a
115 changed files with 1912 additions and 261 deletions

View File

@ -16,32 +16,16 @@ for i in ipairs(armchairs_list) do
minetest.register_node("lrfurn:armchair_"..colour, {
description = armchairdesc,
drawtype = "nodebox",
tiles = {"lrfurn_armchair_top_"..colour..".png", "lrfurn_coffeetable_back.png", "lrfurn_sofa_left_side_"..colour..".png", "lrfurn_sofa_right_side_"..colour..".png", "lrfurn_sofa_back_"..colour..".png", "lrfurn_armchair_front_"..colour..".png"},
drawtype = "mesh",
mesh = "lrfurn_armchair.obj",
tiles = {
"lrfurn_sofa_"..colour..".png",
"lrfurn_sofa_bottom.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.4375, -0.5, -0.4375, -0.375, -0.375, -0.375},
{0.375, -0.5, -0.4375, 0.4375, -0.375, -0.375},
{-0.4375, -0.5, 0.375, -0.375, -0.375, 0.4375},
{0.375, -0.5, 0.375, 0.4375, -0.375, 0.4375},
--base/cushion
{-0.5, -0.375, -0.5, 0.5, 0, 0.5},
--back
{-0.5, 0, 0.3125, 0.5, 0.5, 0.5},
--arms
{-0.5, 0, -0.5, -0.3125, 0.25, 0.3125},
{0.3125, 0, -0.5, 0.5, 0.25, 0.3125},
}
},
selection_box = { type = "regular" },
on_rightclick = function(pos, node, clicker)