1
0
mirror of https://github.com/mt-mods/coloredwood.git synced 2024-11-13 06:00:22 +01:00

add more stick->fence recipes for default dye colors.

how'd these get left out?
This commit is contained in:
Vanessa Ezekowitz 2014-11-16 12:35:01 -05:00
parent 127a8b388e
commit 18df6ea1f6
2 changed files with 47 additions and 1 deletions

View File

@ -197,7 +197,37 @@ for hue = 1, 12 do
},
})
end
-- extra recipes for default dye colors.
for _, color in ipairs(coloredwood.default_hues) do
minetest.register_craft({
output = "coloredwood:fence_"..color.." 2",
recipe = {
{ "dye:"..color, "", "" },
{"group:stick", "group:stick", "group:stick"},
{"group:stick", "group:stick", "group:stick"},
},
})
end
minetest.register_craft({
output = "coloredwood:fence_light_red 2",
recipe = {
{ "dye:pink", "", "" },
{"group:stick", "group:stick", "group:stick"},
{"group:stick", "group:stick", "group:stick"},
},
})
minetest.register_craft({
output = "coloredwood:fence_dark_orange 2",
recipe = {
{ "dye:brown", "", "" },
{"group:stick", "group:stick", "group:stick"},
{"group:stick", "group:stick", "group:stick"},
},
})
-- ============================================================
-- The 5 levels of greyscale.

View File

@ -57,6 +57,22 @@ coloredwood.shades2 = {
"" -- represents "no special shade name", e.g. full.
}
coloredwood.default_hues = {
"white",
"grey",
"dark_grey",
"black",
"violet",
"blue",
"cyan",
"dark_green",
"green",
"yellow",
"orange",
"red",
"magenta"
}
coloredwood.hues = {
"red",
"orange",