Updated homedecor_modpack : not running yet
@ -1,6 +1,6 @@
|
||||
local armchairs_list = {
|
||||
{ "Red Armchair", "red"},
|
||||
{ "Orange Armchair", "orange"},
|
||||
{ "Orange Armchair", "orange"},
|
||||
{ "Yellow Armchair", "yellow"},
|
||||
{ "Green Armchair", "green"},
|
||||
{ "Blue Armchair", "blue"},
|
||||
@ -31,24 +31,19 @@ for i in ipairs(armchairs_list) do
|
||||
{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 = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||
}
|
||||
},
|
||||
selection_box = { type = "regular" },
|
||||
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
if not clicker:is_player() then
|
||||
@ -59,7 +54,7 @@ for i in ipairs(armchairs_list) do
|
||||
clicker:set_hp(20)
|
||||
end
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lrfurn:armchair_"..colour,
|
||||
recipe = {
|
||||
@ -68,7 +63,7 @@ for i in ipairs(armchairs_list) do
|
||||
{"group:stick", "", "", }
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lrfurn:armchair_"..colour,
|
||||
recipe = {
|
||||
|
@ -13,9 +13,9 @@ minetest.register_node("lrfurn:coffeetable_back", {
|
||||
--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},
|
||||
|
||||
|
||||
--tabletop
|
||||
{-0.4375, -0.0625, -0.4375, 0.4375, 0, 0.5},
|
||||
{-0.4375, -0.0625, -0.4375, 0.4375, 0, 0.5},
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
@ -42,7 +42,7 @@ minetest.register_node("lrfurn:coffeetable_back", {
|
||||
minetest.set_node(pos, node)
|
||||
end
|
||||
end,
|
||||
|
||||
|
||||
on_destruct = function(pos)
|
||||
local node = minetest.get_node(pos)
|
||||
local param2 = node.param2
|
||||
@ -58,7 +58,7 @@ minetest.register_node("lrfurn:coffeetable_back", {
|
||||
if( minetest.get_node({x=pos.x, y=pos.y, z=pos.z}).name == "lrfurn:coffeetable_front" ) then
|
||||
if( minetest.get_node({x=pos.x, y=pos.y, z=pos.z}).param2 == param2 ) then
|
||||
minetest.remove_node(pos)
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
||||
@ -76,7 +76,7 @@ minetest.register_node("lrfurn:coffeetable_front", {
|
||||
--legs
|
||||
{-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.5, 0.4375, 0, 0.4375},
|
||||
}
|
||||
|
@ -15,9 +15,9 @@ minetest.register_node("lrfurn:endtable", {
|
||||
{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},
|
||||
{-0.4375, -0.0625, -0.4375, 0.4375, 0, 0.4375},
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
|
@ -1,6 +1,6 @@
|
||||
local longsofas_list = {
|
||||
{ "Red Long Sofa", "red"},
|
||||
{ "Orange Long Sofa", "orange"},
|
||||
{ "Orange Long Sofa", "orange"},
|
||||
{ "Yellow Long Sofa", "yellow"},
|
||||
{ "Green Long Sofa", "green"},
|
||||
{ "Blue Long Sofa", "blue"},
|
||||
@ -29,13 +29,13 @@ for i in ipairs(longsofas_list) do
|
||||
--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},
|
||||
|
||||
|
||||
--base/cushion
|
||||
{-0.5, -0.375, -0.5, 0.5, 0, 0.5},
|
||||
|
||||
|
||||
--back
|
||||
{-0.5, 0, -0.5, -0.3125, 0.5, 0.5},
|
||||
|
||||
|
||||
--arm
|
||||
{-0.3125, 0, -0.5, 0.5, 0.25, -0.3125},
|
||||
}
|
||||
@ -77,7 +77,7 @@ for i in ipairs(longsofas_list) do
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
||||
|
||||
on_destruct = function(pos)
|
||||
local node = minetest.get_node(pos)
|
||||
local param2 = node.param2
|
||||
@ -105,12 +105,12 @@ for i in ipairs(longsofas_list) do
|
||||
if( minetest.get_node({x=pos.x, y=pos.y, z=pos.z}).name == "lrfurn:longsofa_left_"..colour ) then
|
||||
if( minetest.get_node({x=pos.x, y=pos.y, z=pos.z}).param2 == param2 ) then
|
||||
minetest.remove_node(pos)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
||||
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
if not clicker:is_player() then
|
||||
return
|
||||
@ -134,10 +134,10 @@ for i in ipairs(longsofas_list) do
|
||||
--legs
|
||||
{-0.4375, -0.5, -0.03125, -0.375, -0.375, 0.03125},
|
||||
{0.375, -0.5, -0.03125, 0.4375, -0.375, 0.03125},
|
||||
|
||||
|
||||
--base/cushion
|
||||
{-0.5, -0.375, -0.5, 0.5, 0, 0.5},
|
||||
|
||||
|
||||
--back
|
||||
{-0.5, 0, -0.5, -0.3125, 0.5, 0.5},
|
||||
}
|
||||
@ -149,7 +149,7 @@ for i in ipairs(longsofas_list) do
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("lrfurn:longsofa_left_"..colour, {
|
||||
drawtype = "nodebox",
|
||||
tiles = {"lrfurn_sofa_left_top_"..colour..".png", "lrfurn_coffeetable_back.png", "lrfurn_sofa_left_front_"..colour..".png", "lrfurn_sofa_back_"..colour..".png", "lrfurn_sofa_left_side_"..colour..".png", "lrfurn_sofa_right_side_"..colour..".png"},
|
||||
@ -163,13 +163,13 @@ for i in ipairs(longsofas_list) do
|
||||
--legs
|
||||
{-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.5, -0.3125, 0.5, 0.5},
|
||||
|
||||
|
||||
--arm
|
||||
{-0.3125, 0, 0.3125, 0.5, 0.25, 0.5},
|
||||
}
|
||||
@ -181,9 +181,9 @@ for i in ipairs(longsofas_list) do
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
minetest.register_alias("lrfurn:longsofa_"..colour, "lrfurn:longsofa_right_"..colour)
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "lrfurn:longsofa_"..colour,
|
||||
recipe = {
|
||||
|
@ -1,6 +1,6 @@
|
||||
local sofas_list = {
|
||||
{ "Red Sofa", "red"},
|
||||
{ "Orange Sofa", "orange"},
|
||||
{ "Orange Sofa", "orange"},
|
||||
{ "Yellow Sofa", "yellow"},
|
||||
{ "Green Sofa", "green"},
|
||||
{ "Blue Sofa", "blue"},
|
||||
@ -29,13 +29,13 @@ for i in ipairs(sofas_list) do
|
||||
--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},
|
||||
|
||||
|
||||
--base/cushion
|
||||
{-0.5, -0.375, -0.5, 0.5, 0, 0.5},
|
||||
|
||||
|
||||
--back
|
||||
{-0.5, 0, -0.5, -0.3125, 0.5, 0.5},
|
||||
|
||||
|
||||
--arm
|
||||
{-0.3125, 0, -0.5, 0.5, 0.25, -0.3125},
|
||||
}
|
||||
@ -64,7 +64,7 @@ for i in ipairs(sofas_list) do
|
||||
minetest.set_node(pos, node)
|
||||
end
|
||||
end,
|
||||
|
||||
|
||||
on_destruct = function(pos)
|
||||
local node = minetest.get_node(pos)
|
||||
local param2 = node.param2
|
||||
@ -80,10 +80,10 @@ for i in ipairs(sofas_list) do
|
||||
if( minetest.get_node({x=pos.x, y=pos.y, z=pos.z}).name == "lrfurn:sofa_left_"..colour ) then
|
||||
if( minetest.get_node({x=pos.x, y=pos.y, z=pos.z}).param2 == param2 ) then
|
||||
minetest.remove_node(pos)
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
||||
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
if not clicker:is_player() then
|
||||
return
|
||||
@ -93,7 +93,7 @@ for i in ipairs(sofas_list) do
|
||||
clicker:set_hp(20)
|
||||
end
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("lrfurn:sofa_left_"..colour, {
|
||||
drawtype = "nodebox",
|
||||
tiles = {"lrfurn_sofa_left_top_"..colour..".png", "lrfurn_coffeetable_back.png", "lrfurn_sofa_left_front_"..colour..".png", "lrfurn_sofa_back_"..colour..".png", "lrfurn_sofa_left_side_"..colour..".png", "lrfurn_sofa_right_side_"..colour..".png"},
|
||||
@ -107,13 +107,13 @@ for i in ipairs(sofas_list) do
|
||||
--legs
|
||||
{-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.5, -0.3125, 0.5, 0.5},
|
||||
|
||||
|
||||
--arm
|
||||
{-0.3125, 0, 0.3125, 0.5, 0.25, 0.5},
|
||||
}
|
||||
@ -125,7 +125,7 @@ for i in ipairs(sofas_list) do
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
minetest.register_alias("lrfurn:sofa_"..colour, "lrfurn:sofa_right_"..colour)
|
||||
|
||||
minetest.register_craft({
|
||||
|
Before Width: | Height: | Size: 430 B After Width: | Height: | Size: 378 B |
Before Width: | Height: | Size: 464 B After Width: | Height: | Size: 414 B |
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 388 B |
Before Width: | Height: | Size: 426 B After Width: | Height: | Size: 385 B |
Before Width: | Height: | Size: 483 B After Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 466 B After Width: | Height: | Size: 414 B |
Before Width: | Height: | Size: 492 B After Width: | Height: | Size: 433 B |
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 372 B |
Before Width: | Height: | Size: 426 B After Width: | Height: | Size: 372 B |
Before Width: | Height: | Size: 301 B After Width: | Height: | Size: 203 B |
Before Width: | Height: | Size: 417 B After Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 354 B |
Before Width: | Height: | Size: 330 B After Width: | Height: | Size: 207 B |
Before Width: | Height: | Size: 448 B After Width: | Height: | Size: 366 B |
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 471 B After Width: | Height: | Size: 393 B |
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 204 B |
Before Width: | Height: | Size: 523 B After Width: | Height: | Size: 488 B |
Before Width: | Height: | Size: 532 B After Width: | Height: | Size: 473 B |
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 356 B |
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 388 B |
Before Width: | Height: | Size: 425 B After Width: | Height: | Size: 377 B |
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 364 B |
Before Width: | Height: | Size: 461 B After Width: | Height: | Size: 387 B |
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 388 B |
Before Width: | Height: | Size: 471 B After Width: | Height: | Size: 419 B |
Before Width: | Height: | Size: 418 B After Width: | Height: | Size: 357 B |
Before Width: | Height: | Size: 404 B After Width: | Height: | Size: 357 B |
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 314 B |
Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 433 B |
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 176 B |
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 241 B |
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 241 B |
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 278 B After Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 275 B After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 240 B |
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 240 B |
Before Width: | Height: | Size: 430 B After Width: | Height: | Size: 385 B |
Before Width: | Height: | Size: 467 B After Width: | Height: | Size: 433 B |
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 421 B After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 486 B After Width: | Height: | Size: 432 B |
Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 433 B |
Before Width: | Height: | Size: 497 B After Width: | Height: | Size: 452 B |
Before Width: | Height: | Size: 440 B After Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 385 B |
Before Width: | Height: | Size: 447 B After Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 433 B After Width: | Height: | Size: 414 B |
Before Width: | Height: | Size: 405 B After Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 466 B After Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 395 B |
Before Width: | Height: | Size: 464 B After Width: | Height: | Size: 437 B |
Before Width: | Height: | Size: 421 B After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 483 B |
Before Width: | Height: | Size: 301 B After Width: | Height: | Size: 195 B |
Before Width: | Height: | Size: 383 B After Width: | Height: | Size: 364 B |
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 189 B |
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 394 B |
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 195 B |
Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 388 B |
Before Width: | Height: | Size: 467 B After Width: | Height: | Size: 437 B |
Before Width: | Height: | Size: 446 B After Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 425 B After Width: | Height: | Size: 395 B |
Before Width: | Height: | Size: 488 B After Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 459 B |
Before Width: | Height: | Size: 440 B After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 388 B |
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 432 B |
Before Width: | Height: | Size: 431 B After Width: | Height: | Size: 417 B |
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 394 B |
Before Width: | Height: | Size: 464 B After Width: | Height: | Size: 430 B |
Before Width: | Height: | Size: 421 B After Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 463 B After Width: | Height: | Size: 441 B |
Before Width: | Height: | Size: 419 B After Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 311 B After Width: | Height: | Size: 200 B |
Before Width: | Height: | Size: 377 B After Width: | Height: | Size: 369 B |
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 195 B |
Before Width: | Height: | Size: 420 B After Width: | Height: | Size: 400 B |
Before Width: | Height: | Size: 305 B After Width: | Height: | Size: 196 B |