With this plugin you can manually control TrainCarts trains by setting an acceleration (throttle) instead of speed. The plugin automatically modifies the
maxspeed property to change the train speed, so you will need to prepare your spawner to give energy to trains, while keeping the train stopped:
This is the bare minimum you need to make the plugin work, but it is also recommended setting the
slowdown property to false, and the
collision property to deny. This way the train will always be responsive to your throttle setting, and won't be stopped by entities on the track.
The main command to drive trains is
/throttle. Adding an integer between
2 and
8 (e.g. /throttle 7) will change the acceleration of the train you are editing.
5 is neutral, and will keep speed stable.
6-8 will increase speed and
2-4 will brake the train.
/throttle off will disable the plugin for this player, necessary to edit other trains without modifying their speed. To reverse the direction of the train do
/throttle reverse.
Since version 1.2, the acceleration per increment and maximum speed are configurable. Add a tag to the train with the following format:
T<accel>|<maxspeed>:
-
<accel> is the acceleration per throttle increment in
blocks/tick^2. The default value is
0.001, so /throttle 6 will produce this acceleration, /throttle 7 will be 0.002 and /throttle 8, 0.003. The same applies to braking.
-
<maxspeed> is the maximum velocity the train can reach, in
blocks/tick. The default is
1.0.
Example: If we want a train that can reach 0.7 blocks/tick with an acceleration of 0.002 per throttle increment, the corresponding tag would be
T0.7|0.002.
While the plugin is active, two bars will appear at the top of your screen. The first one indicates the current speed of the train and the other shows the separation between your train and the next one ahead, with a maximum of 300 blocks.
To report bugs or ask for help you can DM me on Discord. My username is
janitus1234#1999.