1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-26 11:15:22 +01:00

[homedecor] Update

This commit is contained in:
LeMagnesium
2015-10-15 19:50:55 +02:00
parent f7f73c2004
commit ea16f89ac8
45 changed files with 847 additions and 238 deletions

View File

@@ -1,14 +1,3 @@
local longsofas_list = {
{ "Red Long Sofa", "red"},
{ "Orange Long Sofa", "orange"},
{ "Yellow Long Sofa", "yellow"},
{ "Green Long Sofa", "green"},
{ "Blue Long Sofa", "blue"},
{ "Violet Long Sofa", "violet"},
{ "Black Long Sofa", "black"},
{ "Grey Long Sofa", "grey"},
{ "White Long Sofa", "white"},
}
local longsofa_sbox = {
type = "fixed",
@@ -17,22 +6,22 @@ local longsofa_sbox = {
local longsofa_cbox = {
type = "fixed",
fixed = {
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 2.5 },
{-0.5, -0.5, 0.5, -0.4, 0.5, 2.5 }
}
}
for i in ipairs(longsofas_list) do
local longsofadesc = longsofas_list[i][1]
local colour = longsofas_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:longsofa_"..colour, {
description = longsofadesc,
description = "Long Sofa ("..colour..")",
drawtype = "mesh",
mesh = "lrfurn_sofa_long.obj",
tiles = {
"lrfurn_sofa_"..colour..".png",
"lrfurn_bg_white.png^[colorize:"..hue.."^lrfurn_sofa_overlay.png",
"lrfurn_sofa_bottom.png"
},
paramtype = "light",
@@ -63,7 +52,6 @@ for i in ipairs(longsofas_list) do
end
pos.y = pos.y-0.5
clicker:setpos(pos)
clicker:set_hp(20)
end
})