Live web map and Dynmap markers for Create & Steam 'n' Rails railways
Features • Web map • Installation • Configuration • Commands • Troubleshooting • Version history
The built-in live web map — every track, station and train of the server in one browser tab.
|
|
|
|
Open http://<server-ip>:25850/ in any browser (or type /railmap in game). No extra mods, no Dynmap needed.
Left: a train on a Steam 'n' Rails monorail. Right: a narrow gauge tram line. Dashed lines are phantom (invisible) tracks.
Click a station: trains standing there and trains heading to it, with distance and speed. Click a train to follow it.
| On the map | Meaning |
|---|---|
| ⚪ Grey line | Standard Create track |
| 🟢 Green line | Narrow gauge (Steam 'n' Rails) |
| 🟡 Yellow line | Wide gauge (Steam 'n' Rails) |
| 🟣 Purple line | Monorail (Steam 'n' Rails) |
| ┅ Dashed line | Phantom track (invisible in game) |
| 🟠 / 🔵 / 🔴 Train | Moving / stopped / derailed |
| ⭕ Purple ring | Portal to another dimension — click to jump there |
In the side panel: switch dimensions, toggle layers and labels, search trains and stations, click a train to follow it. Click a station to see which trains are there and which are on their way. The page address keeps the current view, so a link can be shared.
Tip
Visitors can switch the website language with ?lang=en or ?lang=ru at the end of the address, e.g. http://example.com:25850/?lang=ru.
⚡ How it stays light on the server
| Step | Where it runs | How often |
|---|---|---|
| Copy train positions (2 points per carriage) | Main thread | Every 1 s (configurable) |
| Check whether tracks/stations changed | Main thread | Every 10 s |
| Rebuild track geometry | Main thread | Only on change (at least every 5 min) |
| Build JSON, serve the website | Separate threads | — |
| Send updates to browsers | Server-Sent Events | Only what changed |
All reflection lookups are cached, so even on hybrid servers such as Youer the per-update cost stays tiny. Between updates the browser animates trains on its own, so 1–2 second updates still look smooth.
🌐 Running behind nginx / a domain
The map uses Server-Sent Events, which must not be buffered:
location /trains/ {
proxy_pass http://127.0.0.1:25850/;
proxy_buffering off;
proxy_read_timeout 1h;
}Then set web-map.public-url: "https://example.com/trains/" so /railmap shows the right link.
🎨 Custom website files
Files placed in plugins/Create-Railways-Dynmap-Bridge/web/ replace the built-in ones with the same name — for example index.html, assets/app.css or assets/app.js. Delete them to go back to the built-in look.
| Component | Version / note |
|---|---|
| Minecraft | 1.21.1 |
| Server | Hybrid Bukkit + mods server (Youer, Mohist, Arclight, Magma…) |
| Java | 21 or newer, with the standard jdk.httpserver module (any normal JDK/JRE) |
| Create | 6.0.x — required |
| Steam 'n' Rails | Optional — extra track types are shown automatically |
| Dynmap | Optional — only needed for the Dynmap markers |
- Download
Create-Railways-Dynmap-Bridge-1.0.0.8.jarfrom the Releases page. - Install — put the jar into the server's
pluginsfolder. Remove older versions of the plugin first. - Open the port — allow TCP port 25850 in your firewall. On a hosting panel (Pterodactyl, etc.) add an extra port allocation and use that number as
web-map.port. - Start the server. The plugin creates
plugins/Create-Railways-Dynmap-Bridge/withconfig.ymland the blacklist files. The console should show:Without Dynmap you will see[Create-Railways-Dynmap-Bridge] Create Railways - Dynmap Bridge 1.0.0.8 enabled; Dynmap stations: every 60s, Dynmap trains: every 5s. [Create-Railways-Dynmap-Bridge] Web map started on port 25850: http://<server-ip>:25850/ (trains every 1000 ms).Dynmap is not installed — Dynmap markers are offinstead — that is fine. - Open the map —
http://<server-ip>:25850/in a browser, or type/railmapin game. - Adjust
config.yml(language, port, title, update intervals…) and restart the server.
Note
Updating from an older version? The new settings are appended to your existing config.yml automatically, with comments. Nothing else in the file is changed.
🔨 Building from source
./gradlew clean build # Windows: .\gradlew.bat clean buildThe jar appears in build/libs/. Any JDK 21 or newer works; the bytecode targets Java 21.
All settings live in plugins/Create-Railways-Dynmap-Bridge/config.yml.
# "en" (English) or "ru" (Russian) — website and command messages
language: "en"web-map:
enabled: true
bind-address: "0.0.0.0"
port: 25850
public-url: "" # link shown by /railmap
title: "" # empty = default title in the selected language
train-update-interval-seconds: 1 # trains are animated between updates
network-check-interval-seconds: 10
network-refresh-seconds: 300
max-viewers: 50
show-station-labels: true
default-dimension: "minecraft:overworld"
dynmap-url: "" # optional "Open Dynmap" link on the website
dimensions: {} # custom / modded dimension namesAll web map options explained
| Option | Default | Description |
|---|---|---|
enabled |
true |
Turns the web map on or off |
bind-address |
0.0.0.0 |
Network address to listen on (0.0.0.0 = all) |
port |
25850 |
Website port |
public-url |
"" |
Link shown by /railmap; empty = built from the address the player joined with |
title |
"" |
Website title; empty = default title in the selected language |
train-update-interval-seconds |
1 |
How often train positions are sent (minimum 0.25) |
network-check-interval-seconds |
10 |
How often tracks and stations are checked for changes |
network-refresh-seconds |
300 |
Track geometry is rebuilt at least this often |
max-viewers |
50 |
Maximum simultaneous browser tabs |
show-station-labels |
true |
Station names visible by default |
default-dimension |
minecraft:overworld |
Dimension opened first |
dynmap-url |
"" |
Adds an "Open Dynmap" link to the website |
dimensions |
{} |
Custom names, e.g. "twilightforest:twilight_forest": "Twilight Forest" |
dynmap-stations: true # stations on Dynmap
dynmap-trains: true # trains on Dynmap
station-icon: "bank"
train-icon: "bricks"
train-update-interval-seconds: 5
station-update-interval-seconds: 60If Dynmap is not installed, the markers are switched off automatically and everything else keeps working.
| File | Hides |
|---|---|
blacklist-stations.yml |
Stations — on Dynmap and on the web map |
blacklist-trains.yml |
Trains — on Dynmap and on the web map |
trains:
- "Service train"
- "bus:Depot"Names are matched exactly (case-insensitive). Changes are picked up automatically, no restart needed.
Create dimensions are matched to server worlds automatically and saved under worlds:. If a dimension lands on the wrong world, set it manually, e.g. minecraft/overworld: survival.
stations.txt and trains.txt in the plugin folder list all station and train names. They are rewritten every export-interval-seconds (default 3600 = 1 hour).
Show the complete file with comments
# Create Railways - Dynmap Bridge 1.0.0.8
# Choose icon IDs from the list below. Changes take effect after restarting the server.
# ==== Language ====
# Language of the web map and of the plugin messages: "en" (English) or "ru" (Russian).
language: "en"
# Station icon
station-icon: "bank"
# Train icon
train-icon: "bricks"
# How often train markers are updated on Dynmap, in seconds (default: 5).
# Lower values = more up-to-date map, but more work for the server.
train-update-interval-seconds: 5
# How often station markers are updated on Dynmap, in seconds (default: 60).
# Stations rarely move, so this can stay high.
station-update-interval-seconds: 60
# Export interval in seconds for stations.txt and trains.txt (default: 3600 = 1 hour)
export-interval-seconds: 3600
# Available built-in Dynmap icons
# anchor, bank, basket, bed, beer, bighouse, blueflag, bomb, bookshelf, bricks,
# bronzemedal, bronzestar, building, cake, camera, cart, caution, chest, church,
# coins, comment, compass, construction, cross, cup, cutlery, default, diamond,
# dog, door, down, drink, exclamation, factory, fire, flower, gear, goldmedal,
# goldstar, greenflag, hammer, heart, house, key, king, left, lightbulb, lighthouse,
# lock, minecart, offlineuser, orangeflag, pin, pinkflag, pirateflag, pointdown,
# pointleft, pointright, pointup, portal, purpleflag, queen, redflag, right,
# ruby, scales, shield, sign, silvermedal, silverstar, skull, star, sun, temple,
# theater, tornado, tower, tree, truck, up, walk, warning, world, wrench
# ==== Dynmap markers ====
# Show Create stations on the Dynmap map (default: true).
dynmap-stations: true
# Show Create trains on the Dynmap map (default: true).
# If you use the live web map below, you can set this to false to save a bit of work.
dynmap-trains: true
# ==== Live web map ====
# A separate lightweight website with the track network, stations and moving trains
# (like Create Track Map / MTR). Open http://<server-ip>:<port>/ in a browser.
# The server only collects train positions; the website itself runs in separate threads.
web-map:
# Turn the web map on/off (default: true).
enabled: true
# Network address and port of the web map. 0.0.0.0 = all addresses.
# Remember to open this port in your firewall / hosting panel.
bind-address: "0.0.0.0"
port: 25850
# Link shown by /railmap. Leave empty to build it automatically from the address
# the player used to join (e.g. play.example.com) and the port above.
# Example: "https://map.example.com/trains/"
public-url: ""
# Website title. Leave empty for the default title in the selected language.
title: ""
# How often train positions are sent to the website, in seconds (default: 1, minimum 0.25).
# Trains move smoothly between updates, so 1-2 seconds looks fine.
train-update-interval-seconds: 1
# How often the server checks whether tracks or stations changed, in seconds (default: 10).
network-check-interval-seconds: 10
# Track geometry is rebuilt when the network changes, and in any case every N seconds (default: 300).
network-refresh-seconds: 300
# Maximum number of browser tabs watching the map at the same time (default: 50).
max-viewers: 50
# Show station names on the map by default.
show-station-labels: true
# Dimension opened first.
default-dimension: "minecraft:overworld"
# Optional link to your Dynmap shown on the website (empty = hidden). Example: "http://example.com:8123/"
dynmap-url: ""
# Custom names of dimensions on the website. Vanilla dimensions are already named
# in the selected language; add modded dimensions or overrides here, for example:
# "minecraft:overworld": "Main world"
# "twilightforest:twilight_forest": "Twilight Forest"
dimensions: {}
# ==== Worlds ====
# Mappings are added automatically when the bridge detects Create dimensions.
# Usually, this section does not need to be filled out manually.
# If auto-detection picks the wrong world, you can set an override manually.
# Example: minecraft/overworld: survival
worlds:Important
Changes in config.yml take effect after a server restart. Blacklist files are re-read automatically.
| Command | Permission | Default | Description |
|---|---|---|---|
/railmap (/trainmap) |
create.railmap |
everyone | Shows a clickable link to the live web map (admins also see how many people are watching) |
/getstations |
create.stations.admin |
op | Lists all Create stations from stations.txt (count + names) |
/gettrains |
create.stations.admin |
op | Lists all Create trains from trains.txt (count + names) |
How /railmap builds the link:
web-map.public-url, if it is set;- otherwise the address the player used to join — e.g. a player who joined
play.example.comgetshttp://play.example.com:25850/; - otherwise
server-ipfromserver.properties.
In game the link is clickable: click it and the map opens in the browser. In the console it is printed as plain text.
Note
/getstations and /gettrains read the exported files, which are refreshed every export-interval-seconds (1 hour by default).
The web map does not open
- Check the console for
Web map started on port …. If you seeWeb map could not start … Is the port already in use?, choose anotherweb-map.port. - Make sure the port is open in the firewall / hosting panel and that you use the server's public IP, not
localhost(unless the browser runs on the server itself). - Check that
web-map.enabledistrue.
Tracks or stations are missing
- Select the right dimension in the side panel.
- New tracks appear within
network-check-interval-seconds(10 s by default). - Check the blacklists — blacklisted stations and trains are hidden on the web map too.
- Look for console lines starting with
Web map:— they name the part of Create that could not be read.
Trains do not move / update only on page reload
- Behind nginx or another proxy, disable buffering for the map (
proxy_buffering off;). Cloudflare and similar CDNs may also buffer Server-Sent Events — use a plain DNS record for the map. - The status dot in the side panel shows the connection: green = online, red = reconnecting.
Dynmap markers do not appear
- Dynmap must be installed as a server plugin. Without it the plugin logs
Dynmap is not installed — Dynmap markers are off. - Check
dynmap-stations/dynmap-trainsinconfig.yml. - After
/dynmap reloadthe markers are recreated automatically within one update.
The website language did not change
Restart the server after changing language, then reload the page with Ctrl + F5. A single visitor can also use ?lang=en / ?lang=ru.
- Clickable stations: fixed clicks; the station window shows trains at the station and trains heading there (distance, speed), updates live, click a train to follow it.
- Train list per dimension with a counter of trains in other dimensions.
- Legend entry for invisible (phantom) tracks.
- Readable names for modded / Multiverse dimensions (
minecraft:old→ Old). - Portals jump to their exit in the other dimension.
- Dark scrollbars; wider station window without sideways scrolling.
- Website updates load immediately after a plugin update (no stale browser cache).
- Live web map built into the plugin: tracks with curves, Steam 'n' Rails gauges, portals, stations and smoothly moving trains; train list with search and "follow".
- Dynmap is optional — without it the web map and commands keep working.
dynmap-stations/dynmap-trainsswitches (both on by default).- English / Russian localization of the website and messages (
language). /railmapcommand with the link to the map.- Existing
config.ymlfiles get the new settings appended automatically.
Older versions
- Fixed once-per-second server lag spikes: the marker scan no longer repeats reflection lookups every second (each lookup is very slow on Youer). Lookups are cached, Bukkit calls are direct and blacklist files are checked once per update.
- Separate update intervals for trains (
train-update-interval-seconds, 5 s) and stations (station-update-interval-seconds, 60 s). - Markers are only updated when something changed.
- Removed trains and stations now disappear from the map (stale-marker cleanup never ran before).
- NeoForge 1.21.1 (Build 265) Compatibility Fix: Fixed the startup crash caused by an
IllegalArgumentException/argument type mismatch. Completely removed brittle Java reflection for the task scheduler and replaced it with direct, safeBukkitSchedulercalls, ensuring stable operation on NeoForge 21.1.265 and earlier versions.
- Configurable File Export Interval: Added
export-interval-seconds(default: 3600s) to control how oftenstations.txtandtrains.txtwrite to disk. - Performance Optimization: Separated fast live Dynmap marker scans (1s) from background file export timers to reduce disk I/O.
- Comment Preservation: Switched to standard default configuration saving (
saveDefaultConfig()) so all helpful comments and icon listings remain intact inconfig.yml.
- Train Export & Command: Added
trains.txtauto-export and the/gettrainsadministrative command. - Station Export & Command: Auto-exports
stations.txtand adds the/getstationscommand. - Improved Reliability: Enhanced world detection and background scan routines.
Copyright © 2026 Igrobar. All rights reserved — see LICENSE.
You may use the plugin for free on any server, including public and commercial ones. Re-uploading, selling or publishing modified versions requires the author's permission.
The web map uses Leaflet (BSD-2-Clause, see web/assets/vendor/LEAFLET-LICENSE.txt). The idea of a live map is inspired by Create Track Map (MIT); the web map code is written from scratch for this plugin.