Page 1 of 1
Remove/change drain of furnaces and assemblers
Posted: Mon Sep 19, 2016 8:11 pm
by AntiElitz
i can remove the drain of inserters with
Code: Select all
for key, entity in pairs(data.raw["inserter"]) do
entity.energy_source.drain = nil
end
but this does not work with furnaces and assemblers. they seem to have a % of the base energy as drain and don't own this poperty.
However i still want to delete/edit this drain. Any idea where I can find it?
Thanks and greetings, AntiElitz
Re: Remove/change drain of furnaces and assemblers
Posted: Mon Sep 19, 2016 8:13 pm
by aubergine18
entity.energy_usage ?
Re: Remove/change drain of furnaces and assemblers
Posted: Mon Sep 19, 2016 8:16 pm
by AntiElitz
aubergine18 wrote:entity.energy_usage ?
I want to remove the drain only, not the entire power consumption

Re: Remove/change drain of furnaces and assemblers
Posted: Mon Sep 19, 2016 8:25 pm
by aubergine18
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
}
Re: Remove/change drain of furnaces and assemblers
Posted: Mon Sep 19, 2016 8:32 pm
by AntiElitz
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
}
entity.energy_source.emissions is a factor for pollution and has nothing to do with energy.
energy_required is the strange name for the crafting time of the reciept.
entity.energy_source.drain is what i am looking for , but this does not exist for assemblers and furnaces.
Re: Remove/change drain of furnaces and assemblers
Posted: Mon Sep 19, 2016 9:12 pm
by AntiElitz
i actually found a solution...
while
results in a dynamic drain
will disable the drain
Re: Remove/change drain of furnaces and assemblers
Posted: Sat Jan 26, 2019 2:35 am
by antekj123
Can someone help me or just make for me a mod that can set all idle drain to 0?