TrainCarts
TrainCarts Development has moved to SpigotMC.
You can get the new versions at the following URL:
https://www.spigotmc.org/resources/traincarts.39592/
This page is no longer being actively monitored, please seek for support on SpigotMC.
Plugin: TrainCarts - Linked Minecarts, sign-redstone systems, easy to use and realistic
Version: v1.73.0
Build: 1.7.2 R0.1/R0.2
Incompatible with: RailCraft
Description
This plugin looks for suitable Minecarts and links them together if possible. When two Minecarts are being "linked", the Minecarts will act as one single moving train.
Once carts are successfully linked, an effect is played and their velocity is shared in combination with an individual factor for each Minecart, which is used to remain a steady gap between carts. This gap is adjustable, the force at which this happens as well.
End result: a train! You can move it, make a roller-coaster out of it, split it in half, watch trains collide, whatever you want to do with trains. :)
As for 1.21, it is also possible to safely exit your train by setting an exit offset with a (sideways) push factor for the train. This feature is disabled by default. (only affects dropped items). If you want to display arrival times on signs (see redstone circuit part) you need SignLink, see the downloads on the bottom of the page.
As for 1.35 you can set train properties to make 'special' trains, or to 'finalize' a train

Links
For configuration, permissions and how-to's, see the Wikipedia page (it is rather long):
Note that I would prefer having comments, bug reports and others in the main Bukkit page, since I visit that site the most. :)
Addons
Special Addons for TrainCarts
Features
- Link minecarts using collision: no commands needed to make a train
- Move trains as easily as you would with single Minecarts
- Store trains to file for persistence during reloads and server restarts
- Use sign-redstone circuits for subway systems, complete railroads and much more
- Station to gracefully stop and launch trains
- Spawn
- Teleport
- Property setters
- Tag systems to switch certain tracks based on tags on the train
- Destination systems to make your train travel to far-away lands all on it's own
- Supports Minecart Mania's features
- Infinite minecart speeds are possible
- Push-away: Push mobs, players and items away from your trains to keep them running
- Everything is configurable, if something proves not to be, I will make it that way
FAQ
When players are near, trains reach their destinations. With no one near, they don't. What do I do?
By default trains do not keep chunks loaded, and they will unload once they move into unloaded chunks. To make trains keep the chunk area (and themselves) around them loaded, set the 'keepchunksloaded' property to True. This can be done using the /train keepchunksloaded true command, using a property sign or by changing it to true in the DefaultTrainProperties.yml file. For more information about train properties, see here.
Why not boats?!?!
Incompatibilities
If you have another plugin that performs similar Minecart replacement techniques, it is likely that TrainCarts will not function or function poorly. For the 'chunk persistence' part of this plugin, other plugins that unload chunks without firing events result in this feature failing. Minebackup is known for having this problem.
Metrics
This plugin sends server count statistics to MCStats.org. You can (globally) opt out in the PluginMetrics/config.yml file.







