allow re-dying of grey wires
parent
63ce3e8112
commit
c14eca1317
42
init.lua
42
init.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue