summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-07-16 10:53:56 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-07-16 10:53:56 -0400
commit711206099b4562a67c0ac1f1572ef4673a1e4540 (patch)
treee7ef77c6f437230eef04b6f1437cf8fcf09ea98d /init.lua
parent1384fa32a33a4394c2b05afaf0c9e19a922557d0 (diff)
downloadunifieddyes-711206099b4562a67c0ac1f1572ef4673a1e4540.tar
unifieddyes-711206099b4562a67c0ac1f1572ef4673a1e4540.tar.gz
unifieddyes-711206099b4562a67c0ac1f1572ef4673a1e4540.tar.bz2
unifieddyes-711206099b4562a67c0ac1f1572ef4673a1e4540.tar.xz
unifieddyes-711206099b4562a67c0ac1f1572ef4673a1e4540.zip
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.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua23
1 files changed, 19 insertions, 4 deletions
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