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]
minetest.register_craft( {
output = "homedecor:bed_"..color.."_regular",
recipe = { recipe = {
{ "group:stick", "", "group:stick" }, { "group:stick", "", "group:stick" },
{ "wool:white", "wool:"..woolcolor, "wool:"..woolcolor }, { "wool:white", "wool:white", "wool:white" },
{ "group:wood", "", "group:wood" }, { "group:wood", "", "group:wood" },
}, },
}) })
minetest.register_craft( { minetest.register_craft( {
output = "homedecor:bed_"..color.."_kingsize", output = "homedecor:bed_kingsize",
recipe = { recipe = {
{ "homedecor:bed_"..color.."_regular", "homedecor:bed_"..color.."_regular" } { "homedecor:bed_regular", "homedecor:bed_regular" }
}, },
}) })
end
minetest.register_craft( { minetest.register_craft( {
output = "homedecor:bottle_green", output = "homedecor:bottle_green",