Add several new colors of armchairs

Renamed the plain one to include "black", aliased to original name.
Better textures for the wooden table/chair and the black armchair.

Also renamed purple shutter to violet for consistency.
This commit is contained in:
Vanessa Ezekowitz 2013-04-03 17:03:42 -04:00
parent cb993bfd4b
commit 17e47745d1
28 changed files with 70 additions and 52 deletions

View File

@ -28,6 +28,7 @@ minetest.register_node("homedecor:table", {
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
})
minetest.register_node("homedecor:chair", {
description = "Chair",
tiles = {
@ -59,43 +60,66 @@ minetest.register_node("homedecor:chair", {
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
})
minetest.register_node("homedecor:armchair", {
description = "Armchair",
tiles = {
"forniture_armchair_top.png",
"forniture_armchair_top.png",
"forniture_armchair_lat1.png",
"forniture_armchair_lat1.png",
"forniture_armchair_lat2.png",
"forniture_armchair_lat2.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{ -0.50, -0.50, -0.45, -0.30, 0.05, 0.30 },
{ -0.45, -0.50, -0.50, -0.35, 0.05, -0.45 },
{ -0.45, 0.05, -0.45, -0.35, 0.10, 0.15 },
{ 0.30, -0.50, -0.45, 0.50, 0.05, 0.30 },
{ 0.35, -0.50, -0.50, 0.45, 0.05, -0.45 },
{ 0.35, 0.05, -0.45, 0.45, 0.10, 0.15 },
{ -0.50, -0.50, 0.30, 0.50, 0.45, 0.50 },
{ -0.45, 0.45, 0.35, 0.45, 0.50, 0.45 },
{ -0.30, -0.45, -0.35, 0.30, -0.10, 0.30 },
{ -0.30, -0.45, -0.40, 0.30, -0.15, -0.35 },
{ -0.50, 0.05, 0.15, -0.30, 0.45, 0.30 },
{ -0.45, 0.10, 0.10, -0.35, 0.45, 0.15 },
{ -0.45, 0.45, 0.15, -0.35, 0.50, 0.35 },
{ 0.30, 0.05, 0.15, 0.50, 0.45, 0.30 },
{ 0.35, 0.10, 0.10, 0.45, 0.45, 0.15 },
{ 0.35, 0.45, 0.15, 0.45, 0.50, 0.35 },
},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
})
local chaircolors = {
{ "black", "Black" },
{ "red", "Red" },
{ "pink", "Pink" },
{ "violet", "Violet" },
{ "blue", "Blue" },
{ "dark_green", "Dark Green" },
}
for i in ipairs(chaircolors) do
color = chaircolors[i][1]
name = chaircolors[i][2]
minetest.register_node("homedecor:armchair_"..color, {
description = "Armchair ("..name..")",
tiles = {
"forniture_armchair_top_"..color..".png",
"forniture_armchair_top_"..color..".png",
"forniture_armchair_lat1_"..color..".png",
"forniture_armchair_lat1_"..color..".png",
"forniture_armchair_lat2_"..color..".png",
"forniture_armchair_lat2_"..color..".png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{ -0.50, -0.50, -0.45, -0.30, 0.05, 0.30 },
{ -0.45, -0.50, -0.50, -0.35, 0.05, -0.45 },
{ -0.45, 0.05, -0.45, -0.35, 0.10, 0.15 },
{ 0.30, -0.50, -0.45, 0.50, 0.05, 0.30 },
{ 0.35, -0.50, -0.50, 0.45, 0.05, -0.45 },
{ 0.35, 0.05, -0.45, 0.45, 0.10, 0.15 },
{ -0.50, -0.50, 0.30, 0.50, 0.45, 0.50 },
{ -0.45, 0.45, 0.35, 0.45, 0.50, 0.45 },
{ -0.30, -0.45, -0.35, 0.30, -0.10, 0.30 },
{ -0.30, -0.45, -0.40, 0.30, -0.15, -0.35 },
{ -0.50, 0.05, 0.15, -0.30, 0.45, 0.30 },
{ -0.45, 0.10, 0.10, -0.35, 0.45, 0.15 },
{ -0.45, 0.45, 0.15, -0.35, 0.50, 0.35 },
{ 0.30, 0.05, 0.15, 0.50, 0.45, 0.30 },
{ 0.35, 0.10, 0.10, 0.45, 0.45, 0.15 },
{ 0.35, 0.45, 0.15, 0.45, 0.50, 0.35 },
},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
})
minetest.register_craft({
output = "homedecor:armchair_"..color.." 2",
recipe = {
{ "wool:"..color,""},
{ "default:wood","default:wood" },
{ "wool:"..color,"wool:"..color },
},
})
end
function homedecor_table_lamp_on_punch(pos, node, puncher)
@ -159,7 +183,8 @@ reg_lamp("max", "off", nil, "x", 14)
-- Aliases for 3dforniture mod.
minetest.register_alias("3dforniture:table", "homedecor:table")
minetest.register_alias("3dforniture:chair", "homedecor:chair")
minetest.register_alias("3dforniture:armchair", "homedecor:armchair")
minetest.register_alias("3dforniture:armchair", "homedecor:armchair_black")
minetest.register_alias("homedecor:armchair", "homedecor:armchair_black")
minetest.register_alias('table', 'homedecor:table')
minetest.register_alias('chair', 'homedecor:chair')

View File

@ -28,15 +28,6 @@ minetest.register_craft({
burntime = 15,
})
minetest.register_craft({
output = "homedecor:armchair 2",
recipe = {
{ "wool:black",""},
{ "default:wood","default:wood" },
{ "wool:black","wool:black" },
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:armchair",

View File

@ -142,11 +142,11 @@ minetest.register_node('homedecor:shutter_light_blue', {
},
})
minetest.register_node('homedecor:shutter_purple', {
description = S("Wooden Shutter (Purple)"),
tiles = { 'homedecor_window_shutter_purple.png' },
inventory_image = 'homedecor_window_shutter_purple.png',
wield_image = 'homedecor_window_shutter_purple.png',
minetest.register_node('homedecor:shutter_violet', {
description = S("Wooden Shutter (Violet)"),
tiles = { 'homedecor_window_shutter_violet.png' },
inventory_image = 'homedecor_window_shutter_violet.png',
wield_image = 'homedecor_window_shutter_violet.png',
drawtype = 'signlike',
sunlight_propagates = false,
paramtype = "light",
@ -217,3 +217,5 @@ minetest.register_node('homedecor:shutter_yellow', {
--wall_side = = <default>
},
})
minetest.register_alias("homedecor:shutter_purple", "homedecor:shutter_violet")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 717 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 615 B

After

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 615 B

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 610 B

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB