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:
parent
127a8b388e
commit
18df6ea1f6
32
fence.lua
32
fence.lua
|
@ -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.
|
||||
|
|
16
init.lua
16
init.lua
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user