2012-07-24 23:56:03 +02:00
|
|
|
-- Unified Dyes Mod by Vanessa Ezekowitz ~~ 2012-07-24
|
2012-07-12 23:49:46 +02:00
|
|
|
--
|
|
|
|
-- License: GPL
|
|
|
|
--
|
|
|
|
-- This mod depends on ironzorg's flowers mod
|
|
|
|
--
|
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
--===========================================================================
|
|
|
|
-- First you need something to put the dyes into - glass bottles
|
|
|
|
--
|
2012-07-25 03:55:35 +02:00
|
|
|
-- Smelt some sand into glass as usual, then craft 5 of those into an upside-
|
|
|
|
-- down "U" to get 15 empty bottles.
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
minetest.register_craftitem("unifieddyes:empty_bottle", {
|
|
|
|
description = "Empty Glass Bottle",
|
|
|
|
inventory_image = "unifieddyes_empty_bottle.png",
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
2012-07-25 03:55:35 +02:00
|
|
|
minetest.register_craft( {
|
|
|
|
output = "unifieddyes:empty_bottle 15",
|
|
|
|
recipe = {
|
|
|
|
{ "default:glass", "", "default:glass" },
|
|
|
|
{ "default:glass", "", "default:glass" },
|
|
|
|
{ "", "default:glass", "" }
|
|
|
|
}
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
2012-07-25 03:55:35 +02:00
|
|
|
-- Make sure we can recycle the bottles. 3 bottles -> 1 glass block.
|
2012-07-24 23:56:03 +02:00
|
|
|
|
2012-07-12 23:49:46 +02:00
|
|
|
minetest.register_craft( {
|
2012-07-25 03:55:35 +02:00
|
|
|
type = "shapeless",
|
|
|
|
output = "default:glass",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:empty_bottle",
|
|
|
|
"unifieddyes:empty_bottle",
|
|
|
|
"unifieddyes:empty_bottle",
|
|
|
|
},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
|
2012-07-25 03:55:35 +02:00
|
|
|
--============================================================================
|
|
|
|
-- Now let's use some of those bottles along with some other stuff to make
|
|
|
|
-- dye base. Craft six empty bottles along with a bucket of water and a piece
|
|
|
|
-- of jungle grass to get 6 portions of dye base.
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
minetest.register_craftitem("unifieddyes:dye_base", {
|
|
|
|
description = "Uncolored Dye Base Liquid",
|
|
|
|
inventory_image = "unifieddyes_dye_base.png",
|
|
|
|
})
|
2012-07-12 23:49:46 +02:00
|
|
|
|
|
|
|
minetest.register_craft( {
|
2012-07-25 03:55:35 +02:00
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:dye_base 6",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:empty_bottle",
|
|
|
|
"unifieddyes:empty_bottle",
|
|
|
|
"unifieddyes:empty_bottle",
|
|
|
|
"unifieddyes:empty_bottle",
|
|
|
|
"unifieddyes:empty_bottle",
|
|
|
|
"unifieddyes:empty_bottle",
|
|
|
|
"bucket:bucket_water",
|
|
|
|
"default:junglegrass",
|
|
|
|
},
|
|
|
|
replacements = { {'bucket:bucket_water', 'bucket:bucket_empty'}, },
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
--==========================================================================
|
|
|
|
-- Now we need to turn our color sources (flowers, etc) into pigments and from
|
|
|
|
-- there into actual usable dyes. There are seven base colors - one for each
|
|
|
|
-- flower, plus black (as "carbon black") from coal, and white (as "titanium
|
|
|
|
-- dioxide") from stone. Most give two portions of pigment; cactus gives 6,
|
|
|
|
-- stone gives 10.
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
pigments = {
|
|
|
|
"red",
|
|
|
|
"orange",
|
|
|
|
"yellow",
|
|
|
|
"green",
|
|
|
|
"blue",
|
|
|
|
"carbon_black",
|
|
|
|
}
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
pigmentsdesc = {
|
|
|
|
"Red",
|
|
|
|
"Orange",
|
|
|
|
"Yellow",
|
|
|
|
"Green",
|
|
|
|
"Blue",
|
|
|
|
}
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
dyesdesc = {
|
|
|
|
"Red",
|
|
|
|
"Orange",
|
|
|
|
"Yellow",
|
|
|
|
"Green",
|
|
|
|
"Blue",
|
|
|
|
}
|
|
|
|
|
|
|
|
colorsources = {
|
|
|
|
"flowers:flower_rose",
|
|
|
|
"flowers:flower_tulip",
|
|
|
|
"flowers:flower_dandelion_yellow",
|
|
|
|
"flowers:flower_waterlily",
|
|
|
|
"flowers:flower_viola",
|
|
|
|
}
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
for color = 1, 5 do
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
-- the recipes to turn sources into pigments
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
minetest.register_craftitem("unifieddyes:pigment_"..pigments[color], {
|
|
|
|
description = pigmentsdesc[color].." Pigment",
|
|
|
|
inventory_image = "unifieddyes_pigment_"..pigments[color]..".png",
|
|
|
|
})
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "unifieddyes:pigment_"..pigments[color].." 2",
|
|
|
|
recipe = colorsources[color],
|
|
|
|
})
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
-- The recipes to turn pigments into usable dyes
|
|
|
|
|
|
|
|
minetest.register_craftitem("unifieddyes:"..pigments[color], {
|
|
|
|
description = dyesdesc[color].." Dye",
|
|
|
|
inventory_image = "unifieddyes_"..pigments[color]..".png",
|
|
|
|
})
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:"..pigments[color],
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:pigment_"..pigments[color],
|
|
|
|
"unifieddyes:dye_base"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
-- Stone->titanium dioxide and cactus->green pigment are done separately
|
|
|
|
-- because of their larger yields
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
minetest.register_craftitem("unifieddyes:titanium_dioxide", {
|
|
|
|
description = "Titanium Dioxide",
|
|
|
|
inventory_image = "unifieddyes_titanium_dioxide.png",
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "unifieddyes:titanium_dioxide 10",
|
|
|
|
recipe = "default:stone",
|
|
|
|
})
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "unifieddyes:pigment_green 6",
|
|
|
|
recipe = "default:cactus",
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
-- coal->carbon black and carbon black -> black dye are done separately
|
|
|
|
-- because of the different names
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
minetest.register_craftitem("unifieddyes:carbon_black", {
|
|
|
|
description = "Carbon Black",
|
|
|
|
inventory_image = "unifieddyes_carbon_black.png",
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "unifieddyes:carbon_black 2",
|
|
|
|
recipe = "default:coal_lump",
|
|
|
|
})
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
minetest.register_craftitem("unifieddyes:black", {
|
|
|
|
description = "Carbon Black",
|
|
|
|
inventory_image = "unifieddyes_black.png",
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2012-07-24 23:56:03 +02:00
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:black",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:carbon_black",
|
|
|
|
"unifieddyes:dye_base",
|
|
|
|
},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
--=======================================================================
|
|
|
|
-- Now that we have the dyes in a usable form, let's mix the various
|
|
|
|
-- ingredients together to create the rest of the mod's colors and greys.
|
2012-07-12 23:49:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
----------------------------
|
|
|
|
-- The 5 levels of greyscale
|
|
|
|
|
|
|
|
-- White paint
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:white_paint",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:titanium_dioxide",
|
|
|
|
"bucket:bucket_water",
|
|
|
|
"default:junglegrass",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("unifieddyes:white_paint", {
|
|
|
|
description = "White Paint",
|
|
|
|
inventory_image = "unifieddyes_white_paint.png",
|
2012-07-13 03:54:43 +02:00
|
|
|
groups = {dye=1},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Light grey paint
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:lightgrey_paint 3",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:white_paint",
|
|
|
|
"unifieddyes:white_paint",
|
2012-07-24 23:56:03 +02:00
|
|
|
"unifieddyes:carbon_black",
|
2012-07-12 23:49:46 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("unifieddyes:lightgrey_paint", {
|
|
|
|
description = "Light grey paint",
|
|
|
|
inventory_image = "unifieddyes_lightgrey_paint.png",
|
2012-07-13 03:54:43 +02:00
|
|
|
groups = {dye=1},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Medium grey paint
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:grey_paint 2",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:white_paint",
|
2012-07-24 23:56:03 +02:00
|
|
|
"unifieddyes:carbon_black",
|
2012-07-12 23:49:46 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("unifieddyes:grey_paint", {
|
|
|
|
description = "Medium grey paint",
|
|
|
|
inventory_image = "unifieddyes_grey_paint.png",
|
2012-07-13 03:54:43 +02:00
|
|
|
groups = {dye=1},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Dark grey paint
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:darkgrey_paint 3",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:white_paint",
|
2012-07-24 23:56:03 +02:00
|
|
|
"unifieddyes:carbon_black",
|
|
|
|
"unifieddyes:carbon_black",
|
2012-07-12 23:49:46 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("unifieddyes:darkgrey_paint", {
|
|
|
|
description = "Dark grey paint",
|
|
|
|
inventory_image = "unifieddyes_darkgrey_paint.png",
|
2012-07-13 03:54:43 +02:00
|
|
|
groups = {dye=1},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
--=============================================================================
|
|
|
|
-- Smelting/crafting recipes needed to generate various remaining 'full' colors
|
|
|
|
-- (the register_craftitem functions are in the generate-the-rest loop below).
|
2012-07-12 23:49:46 +02:00
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
-- Cyan
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:cyan 2",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:blue",
|
|
|
|
"unifieddyes:green",
|
|
|
|
},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
-- Magenta
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:magenta 2",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:blue",
|
|
|
|
"unifieddyes:red",
|
|
|
|
},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
-- Lime
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:lime 2",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:yellow",
|
|
|
|
"unifieddyes:green",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Aqua
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:aqua 2",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:cyan",
|
|
|
|
"unifieddyes:green",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Sky blue
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:skyblue 2",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:cyan",
|
|
|
|
"unifieddyes:blue",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Violet
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:violet 2",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:blue",
|
|
|
|
"unifieddyes:magenta",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:violet 3",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:blue",
|
|
|
|
"unifieddyes:blue",
|
|
|
|
"unifieddyes:red",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
-- Red-violet
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:redviolet 2",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:red",
|
|
|
|
"unifieddyes:magenta",
|
|
|
|
},
|
|
|
|
})
|
2012-07-12 23:49:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
-- =================================================================
|
|
|
|
|
|
|
|
-- Finally, generate all of additional variants of hue, saturation, and
|
2012-07-24 23:56:03 +02:00
|
|
|
-- brightness.
|
2012-07-12 23:49:46 +02:00
|
|
|
|
|
|
|
-- "s50" in a file/item name means "saturation: 50%".
|
2012-07-16 16:53:56 +02:00
|
|
|
-- Brightness levels in the textures are 33% ("dark"), 66% ("medium"),
|
|
|
|
-- 100% ("full" but not so-named), and 150% ("light").
|
2012-07-12 23:49:46 +02:00
|
|
|
|
|
|
|
HUES = {
|
|
|
|
"red",
|
|
|
|
"orange",
|
|
|
|
"yellow",
|
|
|
|
"lime",
|
|
|
|
"green",
|
|
|
|
"aqua",
|
|
|
|
"cyan",
|
|
|
|
"skyblue",
|
|
|
|
"blue",
|
|
|
|
"violet",
|
|
|
|
"magenta",
|
|
|
|
"redviolet"
|
|
|
|
}
|
|
|
|
|
|
|
|
for i = 1, 12 do
|
|
|
|
|
|
|
|
hue = HUES[i]
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:dark_" .. hue .. "_s50 2",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:" .. hue,
|
|
|
|
"unifieddyes:darkgrey_paint",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:dark_" .. hue .. "_s50 4",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:" .. hue,
|
|
|
|
"unifieddyes:black",
|
|
|
|
"unifieddyes:black",
|
|
|
|
"unifieddyes:white_paint"
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:dark_" .. hue .. " 3",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:" .. hue,
|
|
|
|
"unifieddyes:black",
|
|
|
|
"unifieddyes:black",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:medium_" .. hue .. "_s50 2",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:" .. hue,
|
|
|
|
"unifieddyes:grey_paint",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:medium_" .. hue .. "_s50 3",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:" .. hue,
|
|
|
|
"unifieddyes:black",
|
|
|
|
"unifieddyes:white_paint",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:medium_" .. hue .. " 2",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:" .. hue,
|
|
|
|
"unifieddyes:black",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:" .. hue .. "_s50 2",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:" .. hue,
|
|
|
|
"unifieddyes:lightgrey_paint",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:" .. hue .. "_s50 4",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:" .. hue,
|
|
|
|
"unifieddyes:white_paint",
|
|
|
|
"unifieddyes:white_paint",
|
|
|
|
"unifieddyes:black",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2012-07-16 16:53:56 +02:00
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "unifieddyes:light_" .. hue .. " 2",
|
|
|
|
recipe = {
|
|
|
|
"unifieddyes:" .. hue,
|
|
|
|
"unifieddyes:white_paint",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2012-07-12 23:49:46 +02:00
|
|
|
minetest.register_craftitem("unifieddyes:dark_" .. hue .. "_s50", {
|
|
|
|
description = "Dark " .. hue .. " (low saturation)",
|
2012-07-14 05:23:39 +02:00
|
|
|
inventory_image = "unifieddyes_dark_" .. hue .. "_s50.png",
|
2012-07-13 03:54:43 +02:00
|
|
|
groups = {dye=1},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("unifieddyes:dark_" .. hue, {
|
|
|
|
description = "Dark " .. hue,
|
2012-07-14 05:23:39 +02:00
|
|
|
inventory_image = "unifieddyes_dark_" .. hue .. ".png",
|
2012-07-13 03:54:43 +02:00
|
|
|
groups = {dye=1},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("unifieddyes:medium_" .. hue .. "_s50", {
|
|
|
|
description = "Medium " .. hue .. " (low saturation)",
|
|
|
|
inventory_image = "unifieddyes_medium_" .. hue .. "_s50.png",
|
2012-07-13 03:54:43 +02:00
|
|
|
groups = {dye=1},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("unifieddyes:medium_" .. hue, {
|
|
|
|
description = "Medium " .. hue,
|
2012-07-14 05:23:39 +02:00
|
|
|
inventory_image = "unifieddyes_medium_" .. hue .. ".png",
|
2012-07-13 03:54:43 +02:00
|
|
|
groups = {dye=1},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("unifieddyes:" .. hue .. "_s50", {
|
2012-07-16 16:53:56 +02:00
|
|
|
description = "Full " .. hue .. " (low saturation)",
|
2012-07-14 05:23:39 +02:00
|
|
|
inventory_image = "unifieddyes_" .. hue .. "_s50.png",
|
2012-07-13 03:54:43 +02:00
|
|
|
groups = {dye=1},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("unifieddyes:" .. hue, {
|
2012-07-16 16:53:56 +02:00
|
|
|
description = "Full " .. hue,
|
2012-07-14 05:23:39 +02:00
|
|
|
inventory_image = "unifieddyes_" .. hue .. ".png",
|
2012-07-13 03:54:43 +02:00
|
|
|
groups = {dye=1},
|
2012-07-12 23:49:46 +02:00
|
|
|
})
|
|
|
|
|
2012-07-16 16:53:56 +02:00
|
|
|
minetest.register_craftitem("unifieddyes:light_" .. hue, {
|
|
|
|
description = "Light " .. hue,
|
|
|
|
inventory_image = "unifieddyes_light_" .. hue .. ".png",
|
|
|
|
groups = {dye=1},
|
|
|
|
})
|
|
|
|
|
2012-07-12 23:49:46 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
|
2012-07-24 23:56:03 +02:00
|
|
|
|
2012-07-12 23:49:46 +02:00
|
|
|
print("[UnifiedDyes] Loaded!")
|
|
|
|
|