fix curtain recipes

add support for cottages:wool therein
This commit is contained in:
Vanessa Ezekowitz 2017-01-28 22:02:37 -05:00
parent 4ef2f83f07
commit 428729a43d

View File

@ -1046,26 +1046,23 @@ minetest.register_craft( {
-- Curtains
local curtaincolors = {
"red",
"green",
"blue",
"white",
"pink",
"violet"
}
for c in ipairs(curtaincolors) do
local color = curtaincolors[c]
minetest.register_craft( {
output = "homedecor:curtain_"..color.." 3",
minetest.register_craft( {
output = "homedecor:curtain_closed 4",
recipe = {
{ "wool:"..color, "", ""},
{ "wool:"..color, "", ""},
{ "wool:"..color, "", ""},
{ "wool:white", "", ""},
{ "wool:white", "", ""},
{ "wool:white", "", ""},
},
})
end
})
minetest.register_craft( {
output = "homedecor:curtain_closed 4",
recipe = {
{ "cottages:wool", "", ""},
{ "cottages:wool", "", ""},
{ "cottages:wool", "", ""},
},
})
local mats = {
{ "brass", "homedecor:pole_brass" },