User Tools

Site Tools


mtr:getting_started

This is an old revision of the document!


Getting Started

The 3.0 release of Minecraft Transit Railway has reimagined the concept of Minecraft train systems. Rather than using the traditional minecart, a central dashboard system controls where trains are at all times. Lagging entities, inactive trains inside unloaded chunks, and overloaded servers are now problems of the past.

The dashboard items are the central parts of the mod. Stations, routes, and depots can be added, moved, and deleted.

Trains are no longer entities or "retextured minecarts". Instead, they are part of the world data, with each train's position simulated on every server tick. This avoids a lot of unnecessary entity position, velocity, and collision calculations, and can move trains even outside of currently loaded chunks. This also means that train-spawning items no longer exist, as trains now run according to user-created schedules. As of version 3.0.0-beta-5 of the mod, trains no longer use vanilla Minecraft rails.

Video Tutorials

Please see this playlist for video tutorials.

Creating a Rail

These are the basic steps for creating rails. See the Rails page for more information.

  1. Place down a rail node on the ground.
  2. Walk forward at least a few blocks and put down another rail node.
  3. Obtain any rail connector item. Right click one of the rail nodes while holding the item. The rail connector should start flashing in the inventory.
  4. Right click the other rail node while still holding the rail connector item. Railway tracks should appear between the two rail nodes.

Building Your First Railway

Platforms

A platform is a section of track where trains can stop to pick up passengers.

  1. Create a platform rail by following the steps above (outlined in the Creating a Rail section) while using the platform rail connector item. This will be the first train platform.
  2. Go somewhere else and create another platform rail, not connected to the first one. Try to keep it about the same length as before. This will be the second train platform.
  3. Connect the two train platforms together using any of the other rail connector items (not the platform or siding rail connector items). Use more rail nodes if necessary.

Building the Platform
An example of two platform rails connected by another rail

Stations

A station is a rectangular area marked in the world. Each station should completely cover one or more platforms.

  1. Obtain the railway dashboard item and right click to open it.
    • The menu on the left has three tabs: Stations, Routes, and Depots.
      • The Stations tab is selected by default.
    • The map on the right shows the current world.
      • The blue dot with a white outline marks the current player location.
      • Platforms are bright white on the map.
      • Click and drag on the map to move it.
      • Use the mouse scroll wheel or the + or - buttons on the bottom right to zoom.
  2. Zoom and move around the map to find the first platform that was built.
  3. On the Stations tab, click on the button at the bottom called Add Station.
  4. The map is now in edit mode. Left click and drag to draw a rectangular station area over the first platform.
    • If a mistake was made, just click and drag again. The previously defined station area will disappear.
  5. At the text box on the bottom left, type in a name for the new station. Use the | character to separate different languages, for example 第一城|City One.
  6. Click Done when finished.
  7. Move around the map to find the second platform that was built.
  8. Click on the Add Station button again. Draw another rectangular station area, covering the second platform. Type in a name for the second station.
  9. Click Done when finished.

Create Station
Two example stations, Northgate and East Green Lake, have been created in the railway dashboard.

The two stations should now be visible on the map.

Routes

A route is simply a list of platforms (not stations). Trains assigned to a route will attempt to find a path to visit all the platforms. At the end of the route, the trains will be removed.

  1. Inside the railway dashboard, click on the Routes tab.
  2. Click on the button at the bottom called Add Route.
  3. The map is now in edit mode. Click on the first platform (in white) on the map. It should show up under the Routes tab on the left.
  4. Click on the second platform on the map. There should now be two entries under the Routes tab on the left.
  5. Type in a name for the new route. Use the | character to separate different languages, for example 馬鞍山綫|Ma On Shan Line.
  6. Click Done when finished.

Create Route
A route serving the two platforms has been created.

The route is now complete! Hit Esc on the keyboard to exit out of the railway dashboard.

Depots and Sidings

A siding is a section of track where trains can spawn from, and a depot provides instructions for where trains should go.

  1. Create a siding rail by following the steps above (outlined in the Creating a Rail section) while using the siding rail connector item.
  2. Using any of the other rail connector items (not the platform or siding rail connector items), connect the siding to the first platform of the route.
  3. Connect the siding again to the last platform of the route.
  4. Obtain the railway dashboard item and right click to open it.
  5. On the Depots tab, click on the button at the bottom called Add Depot.
  6. Draw a depot area over the siding and type a name into the text box. This process will be very similar to how the stations were created.

Schedules

The depot must be given a schedule and instructions in order for trains to move along the predefined route. Hours listed on the schedule are based on the game time, not real life time.

  1. Inside the railway dashboard, make sure the Depots tab is selected.
  2. Click on the siding (in white) on the map.
  3. Click on the SP 1900 button. This will change the train type that will spawn.
  4. Select Minecart and click on the + button.
  5. Hit Esc on the keyboard to return to the main dashboard screen.
  6. Hover over the newly created depot and click on the pencil icon. The schedule configuration screen should appear.
  7. Drag all the sliders to the very right. This means that trains will spawn every twenty seconds in real life.
  8. Click on Edit Train Instructions and hover over the route that was just created. Click on the + button to add it to the train instructions.
  9. Click on Refresh Path. This button must be clicked every time the train instructions or rails have been modified.
  10. Hit Esc on the keyboard to exit out of the menu, and again to exit out of the dashboard.

A train made up of minecarts should start spawning every twenty (real life) seconds.

Platform Blocks

Platform blocks are required to pick up passengers. Place down a row of platform blocks by each platform rail.

Platform Blocks
Platform blocks should be placed by the platform rail.

Walk onto any of the minecarts to hop in. Enjoy the ride; your first railway is complete!

Enjoy Ride
A player is enjoying the train ride.

Notes

  • Each route must have at least two platforms, or else no trains will spawn.
  • More than one route may be added to the train instructions.
    • The siding must be connected (with rails) to the first platform of the first route and the last platform of the last route.
    • The Refresh Path button must be clicked every time the train instructions or rails have been modified.
  • Trains will momentarily stop at each platform. This is normal.
  • The train with minecarts is not actually made up of real minecarts from the vanilla Minecraft game. In fact, placing in a vanilla minecart manually on the rails won't interact with the routes or schedules at all.
  • The length of the train that will spawn is limited by the length of the siding.
    • If the platform is too short to spawn even one carriage, no trains will appear!
    • See the Trains page for the length of each train.
mtr/getting_started.1677141138.txt.gz · Last modified: 2023/02/23 08:32 by zbx1425