---
title: "Drives"
description: "Traction Motor, Traction Battery, Diesel Engine and Steam Engine and Boiler, how to build them into a train and what each of them needs."
canonical_url: "https://wiki.nevercold.eu/en/create-optimized-rails/trains/drives"
---
# 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](https://wiki.nevercold.eu/en/create-optimized-rails/trains/weight-and-power).

![The four blocks, from left: Traction Motor, Traction Battery, Diesel Engine, Steam Engine and Boiler](https://wiki.nevercold.eu/create-optimized-rails/trains/drive-blocks.png)

<table>
<thead>
  <tr>
    <th>
      Block
    </th>
    
    <th>
      What it is
    </th>
    
    <th>
      Needs
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Traction Motor
      </strong>
    </td>
    
    <td>
      Electric drive: strong and fast, ready at once
    </td>
    
    <td>
      a contact wire or a charged battery on the train
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Traction Battery
      </strong>
    </td>
    
    <td>
      Stores power for traction motors; no drive of its own
    </td>
    
    <td>
      charges under the contact wire
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Diesel Engine
      </strong>
    </td>
    
    <td>
      Diesel drive with its own tank: starts by itself and runs up in 3 seconds
    </td>
    
    <td>
      diesel buckets
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Steam Engine and Boiler
      </strong>
    </td>
    
    <td>
      Steam drive: pulls hardest when starting, takes about a minute to raise steam
    </td>
    
    <td>
      water buckets and furnace fuel
    </td>
  </tr>
</tbody>
</table>

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

<tip>

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

</tip>

## 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.

<table>
<thead>
  <tr>
    <th>
      Block
    </th>
    
    <th>
      Takes
    </th>
    
    <th>
      Holds
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Diesel Engine
    </td>
    
    <td>
      a bucket from the tag <code>
        createoptimizedrails:diesel_fuel
      </code>
      
      : diesel and biodiesel from Create Diesel Generators, diesel from TFMG, bioethanol from Create Crafts & Additions; as a stand-in without these mods a <strong>
        Lava Bucket
      </strong>
      
      , which is always accepted
    </td>
    
    <td>
      2,000 l (two buckets)
    </td>
  </tr>
  
  <tr>
    <td>
      Steam Engine and Boiler
    </td>
    
    <td>
      Water Bucket
    </td>
    
    <td>
      16,000 l (16 buckets)
    </td>
  </tr>
  
  <tr>
    <td>
      Steam Engine and Boiler
    </td>
    
    <td>
      any furnace fuel: coal, charcoal, wood, Lava Bucket …
    </td>
    
    <td>
      as much as 20 coal
    </td>
  </tr>
</tbody>
</table>

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:

<table>
<thead>
  <tr>
    <th>
      Block
    </th>
    
    <th>
      Shows
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Traction Motor
    </td>
    
    <td>
      Runs off a contact wire or the train's batteries
    </td>
  </tr>
  
  <tr>
    <td>
      Traction Battery
    </td>
    
    <td>
      Charge … of 111 kWh
    </td>
  </tr>
  
  <tr>
    <td>
      Diesel Engine
    </td>
    
    <td>
      Diesel … of 2000 l, Engine running (… %) or Engine stopped
    </td>
  </tr>
  
  <tr>
    <td>
      Steam Engine and Boiler
    </td>
    
    <td>
      Firebox … %, Water … of 16000 l, Steam pressure … %
    </td>
  </tr>
</tbody>
</table>

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](https://modrinth.com/mod/create-pantographs-and-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.

<note>

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.

</note>

## 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](https://wiki.nevercold.eu/en/create-optimized-rails/trains/weight-and-power#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](https://wiki.nevercold.eu/en/create-optimized-rails/reference/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](https://wiki.nevercold.eu/en/create-optimized-rails/trains/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](https://wiki.nevercold.eu/en/create-optimized-rails/reference/settings). Drive blocks are then only decoration, and every train runs
as in Create (with the [train physics](https://wiki.nevercold.eu/en/create-optimized-rails/trains/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):

<table>
<thead>
  <tr>
    <th>
      Call
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

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


## Sitemap

See the full [sitemap](https://wiki.nevercold.eu/sitemap.md) for all pages.
