This commit is contained in:
James Stevenson 2016-02-29 20:55:44 +00:00
commit 5d09cab3d9

View file

@ -39,12 +39,19 @@ for _, row in ipairs(dyelocal.dyes) do
description = description, description = description,
groups = groups groups = groups
}) })
minetest.register_craft({ local flowers = {"white", "violet", "blue", "yellow", "orange", "red"}
type = "shapeless",
output = item_name.." 4", for i=1, #flowers do
recipe = {"group:flower,color_"..name}, if flowers[i] == name then
}) minetest.register_craft({
type = "shapeless",
output = item_name.." 4",
recipe = {"group:flower,color_"..name},
})
end
end
end end
-- manually add coal->black dye -- manually add coal->black dye
minetest.register_craft({ minetest.register_craft({
type = "shapeless", type = "shapeless",