for i, recipe in pairs(data.raw.recipe) do if recipe.name == "offshore-pump" or recipe.name == "inserter" or recipe.name == "electric-mining-drill" or recipe.name == "lab" or recipe.name == "radar" or recipe.name == "repair-pack" or recipe.name == "assembling-machine-1" or recipe.name == "splitter" or recipe.name == "assemblebot-1" or recipe.name == "liquid-handler" or recipe.name == "burner-smart-inserter" or recipe.name == "frame-1" or --DyTech basic mining drill recipe.name == "assembling-machine-0" then bobmods.lib.recipe.replace_ingredient(recipe.name, "electronic-circuit", "basic-circuit-board") end end data.raw.recipe["red-wire"].ingredients = {{"insulated-cable", 1}} data.raw.recipe["green-wire"].ingredients = {{"insulated-cable", 1}} if data.raw.fluid["hydrogen-chloride"] then bobmods.lib.recipe.replace_ingredient("ferric-chloride-solution", "water", "hydrogen-chloride") end if data.raw.item["tinned-copper-cable"] then bobmods.lib.recipe.replace_ingredient("insulated-cable", "copper-cable", "tinned-copper-cable") bobmods.lib.recipe.replace_ingredient("basic-electronic-components", "copper-cable", "tinned-copper-cable") bobmods.lib.recipe.replace_ingredient("electronic-components", "copper-cable", "tinned-copper-cable") bobmods.lib.recipe.replace_ingredient("intergrated-electronics", "copper-cable", "tinned-copper-cable") end if data.raw.item["carbon"] then bobmods.lib.recipe.replace_ingredient("basic-electronic-components", "coal", "carbon") end if data.raw.item["silicon-wafer"] then bobmods.lib.recipe.add_ingredient("electronic-components", {"silicon-wafer", 2}) bobmods.lib.recipe.add_ingredient("intergrated-electronics", {"silicon-wafer", 4}) bobmods.lib.recipe.add_ingredient("processing-electronics", {"silicon-wafer", 6}) else if data.raw.item["silicon"] then bobmods.lib.recipe.add_ingredient("electronic-components", {"silicon", 1}) bobmods.lib.recipe.add_ingredient("intergrated-electronics", {"silicon", 2}) bobmods.lib.recipe.add_ingredient("processing-electronics", {"silicon", 3}) else bobmods.lib.recipe.add_ingredient("electronic-components", {"copper-plate", 1}) bobmods.lib.recipe.add_ingredient("intergrated-electronics", {"copper-plate", 2}) bobmods.lib.recipe.add_ingredient("processing-electronics", {"copper-plate", 3}) end end if data.raw.item["gilded-copper-cable"] then bobmods.lib.recipe.replace_ingredient("processing-electronics", "copper-cable", "gilded-copper-cable") else if data.raw.item["tinned-copper-cable"] then bobmods.lib.recipe.replace_ingredient("processing-electronics", "copper-cable", "tinned-copper-cable") end end if data.raw.item["silicon-nitride"] then bobmods.lib.recipe.replace_ingredient("processing-electronics", "plastic-bar", "silicon-nitride") end if data.raw.item["glass"] then bobmods.lib.recipe.add_ingredient("fibreglass-board", {"glass", 1}) else bobmods.lib.recipe.add_ingredient("fibreglass-board", {"plastic-bar", 1}) end if data.raw.item["tin-plate"] then bobmods.lib.recipe.add_ingredient("circuit-board", {"tin-plate", 1}) else bobmods.lib.recipe.add_ingredient("circuit-board", {"copper-plate", 1}) end if data.raw.item["gold-plate"] then bobmods.lib.recipe.add_ingredient("superior-circuit-board", {"gold-plate", 1}) bobmods.lib.recipe.add_ingredient("multi-layer-circuit-board", {"gold-plate", 2}) else if data.raw.item["tin-plate"] then bobmods.lib.recipe.add_ingredient("superior-circuit-board", {"tin-plate", 1}) bobmods.lib.recipe.add_ingredient("multi-layer-circuit-board", {"tin-plate", 2}) else bobmods.lib.recipe.add_ingredient("superior-circuit-board", {"copper-plate", 1}) bobmods.lib.recipe.add_ingredient("multi-layer-circuit-board", {"copper-plate", 2}) end end if data.raw.item["solder"] then bobmods.lib.recipe.add_ingredient("electronic-circuit", {"solder", 1}) bobmods.lib.recipe.add_ingredient("advanced-circuit", {"solder", 1}) bobmods.lib.recipe.add_ingredient("processing-unit", {"solder", 2}) bobmods.lib.recipe.add_ingredient("advanced-processing-unit", {"solder", 4}) end