forgot to add in the recipes to make blue and violet dyes after adding the

special case for the existence of geraniums.
This commit is contained in:
Vanessa Ezekowitz 2012-08-05 23:41:22 -04:00
parent 48356ea59c
commit 1c8945b9d8

View File

@ -80,7 +80,6 @@ colorsources = {
for color in ipairs(colorsources) do for color in ipairs(colorsources) do
groupcolor =
-- the recipes to turn sources into pigments -- the recipes to turn sources into pigments
minetest.register_craftitem("unifieddyes:pigment_"..pigments[color], { minetest.register_craftitem("unifieddyes:pigment_"..pigments[color], {
@ -359,17 +358,21 @@ minetest.register_craftitem("unifieddyes:pigment_blue", {
inventory_image = "unifieddyes_pigment_blue.png", inventory_image = "unifieddyes_pigment_blue.png",
}) })
minetest.register_craft( {
type = "shapeless",
output = "unifieddyes:blue",
recipe = {
"unifieddyes:pigment_blue",
"unifieddyes:dye_base"
}
})
minetest.register_craftitem("unifieddyes:blue", { minetest.register_craftitem("unifieddyes:blue", {
description = "Full Blue Dye", description = "Full Blue Dye",
inventory_image = "unifieddyes_blue.png", inventory_image = "unifieddyes_blue.png",
groups = { dye=1, basecolor_violet=1, excolor_violet=1, unicolor_violet=1 } groups = { dye=1, basecolor_violet=1, excolor_violet=1, unicolor_violet=1 }
}) })
minetest.register_craftitem("unifieddyes:pigment_violet", {
description = "Violet Pigment",
inventory_image = "unifieddyes_pigment_violet.png",
})
minetest.register_craftitem("unifieddyes:violet", { minetest.register_craftitem("unifieddyes:violet", {
description = "Full Violet/Purple Dye", description = "Full Violet/Purple Dye",
inventory_image = "unifieddyes_violet.png", inventory_image = "unifieddyes_violet.png",
@ -397,12 +400,18 @@ minetest.register_craft( {
if minetest.registered_nodes["flowers:flower_geranium"] == nil then if minetest.registered_nodes["flowers:flower_geranium"] == nil then
minetest.register_craft({ minetest.register_craft({
type = "cooking", type = "cooking",
output = "unifieddyes:pigment_blue 2", output = "unifieddyes:pigment_blue 2",
recipe = "flowers:flower_viola", recipe = "flowers:flower_viola",
}) })
else else
minetest.register_craftitem("unifieddyes:pigment_violet", {
description = "Violet Pigment",
inventory_image = "unifieddyes_pigment_violet.png",
})
minetest.register_craft({ minetest.register_craft({
type = "cooking", type = "cooking",
output = "unifieddyes:pigment_blue 2", output = "unifieddyes:pigment_blue 2",
@ -414,6 +423,15 @@ else
output = "unifieddyes:pigment_violet 2", output = "unifieddyes:pigment_violet 2",
recipe = "flowers:flower_viola", recipe = "flowers:flower_viola",
}) })
minetest.register_craft( {
type = "shapeless",
output = "unifieddyes:violet",
recipe = {
"unifieddyes:pigment_violet",
"unifieddyes:dye_base"
}
})
end end