Battery-Electric Train

by catweax

Electric trains, but UPS-friendly. Adds battery-powered trains, reusable battery packs and charging facilities.

2 days ago
11 days ago
Latest Version:
1.1.2 (2 days ago)
Factorio version:
284 times

Electric trains, but UPS-friendly

Do you want to reduce your dependency on fossil fuels and use solar or nuclear power to run your trains?
Do you think just plopping down an energy distributor that magically transports power to your trains wherever they are is too easy and too unrealistic?
You don’t want to risk slowing down your game for electric trains?
Solution: battery-electric trains.

What’s in the mod?

  • One battery-electric locomotive, equivalent to the vanilla locomotive.
  • Four tiers of battery packs, equivalent to vanilla locomotives powered by coal, solid fuel, rocket fuel and nuclear fuel.
  • Three tiers of stationary chargers: standard speed, 5x speed, 25x speed.
  • Chargers available with standard and low power priority. Low priority is on the same level as accumulators and won’t slow down your factory during a power shortage.
  • Recycling recipes: battery packs can be recycled to get 90% of the used batteries back when you want to move to higher tier battery packs.
  • Cheat mode: freely adjust top speed and acceleration power of battery-electric locomotives. (Increases top speed of all wagons, too.)


  • Discharged battery packs don’t disappear and must be taken out of locomotives to recharge them.
  • Fast refueling: swapping battery packs takes less than a second. A single refueling/recharging station should be able to handle all your trains.
  • Running real trains on batteries is stupid because you need way too many. Expect to be producing a lot of batteries. One Factorio battery holds 4 MJ (based on the Personal battery), which is as much as one piece of coal, so you need 150 batteries for a basic battery pack. They’re reusable forever, though.
  • Mining/deconstructing a battery-electric locomotive with a partially discharged battery pack inside will return a discharged battery pack.
  • Low-priority chargers never take energy from accumulators, so if you rely on solar power, make sure to recharge all battery packs during daytime or use standard-priority chargers.
  • All graphics are based on (old) Factorio graphics, so they don’t look out of place.
  • The battery-electric locomotive sounds less like a combustion engine, but there’s still room for improvement.


  • One battery-electric locomotive is as computationally intensive as one vanilla locomotive.
  • One recharger is as computationally intensive as one electric furnace.
  • Almost no run-time scripting and even that can be turned off completely, if you want.
  • Suitable for bases of any size.

Recommended mods


Feel free to request compatibility with other mods and please report any bugs you notice.