-
View User Profile
-
Send Message
Posted Feb 5, 2014@Etsija
I had forgotten about the way xmybu is doing it. What I use is a plurality of property signs activated with redstone.
-
View User Profile
-
Send Message
Posted Feb 5, 2014Hello,
I got a server with this plugin on it. Last days my server is lagging so hard that you can't even join. The server also crashes frequently.
When I look in the log, I see a big error before the crash by the plugins Traincarts, Signlink and BKCommonLib. Traincarts also needs 30 seconds to enable when the server starts or restart. That's realy annoying to.
Can i fix this or is there a version of traincarts that just works fine?
Versions:
Error logs
The last error is more common
-
View User Profile
-
Send Message
Posted Feb 5, 2014doet het niet!!!
-
View User Profile
-
Send Message
Posted Feb 4, 2014@xmybu
To be honest, I am quite puzzled as to how multiple destination signs for one destination could ever work without disrupting (or totally destroying) the route finding of TrainCarts.
From what I understood from the code when I made my TCGraph application, the whole railway system is to TrainCarts just a directional graph where the intersections (marked to TC with the "switcher" signs) AND destinations (marked with "destination" signs) represent the nodes and the rails between these nodes represent the edges of the graph. And, by using the "blocker" signs, you can make certain edges of the graph unidirectional; by default, every edge is bidirectional.
Now when you put a "destination" sign under the rail somewhere, you are in effect specifying a new node to TrainCarts. TC then stores the exact coordinates of this piece of rail into its graph. Also it finds all nearby nodes, and stores info of these as well as the corresponding edge lengths and directions in which these neighbours are in relation to this node. A real-world example from our server:
So, there is a destination "austraasia" with connections to nearby nodes JN329 (an intersection) and JN117 (also an intersection). All this info is then used when finding shortest routes between two specific nodes of the graph -> the route finding functionality of TrainCarts.
If I were to put another destination sign called "austraasia" somewhere else on my network, this will certainly confuse TC IF it doesn't have some kind of tracking system in use which knows that these new signs are NOT redefining the old destination's coordinates but are merely used for the user convenience (to set the destination by right-clicking the sign).
It seems from the documentation that at least at some point the plugin devs have added some support for the thing you try to do. But on the other hand, plugin throwing a warning for multiple destination signs is a symptom that not everything is working as should. And, an accidental destruction of this additional destination sign (it seems) has lead to the plugin also destroying the info of the original one!
I'm sorry I cannot give you any hints for how to do achieve what you are trying to, other than resorting to the old way of using "/train dest destination_name" while sitting in the minecart...just tried to explain what _might_ be happening here.
-
View User Profile
-
Send Message
Posted Feb 4, 2014What about a sign executing a command for every player sitting in the train? Like this:
Would be awesome for playing sounds (station announcements) over a web interface, because I like those details in my metro system.
Food for thought: youtu.be/rZnuR4dxhQ4
-
View User Profile
-
Send Message
Posted Feb 3, 2014@lenis0012
Will these tutorials be in English? It's quite hard to find ones that are.
-
View User Profile
-
Send Message
Posted Feb 2, 2014I'm using destination signs to let anyone quickly set their own destination by simply right clicking on the sign. This is described at http://minecraft.gamepedia.com/Custom_servers/Bukkit/TrainCarts/Signs/Destination
"Other than a marker, it can also set a new destination on the train when clicked"
Using destination signs in this way, I end up with 2 or more signs with the same destination. One marks the actual location of the destination. The others are visible in other stations to set the destination on the train.
Adding the second sign with the same destination causes a warning. This is not ideal but I understand why and ignore the warning. However today my daughter, when setting her train destination, left clicked on the destination sign rather than right clicked, destroying it. No problem I thought - I just recreated the destination sign.
Sometime later I was travelling to one of my stations and found the routing was broken. It tried to send my train down the wrong line and stopped at a blocker sign.
Investigating I found that the destination given on the sign accidentally destroyed by my daughter, was no longer in the routing data (destinations.dat). So what appears to have happened is that TrainCart, seeing the destruction of the destination sign (the one used for setting the destination) incorrectly removed that destination from its routing.
Is there any setting/work-around to prevent a mistaken left click (rather than right) from breaking the routing?
-
View User Profile
-
Send Message
Posted Feb 2, 2014@Black_Frid4y
Use the latest dev build and try the new 'invincible' property
-
View User Profile
-
Send Message
Posted Feb 1, 2014Hello,
I have an issue with the latest development build. I am currently running this on a war server, with guns, tnt, grenades, etc, but when someone shoots a minecart with a fire charge and tnt, the minecarts immediately stop and break apart sending them all which way. I want the trains to constantly be running, and stop at a few stations, I also have the proper flags for the trains with invincible, and other properties. I would really appreciate some help on this issue. Thanks!
-
View User Profile
-
Send Message
Posted Feb 1, 2014Some ops cannot place train cart signs.
-
View User Profile
-
Send Message
Posted Feb 1, 2014We are releasing tutorials to teach people what you can really do with traincarts.
Many people think traincarts does not provide automatic rollercoaster systems and speed management.
But it doesm including much more features you most likely do not know about.
Stay tuned at Nuropsych1 on youtube
-
View User Profile
-
Send Message
Posted Jan 31, 2014Every time my train goes through my one route, it would make an explosion sound and either the entire train or one part is destroyed, anyway I can turn this off or fix it?
-
View User Profile
-
Send Message
Posted Jan 31, 2014No problem at all, glad that you got it working. Now off to build 50 more stations into your system! :D
-
View User Profile
-
Send Message
Posted Jan 31, 2014Following on from my query about the issue I was having with blocker signs and the route finder, thanks to Etsija I now have a working system which respects blocker signs correctly.
The issue was caused by using "[!train:l]" in my blocker sign. As Etsija pointed out, I should use "[+train:l]" - a "+" instead of "!".
Thanks again to Etsija - your help was much appreciated.
-
View User Profile
-
Send Message
Posted Jan 30, 2014@Mattrock607
It used to be possible, by using the SignLink plugin, but I don't know if it works. Back some time trying to use SignLink signs for the countdown purpose crashed the whole server...
-
View User Profile
-
Send Message
Posted Jan 30, 2014@hellphish
Exactly.
-
View User Profile
-
Send Message
Posted Jan 30, 2014I have a problem... I did BKCL and TrainCarts Plugin on my server but it doesnt create a file where i could find config etc. I used the latest version of them... Could someone explain me or help to do it right?!... Thx
-
View User Profile
-
Send Message
Posted Jan 30, 2014An "arrival time" sign might be a good idea; it would display a countdown timer (like the countdown timer in LotteryPlus) letting people waiting at a train station know when the next train is going to arrive, exactly or approximately. And maybe say "delayed" if a station sign was turned off.
This might all be possible already... I'm still learning my way around TrainCarts. Just thought I'd mention it :)
-
View User Profile
-
Send Message
Posted Jan 30, 2014@Etsija
Something like this? http://www.twitch.tv/hellphish/c/3637140
-
View User Profile
-
Send Message
Posted Jan 30, 2014@xmybu
Most often this weirdness happens when you have an undetected broken rail etc. somewhere on your system. Can you send me the "destinations.dat" file from TrainCarts folder via PM? I have created a tool which visualises your traincarts network by using the DOT graph drawing tool. By my tool we've been able to spot every problem we've had with our vast metro network (of 50 destinations).
I can probably also help you with setting the blocker signs correctly on your system, if that's the reason for the system failing.