1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-17 15:48:31 +01:00

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