Trains

Drives

Traction Motor, Traction Battery, Diesel Engine and Steam Engine and Boiler, how to build them into a train and what each of them needs.

In Create every train runs alike, however long and whatever it carries. With a drive block built in, a train is pulled by that drive instead: by its power over the train's weight, with its own top speed, supply and sound. How fast that is, see Weight and power.

BlockWhat it isNeeds
Traction MotorElectric drive: strong and fast, ready at oncea contact wire or a charged battery on the train
Traction BatteryStores power for traction motors; no drive of its owncharges under the contact wire
Diesel EngineDiesel drive with its own tank: starts by itself and runs up in 3 secondsdiesel buckets
Steam Engine and BoilerSteam drive: pulls hardest when starting, takes about a minute to raise steamwater buckets and furnace fuel

Trains without drive blocks run as before: Create's acceleration and top speed apply to them unchanged.

Hold W over a drive block in game to see its Ponder scene.

Building a drive into a train

The drive blocks are ordinary blocks of a carriage, like seats or casings. Place them before you assemble the train at a Train Station, as with any Create train:

  • Create's bogeys hold the blocks in front of and behind them along the track. A drive block placed there goes with the carriage.
  • Blocks on top of a bogey only come along with Super Glue, as with any block in Create.
  • Its front faces you when you place it; which way it faces makes no difference to the train.

Several drives add up. Two engines pull harder than one, a locomotive at each end works as well as two at the front, and drives of different kinds can share a train. A drive counts as soon as it is anywhere in the train, in any carriage.

Assembling and taking a train apart keeps what the blocks hold: fuel, water, steam pressure and charge travel with the block. Mined with a pickaxe, a drive block drops itself and keeps its contents: placed again, it holds what it held.

Filling and checking

Right-click a drive block with what it takes. That works on a placed block and on an assembled train, even while it is moving. In creative mode the item is not used up. A bucket hands back an empty bucket.

BlockTakesHolds
Diesel Enginea bucket from the tag createoptimizedrails:diesel_fuel: diesel and biodiesel from Create Diesel Generators, diesel from TFMG, bioethanol from Create Crafts & Additions; as a stand-in without these mods a Lava Bucket, which is always accepted2,000 l (two buckets)
Steam Engine and BoilerWater Bucket16,000 l (16 buckets)
Steam Engine and Boilerany furnace fuel: coal, charcoal, wood, Lava Bucket …as much as 20 coal

A bucket or a piece of fuel only goes in while there is room for all of it.

Right-click with an empty hand to see the state above the hotbar. Engineer's Goggles show the same when you look at a placed block:

BlockShows
Traction MotorRuns off a contact wire or the train's batteries
Traction BatteryCharge … of 111 kWh
Diesel EngineDiesel … of 2000 l, Engine running (… %) or Engine stopped
Steam Engine and BoilerFirebox … %, Water … of 16000 l, Steam pressure … %

On a train the figures are the train's current ones. Engines only run, burn and raise steam on an assembled train; a placed block keeps what it holds.

Traction Motor and Traction Battery

A traction motor pulls as soon as it has power, without warming up. Where the power comes from depends on whether Create: Pantographs & Wires is installed:

With Pantographs & Wires, a traction motor needs one of these:

  • A contact wire: a Pantograph of that mod on the train, raised, under a contact wire of a catenary. The wire must run above the pantograph within about 3.6 blocks and within the width of its pan (about 1.25 blocks to either side). The mod checks twice a second. Supports and other wires do not count, only the contact wire itself.
  • A charged Traction Battery on the train. Off the wire, traction motors draw on the train's batteries for the work they do; when they are empty, the motors stop pulling.

Under the wire, every battery on the train charges with 1 MW, also while the train stands: from empty to full (111 kWh) in less than 7 minutes. With batteries, an electric train can run on lines without catenary.

Without Pantographs & Wires, there is a contact wire everywhere: electric trains run anywhere, need no pantograph, and batteries are never drawn on.

The contact wire check depends on the optional mod Create: Pantographs & Wires. Create Optimized Rails reads its pantographs and wires; it adds no catenary of its own.

Diesel Engine

As soon as it has fuel, a diesel engine starts by itself and runs up to full power in 3 seconds. While it has fuel it keeps running, at a standstill too, and burns a little on idle (about half a litre a minute). When the tank runs dry, it stops pulling at once and the engine stops within a second.

Under way it burns fuel by the work it does: one litre does 12 MJ. Pulling away, climbing and running against resistance cost fuel; standing costs only the idle. Bringing a 135 t train (a locomotive with three coaches, see the examples) up to 36 blocks per second takes about 7 litres, so a bucket lasts a long time.

Steam Engine and Boiler

A steam engine needs water and a fire. With both in, the fire burns and pressure rises: from cold to full pressure in 60 seconds. It pulls from 20 % pressure on (after about 12 seconds), at first weakly: its pull grows with the pressure.

  • The fire burns as long as there is fuel and water, whether the train runs or stands: at a standstill one coal lasts about half an hour (the fire is banked), a full firebox about ten hours.
  • Under way, every bit of work costs fuel and water: one burn tick of fuel (a coal has 1,600) and one litre of water each do 60 kJ. Water tends to run out before fuel: one bucket brings a 135 t train up to 30 blocks per second about once.
  • Without fuel or water, pressure falls slowly, from full to nothing in about 2 minutes. Below 20 %, or with an empty boiler, the engine does not pull.

Trains without players

On a server many trains run on their schedule only, with no player to refuel them. With driverlessTrainsUseFuel=false in the settings, trains with no player aboard use no fuel, water or battery charge. They still need what they hold: an empty diesel engine does not start either way.

When a drive cannot pull

A train whose drives cannot pull (no wire and empty batteries, no diesel, too little steam) does not pull away. A train on a schedule waits until a drive is ready again; one that is already moving coasts and slows down, as described under Train physics. Braking always works.

Other mods can hold a drive back too, for example until a key switch is turned. Without such a mod, drives start by themselves.

Sounds

Drives on a moving train can be heard: traction motors hum higher the faster they run, a diesel engine starts with a starter and runs faster under load, a steam engine puffs in step with its wheels and hisses at a standstill. The sounds are not taken from other games or mods, and they have subtitles.

Switching it off

Set trainTraction=false in config/createoptimizedrails.properties, see Settings. Drive blocks are then only decoration, and every train runs as in Create (with the train physics, if that is on).

For mod developers

Other mods reach the drives through eu.nevercold.cor.api.Traction (API_VERSION 1, server side only):

CallWhat it does
Traction.of(train)A TrainInfo with the train's mass, whether it is under the wire, battery charge and capacity and one DriveInfo per drive (kind, readiness, pulling, fuel and water with their capacities); null for trains without drives
Traction.canPull(train)Whether the train can pull now; true for trains without drives
Traction.addStartCondition(condition)A StartCondition every drive must meet to run, asked about once a second per train and kind (ELECTRIC, DIESEL, STEAM)
Traction.addListener(listener)A Listener told when a drive starts or stops pulling