Consistent coloured glass recipes

This commit is contained in:
ezhh 2016-12-04 12:25:18 +00:00
parent fe93df7f2b
commit b50154a33c

@ -37,7 +37,6 @@ end
-- undecorated coloured glass recipes
-- this has to be kept in sync with init.lua one
local dye_list = {
{"black", "black",},
{"blue", "blue",},
@ -48,15 +47,18 @@ local dye_list = {
{"purple", "violet",},
{"red", "red",},
{"yellow", "yellow",},
{"frosted", "white",},
}
for i in ipairs(dye_list) do
local name = dye_list[i][1]
local dye = dye_list[i][2]
minetest.register_craft({
output = 'abriglass:stained_glass_'..name..' 2',
output = 'abriglass:stained_glass_'..name..' 6',
recipe = {
{'abriglass:clear_glass', '', 'abriglass:clear_glass' },
{'abriglass:clear_glass', 'dye:'..dye, 'abriglass:clear_glass' },
{'abriglass:clear_glass', '', 'abriglass:clear_glass' },
}
})
@ -67,15 +69,6 @@ for i in ipairs(dye_list) do
})
end
minetest.register_craft({
output = 'abriglass:stained_glass_frosted 6',
recipe = {
{'abriglass:clear_glass', '', 'abriglass:clear_glass' },
{'abriglass:clear_glass', 'dye:white', 'abriglass:clear_glass' },
{'abriglass:clear_glass', '', 'abriglass:clear_glass' },
}
})
-- patterned glass recipes
minetest.register_craft({
@ -171,12 +164,6 @@ minetest.register_craft({
output = "abriglass:clear_glass",
})
minetest.register_craft({
type = "cooking",
recipe = "abriglass:stained_glass_frosted",
output = "abriglass:clear_glass",
})
minetest.register_craft({
type = "cooking",
recipe = "abriglass:stainedglass_tiles_dark",