forked from mtcontrib/coloredwood
add more stick->fence recipes for default dye colors.
how'd these get left out?
This commit is contained in:
parent
127a8b388e
commit
18df6ea1f6
30
fence.lua
30
fence.lua
|
@ -198,6 +198,36 @@ for hue = 1, 12 do
|
||||||
})
|
})
|
||||||
end
|
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.
|
-- The 5 levels of greyscale.
|
||||||
|
|
16
init.lua
16
init.lua
|
@ -57,6 +57,22 @@ coloredwood.shades2 = {
|
||||||
"" -- represents "no special shade name", e.g. full.
|
"" -- 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 = {
|
coloredwood.hues = {
|
||||||
"red",
|
"red",
|
||||||
"orange",
|
"orange",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user