SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Source-checkedVehicles & ships

Automatic Train Refueler

by hgschmie · for Factorio

Manages automatic train refueling.

3.2KDownloads
4 mo agoLast updated
MITLicense
2.1Latest game version

About Automatic Train Refueler

From Factorio Mod Portal

Manages automatic train refueling.

Manages automatic refueling of trains by sending them to a refuel stop when they are low on fuel.

Refueling is global! Using this mod means that all trains will be evaluated by the refueler. If you are using train groups, ensure that the 'Support for Train Groups' option is active (it is by default).

Trains only check their fuel level when they leave a stop. Make sure that they have enough fuel left to reach the refueling stop from any stop they leave.

When using this mod with automatic train schedulers, it is possible that those override the train schedule and a train needs to be scheduled to go to the fuel stop multiple times.

With LTN, this can happen if 'delivery ends at requester' is active and the mod schedules a refuel operation between the requester and the depot. In this case, the train will be refueling when it leaves the depot.

Starting with Release 1.2.0, the refueler will not modify existing train schedule interrupts.

Train Group support

If Train group support is enabled and a train is in a train group, the refueler behaves different:

  • It looks for a train group specific refuel stop first. This is designated by using the Refuel stop name (see below) + the train group name. E.g. if the Refuel stop name is 'Refuel Station' and the train group name is 'ore delivery', then the refueler will first look for 'Refuel Station ore delivery' before looking for the more generic 'Refuel Station' name. If a stop with either name is found, it will be used for refueling.
  • When the train is sent for refueling, it is temporarily removed from the train group. After refueling, it is re-added again. The train group will be temporarily one train short. As all trains in the train group have the same schedule, this can not be avoided.

If a train is the last train in a train group, the train group temporarily disappears. It will be re-added when the train leaves the refuel station.

Support trains that do not need refueling

If a mod adds a locomotive type that does not need refueling, it can register these with the mod using a remote interface. This interface is compatible to the Automatic Train Fuel Stop mod.

If you are a mod author and want to exclude your locomotives from refueling, make a remote call like this for the name of each locomotive that you add:

if remote.interfaces['FuelTrainStop'] then
    remote.call("FuelTrainStop", "exclude_from_fuel_schedule", '<<your-locomotive-name>>')
end

By default, the mod automatically ignores the Electric Locomotives from the ElectricTrain mod.

Mod settings

Refuel Stop Name (auto\_train\_refuel-stop-name) - per Map, string, default is 'Refuel Stop'

Sets the name of the global refuel stop. Changing the name during the game will reset the schedule of any train that was going to the stop.

Minimum Fuel (in MJ) (auto\_train\_refuel-min-fuel-value) - per Map, integer, default is '360'

Sets the threshold at which a train is sent to the refueling stop. Setting this too low risks a train to run out of fuel before it can reach the refueling stop.

The default value of 360 MJ is

  • \~ 180 pieces of wood
  • 90 pieces of coal
  • 30 pieces of solid fuel
  • 3.5 pieces of rocket fuel
  • \~1/4 of a piece of nuclear fuel

Log Refuel Schedule (auto\_train\_refuel-log-schedule) - per Map, boolean, default is 'false'

If this setting is activated, log any scheduling to the refuel stop to the game console.

Support for Train Groups (auto\_train\_refuel-train-group) - Startup, boolean, default is 'true'

Enable support for trains in train groups. If this setting is not active, trains will be permanently removed from their train group when they are sent for refueling.

***

Legal stuff

This mod is (C) 2025-2026 Henning Schmiedehausen (@hgschmie), licensed under the MIT license.

It is the spiritual successor to Train Refuel stop which was never ported to Factorio 2.0. The original code was written by @stever1388 and put into public domain. Most of the code has been rewritten for Factorio 2.0.

Highlights

From source data

Game versions

Built for Factorio 2.1.

Footprint

Rated a light load on a server.

License

Published under MIT.

Automatic Train Refueler on Nxeon

From our catalogue
One-click install
Supported on Nxeon Factorio servers. We download it from Factorio Mod Portal, place it, and restart the server.
Server side
Required on the server
Server load
light
Smallest plan we suggest
Factorio — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
2.1.1, released 2026-08-08

Run Automatic Train Refueler on a Factorio server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Factorio Mod Portal as “Mods”

Vehicles & ships

Cars, boats, aircraft, ships and other things to drive or fly.

Runs on your server

From source side support

Factorio Mod Portal lists Automatic Train Refueler as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Compatibility

Game
Factorio
Runs on
Serverrequired on the server
Game versions
2.1

Verified at the source

  • ✓Factorio Mod PortalOfficial listing, checked 2026-10-08Open ↗
  • ✓Authorhgschmie, as published on Factorio Mod Portal
  • ✓LicenseMITFree

Automatic Train Refueler, answered

Generated from the mod’s own source data.

Do my players need to install Automatic Train Refueler?

Factorio Mod Portal lists Automatic Train Refueler as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Is it free?

Yes. Automatic Train Refueler is free to download from Factorio Mod Portal. Its license is MIT.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Automatic Train Refueler on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Automatic Train Refueler in one click.