From c14eca1317b4b7641a4527602e602182e5105c13 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Sat, 25 Aug 2018 01:29:46 -0400 Subject: allow re-dying of grey wires --- init.lua | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/init.lua b/init.lua index 2ddb4ba..195eab0 100644 --- a/init.lua +++ b/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 -- cgit v1.2.3