mirror of
https://github.com/Ezhh/abriglass.git
synced 2024-11-30 10:43:50 +01:00
Fixed purple glass recipe
This commit is contained in:
parent
b7118388df
commit
fe93df7f2b
20
crafting.lua
20
crafting.lua
@ -38,17 +38,25 @@ end
|
|||||||
|
|
||||||
-- undecorated coloured glass recipes
|
-- undecorated coloured glass recipes
|
||||||
-- this has to be kept in sync with init.lua one
|
-- this has to be kept in sync with init.lua one
|
||||||
local glass_list = {
|
local dye_list = {
|
||||||
"black", "blue", "cyan", "green", "magenta",
|
{"black", "black",},
|
||||||
"orange", "purple", "red", "yellow",
|
{"blue", "blue",},
|
||||||
|
{"cyan", "cyan",},
|
||||||
|
{"green", "green",},
|
||||||
|
{"magenta", "magenta",},
|
||||||
|
{"orange", "orange",},
|
||||||
|
{"purple", "violet",},
|
||||||
|
{"red", "red",},
|
||||||
|
{"yellow", "yellow",},
|
||||||
}
|
}
|
||||||
|
|
||||||
for i in ipairs(glass_list) do
|
for i in ipairs(dye_list) do
|
||||||
local name = glass_list[i]
|
local name = dye_list[i][1]
|
||||||
|
local dye = dye_list[i][2]
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'abriglass:stained_glass_'..name..' 2',
|
output = 'abriglass:stained_glass_'..name..' 2',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'abriglass:clear_glass', 'dye:'..name, 'abriglass:clear_glass' },
|
{'abriglass:clear_glass', 'dye:'..dye, 'abriglass:clear_glass' },
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user