Skip to content

DistrictOfJoban/TransitManager

Repository files navigation

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 to older versions are 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
/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 dwell reset This resets the dwell time back to 0.
Useful for extending the dwell time.
OP Level 2
/train dwell skip This skips the dwell time for the nearest train.
If the train is boarding, it will depart shortly after the door closes.
Otherwise, it will skip the dwell time in the next stop like a Turn Back Rail.
OP Level 2
/train dwell set This sets the dwell time to a specific time in milliseconds.
Useful for precise control of dwell time.
OP Level 2
/tsc ping This measures the response time of Transport Simulation Core, given in millisecond. For diagnosing TSC performance only. OP Level 2
/tsc freeze This toggle simulation freeze of current dimension of Transport Simulation Core. For debugging only. 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.

About

Small server-side MTR Addon

Topics

Resources

License

Stars

4 stars

Watchers

1 watching

Forks

Contributors

Languages