
Modrinth · Minecraft mod
RailOptimization
A simple mod that makes powered/activator rails turn on/off up to 20x faster.
Quick answer
Which RailOptimization release should I use?
RailOptimization 2.0 targets 26.1, 26.1.1, 26.1.2 with NeoForge. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.
Where it goes
Is RailOptimization required on the client, server, or both?
Do not install it on the client. It must be installed on the dedicated server.
This file is marked server-only.
What else does RailOptimization 2.0 need?
2.0. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add RailOptimization without breaking your instance.
Built for RailOptimization 2.0. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 2.0. It targets 26.1, 26.1.1, 26.1.2 with NeoForge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 2.0. It opens that exact file at the source.
About this project
What does RailOptimization add?
Description
RailOptimization is a lightweight mod that makes powered rails and activator rails turn on and off up to 20x faster in complex rail networks.
The best result is that you notice nothing while it is operating, except smoother and faster rail updates. Vanilla behavior and the default power range are preserved unless you explicitly change the range.
Performance
| Benchmark scenario (use v2.0) | Fabric (up to) | NeoForge (up to) |
|---|---|---|
| Straight rail state changes | 9.38x | 16.69x |
| Mixed-slope state changes | 12.09x | 22.93x |
| Repeated unchanged-state updates (indirect power) | 48.69x | 38.30x |
Snapshot:
| Benchmark scenario (use v2.5-snapshot.2) | Fabric (up to) | NeoForge (up to) |
|---|---|---|
| Straight rail state changes | 16.06x | 28.40x |
| Mixed-slope state changes | 21.44x | 38.28x |
| Repeated unchanged-state updates (indirect power) | 52.27x | 40.15x |
Measured in local multi-round benchmarks at the default power range of 8 with updating length 17, comparing optimized and unoptimized rail updates on the same mod loader. Actual gains vary with rail layout, server load, hardware, power range, and other installed mods.
State-change results include both turning rails on and turning them off. The unchanged-state result measures repeated updates without a power-state change; it is not an on/off speedup or a whole-server speedup.
Features
- Fast updates across straight, ascending, descending, and mixed-slope rail networks.
- Greatly reduced cost for repeated updates that leave rail state unchanged.
- Optional power range from 1 to 64, with vanilla's default of 8 unchanged.
- Switch between vanilla and optimized update logic without restarting.
- Native builds for Fabric, Forge, and NeoForge, with no Architectury API dependency.
Install it with the default settings and it works without additional configuration.
Commands
| Command | Purpose |
|---|---|
/railoptimization |
Show the current state and power limit |
/railoptimization on |
Enable the optimized update path |
/railoptimization off |
Use vanilla update logic |
/railoptimization powerLimit <value> |
Set the rail power range from 1 to 64 |
/railoptimization reload |
Reload the configuration file |
Changing settings requires administrator permission. Settings are saved automatically in railoptimization.json and persist across restarts.
Compatibility
- Choose the file for your Minecraft version and mod loader.
- RailOptimization v1.2 and earlier are incompatible with Carpet TIS Addition. RailOptimization v1.3 and later are compatible.
- To compare a contraption with vanilla, use
/railoptimization offand trigger it again. If you find a behavioral difference, please report it with a minimal reproduction.
Acknowledgements
RailOptimization began as a fork of FxMorin's RailOptimization. My sincere thanks go to FxMorin and the original contributors for their work. The current implementation has since been extensively rewritten, but this project would not exist without their original work.
Special thanks also go to JellySquid, 2No2Name, and the other Lithium contributors. RailOptimization's rail-specific batch-write design was developed by studying and drawing on their source code and existing palette and chunk-storage optimizations. When Lithium is installed, RailOptimization uses its optimized palette and bit-storage implementations and integrates with its block-change tracking. Lithium remains optional.
More Information
For source code, issue reports, or any other questions, please visit the RailOptimization GitHub repository.
Project description from Modrinth.
Pick your setup
RailOptimization by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.2
3 loader builds26.1.2
3 loader builds26.1.1
3 loader builds26.1
3 loader builds1.21.11
3 loader builds1.21.10
3 loader builds1.21.9
3 loader builds1.21.8
3 loader builds1.21.7
3 loader builds1.21.6
3 loader builds1.21.5
3 loader buildsShowing the newest 12 of 41 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
RailOptimization versions and loaders
2.5-snapshot.1
railoptimization-2.5-snapshot.1+mc26.1.2-neoforge.jar
14 Oct 2026
2.5-snapshot.1
railoptimization-2.5-snapshot.1+mc26.1.2-fabric.jar
14 Oct 2026
2.0
railoptimization-2.0+mc26.1.2-neoforge.jar
18 Sept 2026
2.0
railoptimization-2.0+mc26.1.2-fabric.jar
18 Sept 2026
2.0
railoptimization-2.0+mc1.21.11-neoforge.jar
18 Sept 2026
2.0
railoptimization-2.0+mc1.21.11-fabric.jar
18 Sept 2026
2.0
railoptimization-2.0+mc1.21.5-neoforge.jar
18 Sept 2026
2.0
railoptimization-2.0+mc1.21.5-fabric.jar
18 Sept 2026
2.0
railoptimization-2.0+mc1.21.2-neoforge.jar
18 Sept 2026
2.0
railoptimization-2.0+mc1.21.2-fabric.jar
18 Sept 2026
2.0
railoptimization-2.0+mc1.21-neoforge.jar
18 Sept 2026
2.0
railoptimization-2.0+mc1.20.5-neoforge.jar
18 Sept 2026
Looking for an older file? The official Modrinth project page is in Resources.