forked from mtcontrib/unifieddyes
Added a new set of colors: "light" (brightness turned up to 150% over the
full/base colors - no low-saturation versions here). Re-generated all of the dyes using my gentextures.sh script, to keep them consistent. Re-added the gentextures script to this mod, it's too useful not to include it.
This commit is contained in:
23
init.lua
23
init.lua
@ -286,8 +286,8 @@ minetest.register_craftitem("unifieddyes:black", {
|
||||
-- brightness from the above 12 base colors.
|
||||
|
||||
-- "s50" in a file/item name means "saturation: 50%".
|
||||
-- Brightness levels in the textures are 100%, 66%
|
||||
-- ("medium"), and 33% ("dark").
|
||||
-- Brightness levels in the textures are 33% ("dark"), 66% ("medium"),
|
||||
-- 100% ("full" but not so-named), and 150% ("light").
|
||||
|
||||
HUES = {
|
||||
"red",
|
||||
@ -386,6 +386,15 @@ for i = 1, 12 do
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = "unifieddyes:light_" .. hue .. " 2",
|
||||
recipe = {
|
||||
"unifieddyes:" .. hue,
|
||||
"unifieddyes:white_paint",
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craftitem("unifieddyes:dark_" .. hue .. "_s50", {
|
||||
description = "Dark " .. hue .. " (low saturation)",
|
||||
inventory_image = "unifieddyes_dark_" .. hue .. "_s50.png",
|
||||
@ -411,17 +420,23 @@ for i = 1, 12 do
|
||||
})
|
||||
|
||||
minetest.register_craftitem("unifieddyes:" .. hue .. "_s50", {
|
||||
description = "Bright " .. hue .. " (low saturation)",
|
||||
description = "Full " .. hue .. " (low saturation)",
|
||||
inventory_image = "unifieddyes_" .. hue .. "_s50.png",
|
||||
groups = {dye=1},
|
||||
})
|
||||
|
||||
minetest.register_craftitem("unifieddyes:" .. hue, {
|
||||
description = "Bright " .. hue,
|
||||
description = "Full " .. hue,
|
||||
inventory_image = "unifieddyes_" .. hue .. ".png",
|
||||
groups = {dye=1},
|
||||
})
|
||||
|
||||
minetest.register_craftitem("unifieddyes:light_" .. hue, {
|
||||
description = "Light " .. hue,
|
||||
inventory_image = "unifieddyes_light_" .. hue .. ".png",
|
||||
groups = {dye=1},
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user