How does the drain attribute work?

Place to get help with not working mods / modding interface.
User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2638
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

How does the drain attribute work?

Post by steinio »

Hello,

i added drain to a lamp and am wondering about the behaviour.
The pictured lamps are from Will-o'-the-wisps https://mods.factorio.com/mods/Betep3ak ... -the-wisps.

Code: Select all

        energy_source =
        {
            type = "electric",
            usage_priority = "secondary-input",
            drain = "5kW"
        },,
        energy_usage_per_tick = "800KW",
        electric_buffer_size = "10MW",
Expectation would be 1.6MW power usage switched on and 10kW power usage switched off.
Lamp active
Lamp idle
Greetings steinio
Image

Transport Belt Repair Man

View unread Posts
Post Reply

Return to “Modding help”