From 0c0c9502ce926b3229640a8497e38608ea12a554 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Sat, 25 Aug 2018 00:39:47 -0400 Subject: fix missing crafting --- init.lua | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 71 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 0a2bfec..3a36823 100644 --- a/init.lua +++ b/init.lua @@ -80,7 +80,7 @@ for _,color in pairs(hues) do }, }, { - groups = {dig_immediate = 3,ud_param2_colorable = 1,not_in_creative_inventory = (color~="grey" and 1 or nil)}, + groups = {dig_immediate = 3,not_in_creative_inventory = (color~="grey" and 1 or nil)}, mesecons = {conductor = { state = mesecon.state.off, onstate = "mesecons_insulated:insulated_"..color.."_on", @@ -96,7 +96,7 @@ for _,color in pairs(hues) do }, }, { - groups = {dig_immediate = 3,not_in_creative_inventory = 1,ud_param2_colorable = 1}, + groups = {dig_immediate = 3,not_in_creative_inventory = 1}, mesecons = {conductor = { state = mesecon.state.on, offstate = "mesecons_insulated:insulated_"..color.."_off", @@ -132,7 +132,7 @@ for _,color in pairs(hues) do }, }, { - groups = {dig_immediate = 3,ud_param2_colorable = 1,not_in_creative_inventory = (color~="grey" and 1 or nil)}, + groups = {dig_immediate = 3,not_in_creative_inventory = (color~="grey" and 1 or nil)}, mesecons = {conductor = { state = mesecon.state.off, onstate = "mesecons_extrawires:insulated_corner_"..color.."_on", @@ -148,7 +148,7 @@ for _,color in pairs(hues) do }, }, { - groups = {dig_immediate = 3,not_in_creative_inventory = 1,ud_param2_colorable = 1}, + groups = {dig_immediate = 3,not_in_creative_inventory = 1}, mesecons = {conductor = { state = mesecon.state.on, offstate = "mesecons_extrawires:insulated_corner_"..color.."_off", @@ -184,7 +184,7 @@ for _,color in pairs(hues) do }, }, { - groups = {dig_immediate = 3,ud_param2_colorable = 1,not_in_creative_inventory = (color~="grey" and 1 or nil)}, + groups = {dig_immediate = 3,not_in_creative_inventory = (color~="grey" and 1 or nil)}, mesecons = {conductor = { state = mesecon.state.off, onstate = "mesecons_extrawires:insulated_tjunction_"..color.."_on", @@ -200,7 +200,7 @@ for _,color in pairs(hues) do }, }, { - groups = {dig_immediate = 3,not_in_creative_inventory = 1,ud_param2_colorable = 1}, + groups = {dig_immediate = 3,not_in_creative_inventory = 1}, mesecons = {conductor = { state = mesecon.state.on, offstate = "mesecons_extrawires:insulated_tjunction_"..color.."_off", @@ -337,3 +337,68 @@ if minetest.get_modpath("digilines") then } }) end + +for _,color in pairs(hues) do + if color ~= "grey" then + local dye = "dye:"..color + minetest.register_craft({ + output = unifieddyes.make_colored_itemstack( + "mesecons_extrawires:insulated_corner_"..color.."_off 3", + true, + dye), + recipe = { + {"", dye, ""}, + {"mesecons_insulated:insulated_grey_off", "mesecons_insulated:insulated_grey_off", ""}, + {"", "mesecons_insulated:insulated_grey_off", ""}, + } + }) + + minetest.register_craft({ + output = unifieddyes.make_colored_itemstack( + "mesecons_extrawires:insulated_tjunction_"..color.."_off 3", + true, + dye), + recipe = { + {"", dye, ""}, + {"mesecons_insulated:insulated_grey_off", "mesecons_insulated:insulated_grey_off", "mesecons_insulated:insulated_grey_off"}, + {"", "mesecons_insulated:insulated_grey_off", ""}, + } + }) + + 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