Site Tools


trains:index

This is an old revision of the document!


Trains

The first thing you will notice is that you can now connect carts together to form infinitely long trains. Every cart in this train is called a member, all members combined are called a group. Every member communicates with the group, so when the front cart hits a block, it stops the entire group. When someone pushes a cart, this pushing force is shared among all members. Therefore, long trains are less responsive than short trains.

By default all minecarts placed by players become TrainCarts managed Minecarts. If you want to spawn Vanilla Minecarts that behave with original Minecraft Physics, you can do so through 'permissions' or by spawning with a 'dispenser'. See this page for more information.

Mobs no longer get into Traincarts Minecarts by default. If you want to change this, see this page for more information or spawn vanilla minecarts instead.

Properties

Trains and individual carts of trains have properties. These can be set using commands (/train and /cart) or using the property sign.

New physics

Trains can travel on top of pressure plates and alongside ladders, and also upside-down below vanilla rails placed on a ceiling.

» Physical

Signs

Loads of different signs are available to automate stations, eject trains, put players in trains or update train configuration.

» Signs

Command

The plugin has lots of commands you can use to alter the behavior of trains and minecarts.

» Commands

Command Selectors

You can use command selectors like @train and @ptrain in all other commands (including non-traincarts commands) to perform actions on trains or player passengers of trains based on selector criteria. For tighter integration with other plugins like economies and status effects, this is the ideal mechanism.

» Command Selectors

Train Spawn Chest

A special item allows for trains to be picked up and spawned.

» Train Spawn Chest

Path finding

Trains can have a destination set, after which switcher signs will automatically switch the track to lead the train towards it with the shortest route possible. This can be used to automate a large train network, sending trains to different stations fully automatically. It is also possible to configure a list of destinations the train should visit and have the train automatically go from one destination to the next.

» Traincarts Path Finding

Tickets

Train ticket items can be used to restrict who can enter trains. They can also be used to assign properties to trains when used, such as assigning a destination to go to.

» Traincarts Tickets

trains/index.1720732945.txt.gz · Last modified: 2024/07/11 21:22 by paul