Custom servers/Bukkit/TrainCarts/Commands

From Minecraft Wiki
Jump to: navigation, search
The contents of this page are not supported by Mojang AB, the Minecraft Wiki, or the Minecraft Forums.
This mod page is not supported or maintained by the developer of the mod.
The content on this page and its sub-pages may be incomplete and inaccurate.
The supported wiki for this mod can be found at


Commands are used to control trains or single carts through chat commands. They can also be used to perform routine tasks, such as removing all trains from a world.

Syntax basic[edit]

To perform a command, either use /train or /cart . When using the train version, you want to operate on the entire train or perform a global train command. When using the cart version, you want to operate on a single cart. If you need to operate on a train or cart, first select the cart. This is done by 'hitting' a minecart, or entering a minecart, or placing a minecart.

Global commands[edit]

The below commands only work on /train and don't require a selection to function.


/train list
/cart list

Lists the number of stationary and moving trains in the world. It also lists the total number of cart entities (as part of those trains) and lists the trains that belong to you.


/train reroute

If the path finding system is failing because the track got changed, you can use this command to force the plugin to re-calculate all destination paths.

Destroy all[edit]

/train destroyall
/train removeall

Destroys all minecarts and trains on the server. Can be useful to re-set the plugin.

Fix bugged[edit]

//train fixbugged

Destroys all minecarts that are not managed by the plugin. Useful for is the server was shut down unexpectedly, leaving orphaned trains on the track.

Train - only commands[edit]

The below commands work only for /train.


/train setname [name]
/train name [name]
/train rename [name]

Sets the name of the train, the name may not be assigned to another train already

Set display name[edit]

/train setdname [name]
/train displayname [name]
/train setdisplayname [name]

Sets the display name of the train, may be double-assigned. This name is displayed on SignLink-variable signs when using trigger signs.

Train and Cart commands[edit]

The below commands work for both /train and /cart.


/train info
/train i

Shows train or cart related information, such as the name and set properties.


/train claim

Sets you as the only owner of this train.

/train setowner [names...]
/train setowners [names...]
/train setowners

Sets the owner names of this train. Use no names to clear the owners.

/train addowner [names...]
/train addowners [names...]

Adds the owner names to this train.

To change ownership of a single minecart, use the '/cart' command instead of '/train'. When setting train owners, you set owners on all minecarts simultaneously. If no owners are set for a minecart, it can be freely edited and destroyed by everyone else.


/train settags [tags...]
/train settag [tags...]
/train tags [tags...]
/train tag [tags...]
/train settags

Sets the tags of this train. Use no tags to clear the tags.

/train addtags [tags...]
/train addtag [tags...]

Add tags to this train.

Tags can be used in combination with switcher or detector signs. For example, you can set a tag to order a train to be destroyed. Every minecart has a separate set of tags, setting tags on a train sets it for all minecarts simultaneously.


/train destination [destination]
/train dest [destination]

Sets the destination for this train.

You can also set a destination on a single minecart in the train, this way letting switcher signs split trains up in multiple carriages.

Player enter[edit]

/train playerenter [bool]

Sets if players can enter the train or minecart.

Player exit[edit]

/train playerexit [bool]
/train playerleave [bool]

Sets if players can exit the train or minecart.

Pick up[edit]

/train pickup [bool]

Sets if the storage minecart(s) (in the train) pick up nearby items from the ground.