Перейти к содержимому

CreateTrainWebAPI 1.1.0 для Minecraft 1.21.1 (NeoForge)

Релиз27 сентября 2026Minecraft 1.21.1NeoForge125 скачиваний на Modrinth

Файлы · 1

createtrainwebapi-neoforge-1.21.1-1.1.0.jarОсновной5,19 МБСкачать
Основной · 5,19 МБ
SHA-17fe3424a0f00977b8f5f045bfb8322ea13cc6917SHA-51279bebae62fbb859a026af6b5f5ac694420e93f037d2608e1eb7ee80d01b72b2e244e057d8f9e96c41dc4453ae8fd5ed57a6c02266fb178fcdf021b385eef3c48
Скачать

Что изменилось

Create Train Web API 1.1.0

Highlights

  • Much more train information: speed, destination, schedule, passengers, owner and more
  • Live signal states, occupied signal blocks and upcoming arrivals per station
  • Train cargo on request
  • Config switches to choose which information the API collects and returns
  • The BlueMap overlay (train.js) now lives in this repository and gained clickable trains, stations and portals

New

API
  • /trains and /trainsLive now include speed, target speed and max speed, derailment, number of passengers, owner name, train icon, Create's map colour index, the network id, navigation (destination, distance, waiting at a signal), schedule (title, current stop, state, paused/completed, wait reason) and the planned route.
  • /network now includes each network with the colour Create assigns it, the network id on nodes, edges and stations, track length and material per edge, signals, the signal block sections of every edge, and pairs of nodes linked through portals.
  • /status and /statusLive (new, updated every second): occupied and reserved signal blocks, signal states, and for each station the train at the platform, the arriving train and the next arrivals. Arrival times come from the same predictions Create's display boards use; Create updates them every 5 seconds.
  • **`/cargo?train=`** (new): items and fluids per carriage, computed only when requested.
  • /features (new): which optional data is enabled (see below).
Config: optional data

A new [data] section turns optional information on or off: owner, trainStatus, passengers, navigation, schedule, route, stationArrivals, signals, portals, cargo. Everything is on by default. Disabled data is not collected at all, which saves work on the server, and appears as null in the answers. Changes apply without a restart.

  • NeoForge / Forge: config/createtrainwebapi-common.toml
  • Fabric: config/createtrainwebapi.toml (existing files without the section keep everything on)
BlueMap overlay
  • Click a train for its speed (blocks/s), destination and distance, signal wait time, schedule, passengers and cargo.
  • Click a station for the train at the platform and the next arrivals with a countdown.
  • Click a portal to jump to the map of the other dimension at the portal's position.
  • New layers: stations & portals, signal lights, occupied signal blocks.
  • Tracks are drawn in the colour Create gives each network.
  • Menu entries are now switches that show their state and are remembered in the browser. By default, track lines and "trains through terrain" are off.
  • Anything disabled in the API's config is hidden automatically.

Changes

  • All data is now read from Create on the server thread and cached (trains every 200 ms, status every second, network every 5 s). Requests never touch the game state directly, which avoids errors from reading Create's data while the server is changing it.
  • Existing JSON fields are unchanged; the new data is added alongside, so existing clients keep working.

Fixes

  • stopped and backwards were always false.
  • Train names came out as literal{…} instead of the plain name.
  • A single carriage with missing data no longer breaks the whole /trains answer.
  • Overlay: while a train passed through a portal, its cars could show the wrong model or position.

Upgrading

The overlay script moved from BluemapCreateEntityAddon to this repository, and the API does not serve it:

  1. Copy train.js into BlueMap's webroot (e.g. bluemap/web/).
  2. Set host at the top of the file to the address of the API as seen from the browser. If BlueMap is served over https, the API must be reachable over https too.
  3. Add "./train.js" to scripts in BlueMap's webapp.conf.

Сайт использует cookie: необходимые — для входа и темы, а также счётчики посещений Яндекс Метрика и LiveInternet — по ним мы видим, как пользуются сайтом. Рекламных cookie у нас нет. Подробнее