Code: Select all
for key, entity in pairs(data.raw["inserter"]) do
entity.energy_source.drain = nil
end
However i still want to delete/edit this drain. Any idea where I can find it?
Thanks and greetings, AntiElitz
Code: Select all
for key, entity in pairs(data.raw["inserter"]) do
entity.energy_source.drain = nil
end
I want to remove the drain only, not the entire power consumptionaubergine18 wrote:entity.energy_usage ?
Code: Select all
{
type = "recipe",
name = "gun-turret",
enabled = false,
energy_required = 10, <--------------
ingredients =
{
{"iron-gear-wheel", 10},
{"copper-plate", 10},
{"iron-plate", 20}
},
result = "gun-turret",
overload_multiplier = 20
}
entity.energy_source.emissions is a factor for pollution and has nothing to do with energy.aubergine18 wrote:entity.energy_source.emissions ?
I can't see anything else on those protos that would cause energy drain.
BTW, don't some recipes have an energy cost?
Example:
Code: Select all
{ type = "recipe", name = "gun-turret", enabled = false, energy_required = 10, <-------------- ingredients = { {"iron-gear-wheel", 10}, {"copper-plate", 10}, {"iron-plate", 20} }, result = "gun-turret", overload_multiplier = 20 }
Code: Select all
entity.energy_source.drain = nil
Code: Select all
entity.energy_source.drain = 0