Forked from: https://github.com/Fridtjof-DE/MinecartTrains/
Minecart Trains
Introducing Minecart Trains! Experience a whole new level of immersion as you connect minecarts together, transforming them into powerful and efficient trains.

Features:
- linking minecarts to form a train
- a faint coupler line between linked carts (particle packets to nearby players only)
- freezing furnace minecarts with non-powered booster rails (to stop trains)
- minecarts at high velocity kill mobs on the track (configurable)
- arrows can't destroy minecarts (configurable)
- coal carts which the furnace cart will refuel from (in front or behind)
- furnace minecarts that can push a train in both directions
- fuel consumption of the furnace minecart is configurable
- highspeed tracks inspired by hsrails (only on adapted railways)
How it works:
Coupling:
The standard coupling tool is the chain. Click two minecarts one after the other to couple them. The click order does not matter: free carts, train ends, and whole trains are connected at the carts you click. Furnace minecarts become the front of a new pair when present.
Linked carts are placed on the rails at a fixed spacing behind (or ahead of) the engine. The locomotive still uses vanilla movement; the wagons are snapped to its path each tick so they cannot bounce. Corners follow the track, not a straight line.
Coal Carts:
Furnace minecarts take one coal or charcoal from a linked coal cart (or a named coal cart within 3 blocks) when they are about to run out. One piece lasts 3600 ticks (3 minutes). A normal chest minecart is ignored unless trains.fuel.refill_only_from_fuel_cart is false. Coal carts are crafted with a minecart and a coal block. Hoppers can only insert coal or charcoal into them.
Fueling a furnace minecart sets its push direction to the way you are looking, even if it already has fuel. Sneak-right-click an empty hand on a furnace minecart to reverse it. Linked carts keep following on both sides of the engine.
What is planned:
- safe chunk unloading
- auto. chunk loading
- some kind of fuel gauge
What is not (yet) possible:
- trains going around 2x2 curves
Requirements
- Paper 26.2 (Java 25)
- No extra plugin dependencies
Relevant Links
- modrinth: https://modrinth.com/plugin/minecart-trains
- bStats: https://bstats.org/plugin/bukkit/Minecart%20Trains/18918
How to Build
You need JDK 25 and Maven. Then run:
mvn package
Results will be in the target folder. With version 1.5.5 that is:
MinecartTrains-1.5.5.jar
Copy this file to the plugins folder of a Paper 26.2 server.