forked from nalc/homedecor_modpack
fix curtain recipes
add support for cottages:wool therein
This commit is contained in:
parent
4ef2f83f07
commit
428729a43d
@ -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" },
|
||||||
|
Loading…
Reference in New Issue
Block a user