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.
Firstly I'd like to say this is an awesome mod, its exactly what I was looking for! However, I am also getting these chunk loading errors and its causing the train to stop, dismantle its self and in one case it duplicated the powered minecart almost 20 times.
When this happens with more than one train, the server seems to lag up and hang. I've had to close the server down and reopen it to re-gain control, at which point I find the carts disjoined and duplicates stuck within one another. When I try to remove the carts, I always get one or two which glitch and cannot be removed.
@bergerkiller
Nice work! I'm going to try this out. :)
Yay for progress! You are the best. :D
Hmm.. How well would TrainCarts survive a series of carts jumping between worlds? There are many plugins that provide that as a service via Nether portals.
@elektromanager The latest beta version already has chest transfer, very advanced :) I am now preparing TrainCarts for the latest CB build, fixing a lot of possible issues. (including train duping, that has been an issue for a while now)
Whoo! Good thing you waited.
This is an unstable bukkit, but...
<textarea cols="70" rows="10">
2012-01-13 16:51:37 [SEVERE] java.lang.NoSuchFieldError: bN
2012-01-13 16:51:37 [SEVERE] at com.bergerkiller.bukkit.tc.NativeMinecartMember.move(NativeMinecartMember.java:690)
2012-01-13 16:51:37 [SEVERE] at net.minecraft.server.EntityMinecart.y_(EntityMinecart.java:396)
2012-01-13 16:51:37 [SEVERE] at net.minecraft.server.World.entityJoinedWorld(World.java:1257)
2012-01-13 16:51:37 [SEVERE] at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:110)
2012-01-13 16:51:37 [SEVERE] at net.minecraft.server.World.playerJoinedWorld(World.java:1239)
2012-01-13 16:51:37 [SEVERE] at net.minecraft.server.World.tickEntities(World.java:1146)
2012-01-13 16:51:37 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:525)
2012-01-13 16:51:37 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
2012-01-13 16:51:37 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
2012-01-13 16:51:37 [SEVERE] Unexpected exception
java.lang.NoSuchFieldError: bN
at com.bergerkiller.bukkit.tc.NativeMinecartMember.move(NativeMinecartMember.java:690)
at net.minecraft.server.EntityMinecart.y_(EntityMinecart.java:396)
at net.minecraft.server.World.entityJoinedWorld(World.java:1257)
at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:110)
at net.minecraft.server.World.playerJoinedWorld(World.java:1239)
at net.minecraft.server.World.tickEntities(World.java:1146)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:525)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
</textarea>
I had to halt the server after that one. :C
I'm really hoping to make this the new railway solution for my server, since MinecartMania is slowly dying and I've always wanted proper trains anyway...
However, when the plugin is loaded, things seem fine for a bit and then we get horrible bursts of lag with no console feedback. Other times this starts spamming madly in the console:
2012-01-11 22:46:57 [SEVERE] [TrainCarts] Failed to perform physics on train 'null':
2012-01-11 22:46:57 [SEVERE] java.lang.NullPointerException
(though possibly because we unloaded the plugin using plugman, which is ancient)
Other times...
2012-01-10 21:53:48 [SEVERE] Could not pass event CHUNK_LOAD to Train Carts
java.lang.NullPointerException
Again possibly after we tried to unload it that way - seems like the absence of the core plugin stuff is causing problems with leftovers.
Hi bergerkiller
First of all: Thank god you provide us a mostly adequate alternative to the inactive minecart mania mod! I love you! ;)
Do you plan to extend your plugin with the chest features which MM gave us? This would be awesome! On our server we would like to create an automatic storage in which storage carts with different contents sort their materials into specific chests while passing them. So there has to be a possibility for storage carts to collect specific materials out of chests when passing them (i.e. by a sign) and dump them into specific chests by passing them (also by a sign).
What do you think? :)
Best regards, elektromanager
@NODeeJay Yup, I recently added a donate button (it's on the Bukkit.org page)Donations are welcome of course :)
Also, I guess you need to report the synchronized code access error to the dev of signcodepad. It most likely also causes the concurrent modification exception in TrainCarts (it loads a chunk from another thread)
Nice idea about the announcements, and yes I had the idea to add it. I could add it to the trigger easily by adding some sort of train description property.
@bergerkiller
The error about SignCodePad is fixed meanwhile but it was:
Despite many recurring "Could not pass event CHUNK_UNLOAD to Train Carts" I received that sometimes:
After the first "Could not pass..." I normally have N minecarts somewhere stucked. Mostly I can destroy all but one so the track is unusable until a server restart.
in config.yml KeepChunksLoaded is true and KeepChunksloadedonlywhenmoving is false to keep the chunk loaded even when the train is stopping some seconds for a station.
And finally I want to ask you for a new feature: Station Announcement. There is NextStation as MinecartMania Addon, but it depends on MM and is outdated. My idea is that a simple announcement is shown when passing a track with a sign under it.
[train] announce variable time to be displayed
depending on the sign's direction the announcement is shown or not. Variables are stored in SignLink's value.yml and colors like on signs are applicable. If its a variable instead of the text even ETA from a trigger could be shown, like "Arriving at Bla in 0:12"
Thanks for your great plugins and support!
By the way is there a donation button somewhere?
@Deathknight0897 Important note: If you have very important questions or reports regarding 1.54 (or 1.60 beta), please post on Bukkit.org. I am still heavily working on a next (stable) version, and I often check/update that page during development. If a feature is faulty in 1.54, you can try 1.60 latest beta and see if that resolves some of the issues. Note that 1.60 has quite a design change to make it fully take over Minecart Mania's features, so it may require some adjustment here and there.
@NODeeJay I'll check the chunk unload event or possible errors, but if you can, post the error you got.
I'll do some thorough tests in the station launching and stopping bits in the latest beta version and will report possible fixed bugs in the Bukkit.org thread.
This is the short version
Hey im still having problems I think you need to come in my server and see what is happening as i am now just baffled if you pm me i would be willing to give you the ip ps when is this plugin getting fixed as it is very vital to my server
Hi i have posted on you other thread multiple problems are still occurring got the plugin generally working still very broken however trains launch correctly from station so long as know one is in it and as soon as somebody gets in the train becomes jammed in the station meaning i can transport nothing when is the plugin getting fixed due to this is used for transportation purposes and is very critical to my server
I would be willing to give you my server ip to allow you to see first hand plus i need to show you the config's again as flags has gone back to the cut down version as well as a couple of other issues best shown first hand please pm me
@bergerkiller
No, I only get the error about SignCodePad when I enter the PINs but no error about the sync thread. But still I receive the "Could not pass event CHUNK_UNLOAD to Train Carts"
Plugins: CraftBukkitUpToDate, FalseBookBlock, FalseBookChat, FalseBookCore, FalseBookExtra, FalseBookIC, iConomy, MobileAdmin, SimpleItem, PermissionsEx, PickBoat, Safe Creeper, SignCodePad, SignLink, SleepNotify, SpawnX, WeatherNews, WeatherSigns, WorldEdit, WorldGuard, Permissions, Citizens, dynmap-mobs, Dynmap-WorldGuard, dynmap, mcMMO, NoLagg, Train Carts
So, im on the most recent update and ill save the train with my custom options then stop the server cleanly load the server back up and all settings are lost. Including the keep chunks loaded option still :[!
But i dont get a error or stacktrace like i did before, now it's just plain not doing it <_<
Hey. I am having trouble getting train portals to work.
When I create the portal (like in your video) and power it, it get a message "you have created a train portal" then I create the destination, same message. When I send the train towards the portal, it does not teleport.
When I use a portal bloc, I can get the train to tp however sometimes it arrives at the sign (underground) and sometimes it teleports a couple of times and then materializes in the sign.
I am using craftbukkit 1575 myworld 1.33 had the same problem with traincarts 1.54 and 1.6b4
any thoughts?
Lovely plugin. I think this is relevant: http:www.youtube.com/watch?v=hHkKJfcBXcw
Nice plugin. I use it mainly for the stations and spawning/destroying of Minecarts. I do prefer Minecart Mania as it's much more simple and does what I want easier, but as it's pretty much inactive I think this is the best alternative. Thanks!
maybe a way to reload configuration without restarting the server?
wow. i remember when i first looked at this and all it did was keep minecarts together xD
@maxi1134 That's kinda impossible, it's always possible that a train jumps off some sort of ledge. But it's a nice suggestion, I'll see if it's possible to stop the train if the front cart is about to derail.