From 711206099b4562a67c0ac1f1572ef4673a1e4540 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Mon, 16 Jul 2012 10:53:56 -0400 Subject: 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. --- init.lua | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index da0e7b7..ce946a2 100644 --- a/init.lua +++ b/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 -- cgit v1.2.3