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 16, 2013@leagris
Do you have an eror in the log?
The EntityCollissionEvent really shouldn't take much ram.
-
View User Profile
-
Send Message
Posted Feb 16, 2013@Andrecreason
Install vault
-
View User Profile
-
Send Message
Posted Feb 16, 2013Tickets being ignored :( http://dev.bukkit.org/server-mods/traincarts/tickets/102-announcement-signs/
-
View User Profile
-
Send Message
Posted Feb 13, 2013Hello, since today my server crashes three times without using any minecarts or else. Only three admins where build an awesome redstone wire with minecarts for storage blocks automatically in chests!
java.lang.NullPointerException at com.bergerkiller.bukkit.common.utils.PacketUtil.callPacketSendEvent(PacketUtil.java:106) at com.bergerkiller.bukkit.common.protocol.PacketConnection.sendPacket(PacketConnection.java:432) at net.minecraft.server.v1_4_R1.PlayerList.sendAll(PlayerList.java:666) at net.minecraft.server.v1_4_R1.PlayerConnection.disconnect(PlayerConnection.java:165) at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:46) at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598) at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
thx for helping
-
View User Profile
-
Send Message
Posted Feb 13, 2013We're having a problem on our end with permissions. The plugin works fine and dandy, but the problem is that only OPs can place carts down now; the main issue. We want to have it changed so that everyone can place carts down, and maybe leave the signs to the OP's, but right now the main concern is getting the permissions set to minecart placing According to the owner of the server, they have to install plugins through their hosts user control panel, which uses Wrench, or something. They tell me that they don't see the config.yml and other various files in there, and when I uploaded the default from my own server that I made to test the issue, they uploaded them and they disappeared, because Wrench apparently does not like the file format, which makes no sense. Every other plugin works fine though. I also tried setting it up on my own server, and when i set every permission in the PermissionDefaults.yml to true, I still cant place carts without OP
Using PEX, 1.44 BKCommonLib, and 1.72.5
Any help is appreciated
-
View User Profile
-
Send Message
Posted Feb 12, 2013Hi, Could you check the pushmobs feature. It seems to have no more effects since a couple of recent versions. The train just push a bit while the cart moves from south to north, often not enough to avoid the cart to return back, from north to south the cart push nothing and return backward.
thx
-
View User Profile
-
Send Message
Posted Feb 12, 2013@lenis0012
Lens, If you look at the archive I provided, you can see all the setup for the carts in config. I especially disabled collisions and auto linking as well as keep chunks loaded.
As for the TICK lag, it is not a RAM issue as our server have plenty. I have provided the Nolagg Examine file for you to investigate where it comes from.
Our world is in a SHM ram-disk, so disk accesses should not be the issue. Despite that, as seen with the Nolagg Examine, the #Chunkprovider task is very very busy, and it should not if chunks where not subject to some massive unload/load events. Chunks should never unload or reload because I espetially specified in Train Carts config to keep them loaded all the time.
-
View User Profile
-
Send Message
Posted Feb 12, 2013@leagris
it might be the fact BergerKiller is using YAML
but it seems like it ony saves on stop/start
I will look into this.
But yes, TrainCarts takes up some ram because it provides custom movement and entity looping.
VehicleEntityCollisionEvent took up alot of response time.
An option is to disable any collission properties.
-
View User Profile
-
Send Message
Posted Feb 12, 2013I believe I may have found the cause of the issues with chunks not staying loaded and trains not saving properly. It would appear that the MineBackup plugin is unloading chunks without raising the proper events. After removing this plugin (config changes didn't help) all is well with my trains and my chunks again.
The trains still can't get/put items from/to furnaces properly, but at least they are still there when the chunk loads again.
-
View User Profile
-
Send Message
Posted Feb 12, 2013Hello Lens,
Finally, I had to disable TrainCarts entirely on my server due to unacceptable TPS drop / server load. I provide you this NoLagg examine and full Train Cart folder: http://sphere-ville.net/bug/Train-Carts-Lag.tgz
As you can see, most of the Lag comes from BKCommonLib and the #Chunkprovider tasks.
We have lot of trains always running in our metro lines with keep chunks loaded otherwise trains stop moving.
Server performance degrade over time. It start fine, but as soon as more player join, TPS drop to a low 8 and never recover fully even after players quits. This tells there is some issues with tasks leaking.
From what I guess, there is a critical issue with BKCommonlib fighting cancellation of the chunk unload events. Unfortunately I can not do debugging or traces myself.
Please, help on this and the long awaiting issue of group property loss on server restart.
-
View User Profile
-
Send Message
Posted Feb 10, 2013@djl0st12
A fix? Ubuntu! :P
-
View User Profile
-
Send Message
Posted Feb 9, 2013Lenis, already looked at these two?
@rcth
-
View User Profile
-
Send Message
Posted Feb 8, 2013I have a problem that I havent found mentioned here and am extremely surprised I havent. With a completely updated bukkit jar, completely updated bkcommonlib jar, and the latest version of your plugin, a startup yields a clean start. It even SAYS it's generating the config files. However when I go to the folder generated by your plugin its blank.
I run my server on centos linux. Linux does not understand directories with spaces in the name, but your plugin generates a directory named "Train Carts"
This is most likely why the config files never generate. Any chance of a fix for this?
-
View User Profile
-
Send Message
Posted Feb 7, 2013New feature, please?
Hi, lenis0012,
as you - how i assume - maintain this awesome project, would you mind to implement a new feature?
Nothing big, but something logical:
When my train is gone, the Trigger Display (SignLink) still shows me the finished countdown, train's name and destination.
Can you please implement a method in the Traincarts's trigger signs, so that if you write 'clear' on the 4th line, it clears the three trigger variables in SignLink, just clear not delete.
It might look like this:
............................track number
............................%trigger1N%
............................%trigger1D%
.............................%trigger1%
=================================================
[!train]......................[!train]...................[!train]
trigger......................station...................trigger
trigger1.......................15......................trigger1
00:00:45.....................right......................clear
I tried to solve this problem for myself by using several command blocks executing the following commands:
/variable edit trigger1
/variable set
/variable edit trigger1N
/variable set
/variable edit trigger1D
/variable set
As they need to be executed one after another, i built up a messy construction with repeaters and so on...
I think this is not quite a big amount of code to write and change, please think about this sensible plugin expand.
Yours, panurgos
-
View User Profile
-
Send Message
Posted Feb 7, 2013No errors in log with 1.72.5 and #54 of bkcommon.
My problems:
"Chest out" works fine, but i can“t get "chest in" to work
I have one train which stays on a station and every 120 seconds it starts to run on a slope route to catch items from my traps.
Sign: [!train] station 120 reverse
It works perfect, but when i log off from the server, it seems like the train stops working. It just stays on the station an get not fired again. I always have to destroy it and build it again and again.
My other stations with continue work fine. The trains there keep moving. So maybe its something with reverse?
Great plugin. Would never run a server without it. Thanks
-
View User Profile
-
Send Message
Posted Feb 6, 2013Bug Report: Train collision with Mob/Animal while set to Kill will destroy train.
-What steps will reproduce the problem? 1. Have collision with mob set to kill. 2. Have a train (in my case it was made up of 5 carts, 2 storage and 1 powered - in that order [powered at front] ) 3. Have it collide with a mob.
What is the expected output? What do you see instead?
Expected output as per what usually happens is the train kills the mob and continues as normal. Now when a train hits a mob it does kill it however it also destroys the first 3 carts (thats both storage carts and the powered cart in my case) and leaves the other carts at a complete standstill. It also seems to delete the train from the list as I can no longer find the train listed when in the config file or when i call '/train list'.
What version of the product are you using?
TrainCarts: v1.72.5 BKCommonLib: v1.44 Bukkit: 1.4.7-R1.0
Do you have an error log of what happened?
No
Please provide any additional information below.
This only has happened since I upgraded to the latest version (1.72.5) today.
-
View User Profile
-
Send Message
Posted Feb 6, 2013@dockter
Full error on a pastie please?
-
View User Profile
-
Send Message
Posted Feb 6, 2013@CommanderGizmo
The plugin works, I had to re-update craftbukkit
-
View User Profile
-
Send Message
Posted Feb 6, 2013@CommanderGizmo
That plugin gives the same error, and traincarts is still not working (I downloaded the newest versions)
http://pastebin.com/NJhsYGuC
-
View User Profile
-
Send Message
Posted Feb 5, 2013@pielwil
You have to get BKCommonLib