1
0
mirror of https://github.com/mt-mods/unifieddyes.git synced 2025-06-30 23:30:45 +02:00

Replaced missing craftitem entries and got rid of some redundant code

left over from last update.  Added group settings for all dyes according
to recently-published standard.  Fixed a few typos in item descriptions, and
straightened up capitalization.
This commit is contained in:
Vanessa Ezekowitz
2012-07-25 20:55:45 -04:00
parent d670803067
commit 8359677e4e
3 changed files with 640 additions and 40 deletions

124
init.lua
View File

@ -77,15 +77,6 @@ pigments = {
"yellow",
"green",
"blue",
"carbon_black",
}
pigmentsdesc = {
"Red",
"Orange",
"Yellow",
"Green",
"Blue",
}
dyesdesc = {
@ -106,10 +97,11 @@ colorsources = {
for color = 1, 5 do
groupcolor =
-- the recipes to turn sources into pigments
minetest.register_craftitem("unifieddyes:pigment_"..pigments[color], {
description = pigmentsdesc[color].." Pigment",
description = dyesdesc[color].." Pigment",
inventory_image = "unifieddyes_pigment_"..pigments[color]..".png",
})
@ -122,8 +114,9 @@ for color = 1, 5 do
-- The recipes to turn pigments into usable dyes
minetest.register_craftitem("unifieddyes:"..pigments[color], {
description = dyesdesc[color].." Dye",
description = "Full "..dyesdesc[color].." Dye",
inventory_image = "unifieddyes_"..pigments[color]..".png",
groups = { dye=1, ["basecolor_"..pigments[color]]=1, ["excolor_"..pigments[color]]=1, ["unicolor_"..pigments[color]]=1 }
})
minetest.register_craft( {
@ -162,6 +155,7 @@ minetest.register_craft({
minetest.register_craftitem("unifieddyes:carbon_black", {
description = "Carbon Black",
inventory_image = "unifieddyes_carbon_black.png",
groups = { dye=1, basecolor_black=1, excolor_black=1, unicolor_black=1 }
})
minetest.register_craft({
@ -171,7 +165,7 @@ minetest.register_craft({
})
minetest.register_craftitem("unifieddyes:black", {
description = "Carbon Black",
description = "Black Dye",
inventory_image = "unifieddyes_black.png",
})
@ -207,7 +201,7 @@ minetest.register_craft( {
minetest.register_craftitem("unifieddyes:white_paint", {
description = "White Paint",
inventory_image = "unifieddyes_white_paint.png",
groups = {dye=1},
groups = { dye=1, basecolor_white=1, excolor_white=1, unicolor_white=1 }
})
-- Light grey paint
@ -223,9 +217,9 @@ minetest.register_craft( {
})
minetest.register_craftitem("unifieddyes:lightgrey_paint", {
description = "Light grey paint",
description = "Light Grey Paint",
inventory_image = "unifieddyes_lightgrey_paint.png",
groups = {dye=1},
groups = { dye=1, excolor_lightgrey=1, unicolor_lightgrey=1 }
})
-- Medium grey paint
@ -240,9 +234,9 @@ minetest.register_craft( {
})
minetest.register_craftitem("unifieddyes:grey_paint", {
description = "Medium grey paint",
description = "Medium Grey Paint",
inventory_image = "unifieddyes_grey_paint.png",
groups = {dye=1},
groups = { dye=1, basecolor_grey=1, excolor_grey=1, unicolor_grey=1 }
})
-- Dark grey paint
@ -258,9 +252,9 @@ minetest.register_craft( {
})
minetest.register_craftitem("unifieddyes:darkgrey_paint", {
description = "Dark grey paint",
description = "Dark Grey Paint",
inventory_image = "unifieddyes_darkgrey_paint.png",
groups = {dye=1},
groups = { dye=1, excolor_darkgrey=1, unicolor_darkgrey=1 }
})
@ -270,6 +264,12 @@ minetest.register_craftitem("unifieddyes:darkgrey_paint", {
-- Cyan
minetest.register_craftitem("unifieddyes:cyan", {
description = "Full Cyan Dye",
inventory_image = "unifieddyes_cyan.png",
groups = { dye=1, basecolor_cyan=1, excolor_cyan=1, unicolor_cyan=1 }
})
minetest.register_craft( {
type = "shapeless",
output = "unifieddyes:cyan 2",
@ -281,6 +281,12 @@ minetest.register_craft( {
-- Magenta
minetest.register_craftitem("unifieddyes:magenta", {
description = "Full Magenta Dye",
inventory_image = "unifieddyes_magenta.png",
groups = { dye=1, basecolor_magenta=1, excolor_magenta=1, unicolor_magenta=1 }
})
minetest.register_craft( {
type = "shapeless",
output = "unifieddyes:magenta 2",
@ -292,6 +298,12 @@ minetest.register_craft( {
-- Lime
minetest.register_craftitem("unifieddyes:lime", {
description = "Full Lime Dye",
inventory_image = "unifieddyes_lime.png",
groups = { dye=1, excolor_lime=1, unicolor_lime=1 }
})
minetest.register_craft( {
type = "shapeless",
output = "unifieddyes:lime 2",
@ -303,6 +315,12 @@ minetest.register_craft( {
-- Aqua
minetest.register_craftitem("unifieddyes:aqua", {
description = "Full Aqua Dye",
inventory_image = "unifieddyes_aqua.png",
groups = { dye=1, excolor_aqua=1, unicolor_aqua=1 }
})
minetest.register_craft( {
type = "shapeless",
output = "unifieddyes:aqua 2",
@ -314,6 +332,12 @@ minetest.register_craft( {
-- Sky blue
minetest.register_craftitem("unifieddyes:skyblue", {
description = "Full Sky-blue Dye",
inventory_image = "unifieddyes_skyblue.png",
groups = { dye=1, excolor_sky_blue=1, unicolor_sky_blue=1 }
})
minetest.register_craft( {
type = "shapeless",
output = "unifieddyes:skyblue 2",
@ -325,6 +349,12 @@ minetest.register_craft( {
-- Violet
minetest.register_craftitem("unifieddyes:violet", {
description = "Full Violet/Purple Dye",
inventory_image = "unifieddyes_violet.png",
groups = { dye=1, basecolor_violet=1, excolor_violet=1, unicolor_violet=1 }
})
minetest.register_craft( {
type = "shapeless",
output = "unifieddyes:violet 2",
@ -344,9 +374,14 @@ minetest.register_craft( {
},
})
-- Red-violet
minetest.register_craftitem("unifieddyes:redviolet", {
description = "Full Red-violet Dye",
inventory_image = "unifieddyes_redviolet.png",
groups = { dye=1, excolor_red_violet=1, unicolor_red_violet=1 }
})
minetest.register_craft( {
type = "shapeless",
output = "unifieddyes:redviolet 2",
@ -381,9 +416,26 @@ HUES = {
"redviolet"
}
HUES2 = {
"Red",
"Orange",
"Yellow",
"Lime",
"Green",
"Aqua",
"Cyan",
"Sky-blue",
"Blue",
"Violet",
"Magenta",
"Red-violet"
}
for i = 1, 12 do
hue = HUES[i]
hue2 = HUES2[i]
minetest.register_craft( {
type = "shapeless",
@ -473,50 +525,42 @@ for i = 1, 12 do
})
minetest.register_craftitem("unifieddyes:dark_" .. hue .. "_s50", {
description = "Dark " .. hue .. " (low saturation)",
description = "Dark " .. hue2 .. " Dye (low saturation)",
inventory_image = "unifieddyes_dark_" .. hue .. "_s50.png",
groups = {dye=1},
groups = { dye=1, ["unicolor_dark_"..hue.."_s50"]=1 }
})
minetest.register_craftitem("unifieddyes:dark_" .. hue, {
description = "Dark " .. hue,
description = "Dark " .. hue2 .. " Dye",
inventory_image = "unifieddyes_dark_" .. hue .. ".png",
groups = {dye=1},
groups = { dye=1, ["unicolor_dark_"..hue]=1 }
})
minetest.register_craftitem("unifieddyes:medium_" .. hue .. "_s50", {
description = "Medium " .. hue .. " (low saturation)",
description = "Medium " .. hue2 .. " Dye (low saturation)",
inventory_image = "unifieddyes_medium_" .. hue .. "_s50.png",
groups = {dye=1},
groups = { dye=1, ["unicolor_medium_"..hue.."_s50"]=1 }
})
minetest.register_craftitem("unifieddyes:medium_" .. hue, {
description = "Medium " .. hue,
description = "Medium " .. hue2 .. " Dye",
inventory_image = "unifieddyes_medium_" .. hue .. ".png",
groups = {dye=1},
groups = { dye=1, ["unicolor_medium_"..hue]=1 }
})
minetest.register_craftitem("unifieddyes:" .. hue .. "_s50", {
description = "Full " .. hue .. " (low saturation)",
description = "Full " .. hue2 .. " Dye (low saturation)",
inventory_image = "unifieddyes_" .. hue .. "_s50.png",
groups = {dye=1},
})
minetest.register_craftitem("unifieddyes:" .. hue, {
description = "Full " .. hue,
inventory_image = "unifieddyes_" .. hue .. ".png",
groups = {dye=1},
groups = { dye=1, ["unicolor_"..hue.."_s50"]=1 }
})
minetest.register_craftitem("unifieddyes:light_" .. hue, {
description = "Light " .. hue,
description = "Light " .. hue2 .. " Dye",
inventory_image = "unifieddyes_light_" .. hue .. ".png",
groups = {dye=1},
groups = { dye=1, ["unicolor_light_"..hue]=1 }
})
end
print("[UnifiedDyes] Loaded!")