1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-28 09:50:18 +02:00

use param2 colorization for homedecor kitchen chairs and armchairs

Note that the all-wood kitchen chair cannot be colored.
This commit is contained in:
Vanessa Ezekowitz
2017-01-30 19:44:44 -05:00
parent ac9927d035
commit dd0e26d95b
8 changed files with 430 additions and 345 deletions

View File

@ -1,6 +1,6 @@
minetest.register_craft({
output = "homedecor:table", "homedecor:chair 2",
output = "homedecor:table", "homedecor:kitchen_chair_wood 2",
recipe = {
{ "group:wood","group:wood", "group:wood" },
{ "group:stick", "", "group:stick" },
@ -53,7 +53,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "homedecor:chair 2",
output = "homedecor:kitchen_chair_wood 2",
recipe = {
{ "group:stick",""},
{ "group:wood","group:wood" },
@ -61,41 +61,35 @@ minetest.register_craft({
},
})
minetest.register_craft({
output = "homedecor:armchair 2",
recipe = {
{ "wool:white",""},
{ "group:wood","group:wood" },
{ "wool:white","wool:white" },
},
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:kitchen_chair_padded",
recipe = {
"homedecor:kitchen_chair_wood",
"wool:white",
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:chair",
recipe = "homedecor:kitchen_chair_wood",
burntime = 15,
})
local chaircolors = { "black", "red", "pink", "violet", "blue", "dark_green" }
for _, color in ipairs(chaircolors) do
minetest.register_craft({
type = "shapeless",
output = "homedecor:chair_"..color,
recipe = {
"homedecor:chair",
"wool:white",
"dye:"..color
},
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:chair_"..color,
recipe = {
"homedecor:chair",
"wool:"..color
},
})
minetest.register_craft({
type = "fuel",
recipe = "homedecor:chair_"..color,
burntime = 15,
})
end
minetest.register_craft({
type = "fuel",
recipe = "homedecor:kitchen_chair_padded",
burntime = 15,
})
minetest.register_craft({
type = "fuel",