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.
@ -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,15 +60,27 @@ minetest.register_node("homedecor:chair", {
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:armchair", {
|
||||
description = "Armchair",
|
||||
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.png",
|
||||
"forniture_armchair_top.png",
|
||||
"forniture_armchair_lat1.png",
|
||||
"forniture_armchair_lat1.png",
|
||||
"forniture_armchair_lat2.png",
|
||||
"forniture_armchair_lat2.png",
|
||||
"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,
|
||||
@ -97,6 +110,17 @@ minetest.register_node("homedecor:armchair", {
|
||||
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)
|
||||
local repl = { off="low", low="med", med="hi", hi="max", max="off", }
|
||||
@ -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')
|
||||
|
@ -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",
|
||||
|
12
shutters.lua
@ -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")
|
||||
|
Before Width: | Height: | Size: 354 B |
BIN
textures/forniture_armchair_lat1_black.png
Normal file
After Width: | Height: | Size: 714 B |
BIN
textures/forniture_armchair_lat1_blue.png
Normal file
After Width: | Height: | Size: 685 B |
BIN
textures/forniture_armchair_lat1_dark_green.png
Normal file
After Width: | Height: | Size: 685 B |
BIN
textures/forniture_armchair_lat1_pink.png
Normal file
After Width: | Height: | Size: 663 B |
BIN
textures/forniture_armchair_lat1_red.png
Normal file
After Width: | Height: | Size: 692 B |
BIN
textures/forniture_armchair_lat1_violet.png
Normal file
After Width: | Height: | Size: 720 B |
Before Width: | Height: | Size: 353 B |
BIN
textures/forniture_armchair_lat2_black.png
Normal file
After Width: | Height: | Size: 676 B |
BIN
textures/forniture_armchair_lat2_blue.png
Normal file
After Width: | Height: | Size: 652 B |
BIN
textures/forniture_armchair_lat2_dark_green.png
Normal file
After Width: | Height: | Size: 654 B |
BIN
textures/forniture_armchair_lat2_pink.png
Normal file
After Width: | Height: | Size: 622 B |
BIN
textures/forniture_armchair_lat2_red.png
Normal file
After Width: | Height: | Size: 652 B |
BIN
textures/forniture_armchair_lat2_violet.png
Normal file
After Width: | Height: | Size: 689 B |
Before Width: | Height: | Size: 356 B |
BIN
textures/forniture_armchair_top_black.png
Normal file
After Width: | Height: | Size: 717 B |
BIN
textures/forniture_armchair_top_blue.png
Normal file
After Width: | Height: | Size: 699 B |
BIN
textures/forniture_armchair_top_dark_green.png
Normal file
After Width: | Height: | Size: 700 B |
BIN
textures/forniture_armchair_top_pink.png
Normal file
After Width: | Height: | Size: 672 B |
BIN
textures/forniture_armchair_top_red.png
Normal file
After Width: | Height: | Size: 705 B |
BIN
textures/forniture_armchair_top_violet.png
Normal file
After Width: | Height: | Size: 733 B |
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 616 B |
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 610 B After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |