mirror of
https://github.com/minetest-mods/stained_glass.git
synced 2024-11-20 00:30:18 +01:00
1a5f620a30
whole thing more readable. (VanessaE) Added low-glow and no-glow versions all colors/shades. (andersje)
69 lines
1.6 KiB
Lua
69 lines
1.6 KiB
Lua
for i in ipairs(stained_glass_hues) do
|
|
|
|
local huename = stained_glass_hues[i][1]
|
|
local huenumber = i
|
|
|
|
for j in ipairs(stained_glass_shades) do
|
|
|
|
local shadename = stained_glass_shades[j][1]
|
|
local shadenumber = stained_glass_shades[j][2]
|
|
|
|
local recipevalue = nil
|
|
|
|
if stained_glass_hues[i][2] then
|
|
recipevalue = "dye:"..shadename..huename
|
|
else
|
|
recipevalue = "group:dye,unicolor_"..shadename..huename
|
|
end
|
|
|
|
if shadename == "dark_" or shadename == "medium_" or shadename == "" then
|
|
|
|
stained_glass_define_regular({
|
|
colorcode = huenumber.."_"..shadenumber.."_7",
|
|
colorname = shadename..huename,
|
|
recipe = recipevalue,
|
|
prefix = "noglow_",
|
|
glasstype = "default:glass"
|
|
})
|
|
|
|
stained_glass_define_regular({
|
|
colorcode = huenumber.."_"..shadenumber.."_6",
|
|
colorname = shadename..huename.."_s50",
|
|
recipe = recipevalue.."_s50",
|
|
prefix = "noglow_",
|
|
glasstype = "default:glass"
|
|
})
|
|
|
|
elseif shadename == "light_" then
|
|
|
|
stained_glass_define_regular({
|
|
colorcode = huenumber.."_"..shadenumber.."_",
|
|
colorname = shadename..huename,
|
|
recipe = recipevalue,
|
|
prefix = "noglow_",
|
|
glasstype = "default:glass"
|
|
})
|
|
|
|
elseif shadename == "pastel_" then
|
|
|
|
stained_glass_define_pastel({
|
|
colorcode = huenumber.."_"..shadenumber.."_",
|
|
colorname = shadename..huename,
|
|
recipe = recipevalue,
|
|
prefix = "noglow_",
|
|
glasstype = "default:glass"
|
|
})
|
|
|
|
elseif shadename == "faint_" then
|
|
|
|
stained_glass_define_faint({
|
|
colorcode = huenumber.."_"..shadenumber.."_",
|
|
colorname = shadename..huename,
|
|
recipe = recipevalue,
|
|
prefix = "noglow_",
|
|
glasstype = "default:glass"
|
|
})
|
|
end
|
|
end
|
|
end
|