fix bed recipe

This commit is contained in:
Vanessa Ezekowitz 2017-02-03 14:20:55 -05:00
parent fe92fdc373
commit 36dc31416e

View File

@ -2488,27 +2488,21 @@ local bedcolors = {
{ "brown", "brown" }, { "brown", "brown" },
} }
for c in ipairs(bedcolors) do minetest.register_craft( {
local color = bedcolors[c][1] output = "homedecor:bed_regular",
local woolcolor = bedcolors[c][2] recipe = {
{ "group:stick", "", "group:stick" },
{ "wool:white", "wool:white", "wool:white" },
{ "group:wood", "", "group:wood" },
},
})
minetest.register_craft( { minetest.register_craft( {
output = "homedecor:bed_"..color.."_regular", output = "homedecor:bed_kingsize",
recipe = { recipe = {
{ "group:stick", "", "group:stick" }, { "homedecor:bed_regular", "homedecor:bed_regular" }
{ "wool:white", "wool:"..woolcolor, "wool:"..woolcolor }, },
{ "group:wood", "", "group:wood" }, })
},
})
minetest.register_craft( {
output = "homedecor:bed_"..color.."_kingsize",
recipe = {
{ "homedecor:bed_"..color.."_regular", "homedecor:bed_"..color.."_regular" }
},
})
end
minetest.register_craft( { minetest.register_craft( {
output = "homedecor:bottle_green", output = "homedecor:bottle_green",