summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua42
1 files changed, 42 insertions, 0 deletions
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