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 Nov 12, 2012@bergerkiller
After a restart, our destinations.dat is now a total of 12 bytes in size (it was over 5 kilos yesterday), so something must be severely wrong with path finding now. After running destinations.dat through your converter, it seems to be totally empty!
-
View User Profile
-
Send Message
Posted Nov 12, 2012Test version #7 (needs just-uploaded BKCommonLIb v1.36!): https:dl.dropbox.com/u/3681706/TrainCarts%20v1.72.1%20TEST7.zip
Changelog T6-7:
@leagris The above test version should fix the problems you were having. And you were not the only one having that issue...
-
View User Profile
-
Send Message
Posted Nov 12, 2012@w208142002 Space is missing between waiter and 20. You can also try wait 20, could be a syntax issue.
@Etsija Destinations.dat is a save file. The /reroute command will simply delete all known path finding information, but it won't save state. That happens when the plugin is disabled. You will have to reload the server to update the file(s).
@leagris Thanks, this is a type of bug I want to fix. Previously it didn't report all trains on the server correctly, and now it does it is clear that there are bugs. I will do some tests with the destroy sign, could be it leaves behind ghost trains.
-
View User Profile
-
Send Message
Posted Nov 12, 2012Having an issue wit test6 build:
Continuous train spawner, then some travel, then destroyer at the other end.
/tain list cout increase but never decrease. At some point, the plugin has so many trains, the server TPS drops to unplayable and /train list crash due to too many trains registered.
/train removeall reset the actual count to 0, but I have to do it twice or it will only remove real carts (moving or at stations aka real count) and not cleanup the phantom carts instances that piled up.
While train count increase, moving trains count seems to accurately report the actual # of moving trains.
-
View User Profile
-
Send Message
Posted Nov 12, 2012bergerkiller, have I understood correctly that /train reroute should in practise calculate and store new version of destinations.dat?
Because if that's the case, then something's wrong: /train reroute doesn't change destinations.dat, and in practise, my new routes do not get added, so new destinations cannot be reached.
-
View User Profile
-
Send Message
Posted Nov 12, 2012bergerkiller, I have some problem about waiter sign. The waiter sign blocked the train correctly if another train are in front of it at a correct distance I assigned.But when the railway cleared,the train blocked by waiter sign is just got stuck...It didn't continue going anymore. I don't understand what happended or the syntax I typed was wrong?
This is syntax I typed,didn't placed any redstone circuit: first line: [+train] second line: waiter20
-
View User Profile
-
Send Message
Posted Nov 12, 2012@Etsija It was intended to be used as a click-sign, but as a result you now can't destroy them anymore. Right-click interactiong is pretty much broken as well...so yeah...
I'll look into the eject sign directions problem.
-
View User Profile
-
Send Message
Posted Nov 11, 2012bergerkiller, can you check your code for the eject signs? In the Wiki it says the first parameter of the third line is left/right, but in fact, it is the last parameter which controls that, and the first seems to be forward/backward. Also the fourth line (where to look at) is read wrong. I think you might have a directionality problem left there.
Also quite many signs cannot be destroyed once set: you have to destroy the block behind the sign to get rid of the sign. Ejectors are such, and destination signs also seem to be. Is this intentional?
-
View User Profile
-
Send Message
Posted Nov 11, 2012@iKoze To only toggle levers, use [train], the unpowered version. Powered switcher signs will toggle the rails above (or send the train back), while unpowered signs only do the lever switching part.
@SnyTe Thanks, that is the correct link for TEST6. I must have hastily copied it over.
-
View User Profile
-
Send Message
Posted Nov 11, 2012Think his link is wrong
https://dl.dropbox.com/u/3681706/TrainCarts%20v1.72.1%20TEST6.zip
-
View User Profile
-
Send Message
Posted Nov 11, 2012@bergerkiller
Oh, well luckily that particular case was just a weird section of monorail, built to make player dizzy with the sharp turns. I'll just straighten that out then.
BTW, TEST5 still throws the NPE when a cart is destroyed with a destroyer sign.
-
View User Profile
-
Send Message
Posted Nov 11, 2012@bergerkiller Hi bergerkiller,
just installed the latest test version and found a new bug. This bug occurs since the version from that post @bergerkiller (I think.) Before, it worked correctly.
See the 3 screenshots here: http://e.floriware.eu/traincarts/ If the minecart is launched from the station, it gets blocked by the second switcher, which should just toggle a trigger sign and drives back to the station. The minecart has the tag "sbahn" set and has no destination.
Greetings, iKoze
-
View User Profile
-
Send Message
Posted Nov 11, 2012@iKoze @Etsija Test version 6. Changes:
https:dl.dropbox.com/u/3681706/TrainCarts%20v1.72.1%20TEST5.zip
@Etsija
The trainCarts trains can't make such sharp turns; the direction to go to are impossible to calculate properly.
-
View User Profile
-
Send Message
Posted Nov 11, 2012The earlier curving problem is gone, but this still doesn't work: the cart stays in the bend indefinitely ("trying" to move forward and jerking back):
https://dl.dropbox.com/u/6411310/2012-11-11_20.01.51.png
-
View User Profile
-
Send Message
Posted Nov 11, 2012@Etsija Hi Etsija, path finding in test5 works. There is nothing "bigger" broken than in test2 :D
Greetings, iKoze
-
View User Profile
-
Send Message
Posted Nov 11, 2012@Etsija Double-checking it, I found one potential issue but it is unrelated to path finding.
-
View User Profile
-
Send Message
Posted Nov 11, 2012Hmm, are the auto-pathfinding and stations working also now in TEST5? Just asking, since MrKrisKrisu reported them being broken; we'd hate to upgrade to fix the curved problem and find out that something bigger is broken ;)
-
View User Profile
-
Send Message
Posted Nov 11, 2012@Etsija
It doesn't help moving the bend backwards or forwards; all carts stop at the bend.
This problem is already fixed in the latest test-version.
@bergerkiller Thanks for implementing. This was the main problem causing my server to hang up ;)
-
View User Profile
-
Send Message
Posted Nov 11, 2012@MrKrisKrisu Mhh yeah it is detecting the sign in the opposite direction, I'll fix that.
I want to add a permissions -> page converter at some point so I can make the permissions more readable. But that takes time...
-
View User Profile
-
Send Message
Posted Nov 11, 2012@bergerkiller
http://united-craft.de/traincarts/2012-11-11_15.13.42.png
In Test4 it does work. But in Test5 not...
Oh now comes my bad english... :D I wish me that you add permissions. I doesn't understand the config for that.