diff options
| -rw-r--r-- | init.lua | 77 | 
1 files changed, 71 insertions, 6 deletions
@@ -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  | 
