summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-25 01:29:46 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-08-25 01:29:46 -0400
commitc14eca1317b4b7641a4527602e602182e5105c13 (patch)
tree944d0746b4d81ea7f9f6ec358b1e5fbcf38f7781
parent63ce3e8112d652648daec1700a03080e5b9daefc (diff)
downloadunifiedmesecons-c14eca1317b4b7641a4527602e602182e5105c13.tar
unifiedmesecons-c14eca1317b4b7641a4527602e602182e5105c13.tar.gz
unifiedmesecons-c14eca1317b4b7641a4527602e602182e5105c13.tar.bz2
unifiedmesecons-c14eca1317b4b7641a4527602e602182e5105c13.tar.xz
unifiedmesecons-c14eca1317b4b7641a4527602e602182e5105c13.zip
allow re-dying of grey wires
-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