1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-14 20:00:17 +02:00

reduced textures in lrfurn mod and added a full color range to lrfurn and beds

This commit is contained in:
crazyginger72
2015-09-23 01:29:06 -04:00
parent 181c746bbf
commit 70758559cc
16 changed files with 49 additions and 57 deletions

View File

@ -1,14 +1,4 @@
local sofas_list = {
{ "Red Sofa", "red"},
{ "Orange Sofa", "orange"},
{ "Yellow Sofa", "yellow"},
{ "Green Sofa", "green"},
{ "Blue Sofa", "blue"},
{ "Violet Sofa", "violet"},
{ "Black Sofa", "black"},
{ "Grey Sofa", "grey"},
{ "White Sofa", "white"},
}
local sofa_sbox = {
type = "fixed",
@ -23,16 +13,16 @@ local sofa_cbox = {
}
}
for i in ipairs(sofas_list) do
local sofadesc = sofas_list[i][1]
local colour = sofas_list[i][2]
for i in ipairs(lrfurn.colors) do
local colour = lrfurn.colors[i][1]
local hue = lrfurn.colors[i][2]
minetest.register_node("lrfurn:sofa_"..colour, {
description = sofadesc,
description = "Sofa ("..colour..")",
drawtype = "mesh",
mesh = "lrfurn_sofa_short.obj",
tiles = {
"lrfurn_sofa_"..colour..".png",
"lrfurn_bg_white.png^[colorize:"..hue.."^lrfurn_sofa_overlay.png",
"lrfurn_sofa_bottom.png"
},
paramtype = "light",