allow re-dying of grey wires

master
Vanessa Dannenberg 2018-08-25 01:29:46 -04:00
parent 63ce3e8112
commit c14eca1317
1 changed files with 42 additions and 0 deletions

View File

@ -418,3 +418,45 @@ for _,color in pairs(hues) do
})
end
end
for _,color in pairs(hues) do -- allow re-dying of grey wires since they're so lightly-shaded.
if color ~= "grey" then
local dye = "dye:"..color
minetest.register_craft({
type = "shapeless",
output = unifieddyes.make_colored_itemstack(
"mesecons_insulated:insulated_"..color.."_off",
true,
dye),
recipe = {
dye,
"mesecons_insulated:insulated_grey_off",
},
})
minetest.register_craft({
output = unifieddyes.make_colored_itemstack(
"mesecons_extrawires:insulated_corner_"..color.."_off",
true,
dye),
type = "shapeless",
recipe = {
dye,
"mesecons_extrawires:insulated_corner_grey_off"
}
})
minetest.register_craft({
output = unifieddyes.make_colored_itemstack(
"mesecons_extrawires:insulated_tjunction_"..color.."_off",
true,
dye),
type = "shapeless",
recipe = {
dye,
"mesecons_extrawires:insulated_tjunction_grey_off"
}
})
end
end