i just figured why this behavior with bob mods happens, bob mods check if certain items are available like steel-bearing
if data.raw.item["steel-bearing"] then
bobmods.lib.recipe.add_ingredient("assembling-machine-4", { "steel-bearing", 5 })
else
bobmods.lib.recipe.add_ingredient("assembling-machine-4", { "iron-gear-wheel", 3 })
end
the add_ingredient function than appends the respective item to the ingredients list but not as an array but a hash, the current function tweaking recipes in EI is only able to handle entries which are entries but hashes.
example of the resulting structure
"assembling-machine-4": {
"type": "recipe",
"name": "assembling-machine-4",
"enabled": false,
"ingredients": [
[
"assembling-machine-3",
1
],
[
"advanced-circuit",
3
],
[
"steel-plate",
9
],
{
"name": "iron-gear-wheel",
"type": "item",
"amount": 8
}
],
"result": "assembling-machine-4"
},
that is why the iron-gear ingredient is not getting replaced by EI itself