TransitManager 2.0.0 beta
This is a server-side addon for Minecraft Transit Railway 4.0 Mod, adding lower-level commands that allows you to have better control of traffic in MTR.
Available for Minecraft Fabric 1.20.4, port for older versions is planned in the future.
Commands
| Command | Description | Permission Level |
|---|---|---|
| /mtr generatePath /mtr clearTrains |
Refresh a depot's path, or clear all trains of a depot | OP Level 2 |
| /mtrpath status /mtrpath abort |
Check, refresh and abort MTR Path generations. - status: Show how many depots are currently regenerating path - abort: Terminate the depot's path generation. (If it is still generating) |
OP Level 2 |
| /platform | Give you the information of the nearest platform, including dwell, transport type and route that goes via that platform. |
OP Level 2 |
| /train | Provide the information of the nearest train, such as the train type, it's depot and siding, destination, dwell and more. | OP Level 2 |
| /train deploy |
This will find the nearest train to you, and manually deploy the train if it is parked inside a depot, regardless of timetable and deploy order. |
OP Level 2 |
| /train clear | This clears all trains from the siding of the nearest train. If that siding has multiple trains, all of them will be cleared. | OP Level 2 |
| /train skipDwell | This skips the dwell time for the nearest train. If the train is boarding, it will immediately depart and the door will close. Otherwise, it will skip the dwell time in the next stop like a Turn Back Rail. |
OP Level 2 |
| /warpsta |
Warp to the specified station's midpoint. You'll be teleported to the nearest non-suffocatable Y level of the midpoint of the station area. | OP Level 2 |
| /warpdepot |
Warp to the specified depot's midpoint. You'll be teleported to the nearest non-suffocatable Y level of the midpoint of the station area. | OP Level 2 |
Config
The config file are automatically generated in config/mtrate/server.toml once the server starts up.
| Config Key | Default Value | Description |
|---|---|---|
| shearPSDOpLevel | 0 | This defines the OP Level required to shear the top part of the Platform Screen Doors in the MTR Mod. Server owners may want to bump this up to OP Level 1/2 to prevent non-builders from modifying Platform Screen Doors. |
Bugs/Suggestion
If you have any questions or suggestions, feel free to open an GitHub issue here :)
License
This project is licensed under the MIT License.
How to Install MTR: TransitManager (Mod)
MTR: TransitManager by AmberFrost is verified for Fabric across Minecraft versions 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2 (latest release: 2.0.0-beta.2+mc1.20.4, file size: 319 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded MTR: TransitManager file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version### Change: More verbose train information
When using the /train command:
- Rail Progress for train is now shown
- Distance to Stop is now shown
- Players blocking the train doors are now also listed separately
- Added player count for "Riding players"
### New: More dwell control
/train skipDwellhas been renamed to/train dwell skip- Added
/train dwell reset(Reset elapsed dwell time) - Added
/train dwell set <Elapsed time in milliseconds>
### New: Transport Simulation Core commands
- Added: /tsc command
- Provide overview for TSC (MTR 4's backend)
- /tsc ping to measure response time from TSC (Max ~50ms is expected for normally)
- /tsc freeze to pause/unpause MTR simulation in the current dimension (Debug only)
### New: /train jump
The /train jump command from MTR 3 transit manager is now brought back.
You may now also do
/train jump distance <distance meter> to move the train forward/backward in a fine-grained manner.- For MTR 4.0.4 and above only!**
This is the first beta release of TransitManager for MTR 4.
Some features are not yet fully ported over, please see the updated README for details.
Additional note-worthy changes as follows:
/train deploystill allows adhoc train deployment. However it now requires you to specify a departure index to serve as the timetable reference.- Added a new patch that manually remove players from TSC when they gets disconnected from server. This hopefully solves issues like ghost players, or trains getting stuck due to someone disconnecting on-board while blocking the train doors.
/warpstn and /warpdepot not working on 1.19.4.This bugfix is only required for Minecraft 1.19.4, other version are not affected.
- Added
/mtr generatePath <Depot Name>, which refreshes the path of a depot (Same as/mtrpath refresh, but is the preferred way to attempt retaining compatibility with MTR 4) - Added
/mtr clearTrains <Depot Name>, which clears all the train from the specified depot. - A list of effects applied to the train (e.g. Halt Dwell) now shows up in the
/traincommand in the "Effect applied:" entry - Now also supports 1.17.1 and 1.18.2, alongside 1.19.2 - 1.19.4
- Added
/mtr generatePath <Depot Name>, which refreshes the path of a depot (Same as/mtrpath refresh, but is the preferred way to attempt retaining compatibility with MTR 4) - Added
/mtr clearTrains <Depot Name>, which clears all the train from the specified depot. - A list of effects applied to the train (e.g. Halt Dwell) now shows up in the
/traincommand in the "Effect applied:" entry - Now also supports 1.17.1 and 1.18.2, alongside 1.19.2 - 1.19.4
- Added
/mtr generatePath <Depot Name>, which refreshes the path of a depot (Same as/mtrpath refresh, but is the preferred way to attempt retaining compatibility with MTR 4) - Added
/mtr clearTrains <Depot Name>, which clears all the train from the specified depot. - A list of effects applied to the train (e.g. Halt Dwell) now shows up in the
/traincommand in the "Effect applied:" entry - Now also supports 1.17.1 and 1.18.2, alongside 1.19.2 - 1.19.4
- Added
/mtr generatePath <Depot Name>, which refreshes the path of a depot (Same as/mtrpath refresh, but is the preferred way to attempt retaining compatibility with MTR 4) - Added
/mtr clearTrains <Depot Name>, which clears all the train from the specified depot. - A list of effects applied to the train (e.g. Halt Dwell) now shows up in the
/traincommand in the "Effect applied:" entry - Now also supports 1.17.1 and 1.18.2, alongside 1.19.2 - 1.19.4
- Added
/mtr generatePath <Depot Name>, which refreshes the path of a depot (Same as/mtrpath refresh, but is the preferred way to attempt retaining compatibility with MTR 4) - Added
/mtr clearTrains <Depot Name>, which clears all the train from the specified depot. - A list of effects applied to the train (e.g. Halt Dwell) now shows up in the
/traincommand in the "Effect applied:" entry - Now also supports 1.17.1 and 1.18.2, alongside 1.19.2 - 1.19.4
forceKillMTRPathThreadhas been removed as TransitManager will no longer attempt to force kill path generation thread automatically. However the/mtrpath abortcommands will now always forcibly kill the path generation thread.shearPSDOpLevelis added, which allows server owner to define the op level required to use the shear on the MTR Platform Screen Doors.
## Commands
/whattrainhas been removed, please use/trainfrom now on. (They do the same thing)/whatplatformis changed to/platform/train collision disable/enableis changed to/train toggleCollision- Time unit will now auto adapt (e.g. **72s -> 1m 12s**) when using TransitManager commands.
/mtrpath statusnow also returns the time elapsed since the path generation was started./warpstnand/warpdepotwill now find the nearest non-suffoctable area available instead of getting you stuck in the middle of the terrain- Add
/train halt dwellwhich pauses the dwell timer entirely (So train never departs) (Re-run to disable) - Add
/train halt speedwhich literally stops the train (Re-run to disable) /train jumpnow always works even when the train is stopped in a platform or there's a train in-front, this is previously not the case/train jumpnow works more reliably
For more detail, please check the updated README.md or the mod description.
forceKillMTRPathThreadhas been removed as TransitManager will no longer attempt to force kill path generation thread automatically. However the/mtrpath abortcommands will now always forcibly kill the path generation thread.shearPSDOpLevelis added, which allows server owner to define the op level required to use the shear on the MTR Platform Screen Doors.
## Commands
/whattrainhas been removed, please use/trainfrom now on. (They do the same thing)/whatplatformis changed to/platform/train collision disable/enableis changed to/train toggleCollision- Time unit will now auto adapt (e.g. **72s -> 1m 12s**) when using TransitManager commands.
/mtrpath statusnow also returns the time elapsed since the path generation was started./warpstnand/warpdepotwill now find the nearest non-suffoctable area available instead of getting you stuck in the middle of the terrain- Add
/train halt dwellwhich pauses the dwell timer entirely (So train never departs) (Re-run to disable) - Add
/train halt speedwhich literally stops the train (Re-run to disable) /train jumpnow always works even when the train is stopped in a platform or there's a train in-front, this is previously not the case/train jumpnow works more reliably
For more detail, please check the updated README.md or the mod description.
forceKillMTRPathThreadhas been removed as TransitManager will no longer attempt to force kill path generation thread automatically. However the/mtrpath abortcommands will now always forcibly kill the path generation thread.shearPSDOpLevelis added, which allows server owner to define the op level required to use the shear on the MTR Platform Screen Doors.
## Commands
/whattrainhas been removed, please use/trainfrom now on. (They do the same thing)/whatplatformis changed to/platform/train collision disable/enableis changed to/train toggleCollision- Time unit will now auto adapt (e.g. **72s -> 1m 12s**) when using TransitManager commands.
/mtrpath statusnow also returns the time elapsed since the path generation was started./warpstnand/warpdepotwill now find the nearest non-suffoctable area available instead of getting you stuck in the middle of the terrain- Add
/train halt dwellwhich pauses the dwell timer entirely (So train never departs) (Re-run to disable) - Add
/train halt speedwhich literally stops the train (Re-run to disable) /train jumpnow always works even when the train is stopped in a platform or there's a train in-front, this is previously not the case/train jumpnow works more reliably
For more detail, please check the updated README.md or the mod description.
- TransitManager now supports 1.19.2 - 1.19.4
- All command that manipulates the nearest train has been moved to the
/trainsubcommand, changes as follows: /deployTrain->/train deploy/trainCollision->/train collision
/manualModehas been removed as it does not work on multiplayer servers.- Added
/warpdepot, this works the same way as/warpstnexcept it warps you to a depot. - Added
/train board, this allows you to get onboard the nearest train even without a driver key (And on trains that are auto) - Added
/train clear, this clears the siding of the nearest train. - Added
/train ejectAllPassengers, this ejects all passengers from the nearest train - Added
/train jump, this allows you to teleport the nearest train to to the track infront/behind/next platform/siding - Added
/train skipDwell, this skips the dwell time of the nearest train. - Added
/trainas an alias of/whattrain /whattrainnow also display the train destinated station/platform and remaining dwell time (If train is stopped)- In
/whattrain, siding and depot has been combined into 1 field, you may also now click on the field to teleport to the siding. - In the "Train running via this route" in /whatplatform, it now also indicates if a route is hidden.
For more detail, you should check the updated README or mod description.
- TransitManager now supports 1.19.2 - 1.19.4
- All command that manipulates the nearest train has been moved to the
/trainsubcommand, changes as follows: /deployTrain->/train deploy/trainCollision->/train collision
/manualModehas been removed as it does not work on multiplayer servers.- Added
/warpdepot, this works the same way as/warpstnexcept it warps you to a depot. - Added
/train board, this allows you to get onboard the nearest train even without a driver key (And on trains that are auto) - Added
/train clear, this clears the siding of the nearest train. - Added
/train ejectAllPassengers, this ejects all passengers from the nearest train - Added
/train jump, this allows you to teleport the nearest train to to the track infront/behind/next platform/siding - Added
/train skipDwell, this skips the dwell time of the nearest train. - Added
/trainas an alias of/whattrain /whattrainnow also display the train destinated station/platform and remaining dwell time (If train is stopped)- In
/whattrain, siding and depot has been combined into 1 field, you may also now click on the field to teleport to the siding. - In the "Train running via this route" in /whatplatform, it now also indicates if a route is hidden.
For more detail, you should check the updated README or mod description.
- TransitManager now supports 1.19.2 - 1.19.4
- All command that manipulates the nearest train has been moved to the
/trainsubcommand, changes as follows: /deployTrain->/train deploy/trainCollision->/train collision
/manualModehas been removed as it does not work on multiplayer servers.- Added
/warpdepot, this works the same way as/warpstnexcept it warps you to a depot. - Added
/train board, this allows you to get onboard the nearest train even without a driver key (And on trains that are auto) - Added
/train clear, this clears the siding of the nearest train. - Added
/train ejectAllPassengers, this ejects all passengers from the nearest train - Added
/train jump, this allows you to teleport the nearest train to to the track infront/behind/next platform/siding - Added
/train skipDwell, this skips the dwell time of the nearest train. - Added
/trainas an alias of/whattrain /whattrainnow also display the train destinated station/platform and remaining dwell time (If train is stopped)- In
/whattrain, siding and depot has been combined into 1 field, you may also now click on the field to teleport to the siding. - In the "Train running via this route" in /whatplatform, it now also indicates if a route is hidden.
For more detail, you should check the updated README or mod description.