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 -- Curtains
local curtaincolors = { minetest.register_craft( {
"red", output = "homedecor:curtain_closed 4",
"green", recipe = {
"blue", { "wool:white", "", ""},
"white", { "wool:white", "", ""},
"pink", { "wool:white", "", ""},
"violet" },
} })
for c in ipairs(curtaincolors) do minetest.register_craft( {
local color = curtaincolors[c] output = "homedecor:curtain_closed 4",
minetest.register_craft( { recipe = {
output = "homedecor:curtain_"..color.." 3", { "cottages:wool", "", ""},
recipe = { { "cottages:wool", "", ""},
{ "wool:"..color, "", ""}, { "cottages:wool", "", ""},
{ "wool:"..color, "", ""}, },
{ "wool:"..color, "", ""}, })
},
})
end
local mats = { local mats = {
{ "brass", "homedecor:pole_brass" }, { "brass", "homedecor:pole_brass" },