mirror of
https://github.com/Ezhh/abriglass.git
synced 2024-11-27 09:13:46 +01:00
Consistent coloured glass recipes
This commit is contained in:
parent
fe93df7f2b
commit
b50154a33c
21
crafting.lua
21
crafting.lua
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user