Throttle (TrainCarts add-on) 1.0

Drive trains realistically!

  1. janitus1234
    Tested Minecraft Versions:
    • 1.16
    Source Code:
    https://github.com/janvinas/Throttle
    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:

    [​IMG]

    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 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.

    While the plugin is active, a bar will appear at the top of your screen indicating the current speed of the train.

    Let's see some examples:

    /throttle 8 - increase speed quickly
    /throttle 6 - increase speed slowly
    /throttle 3 - brake
    /throttle 5 - keep speed

    To report bugs or ask for help you can DM me on Discord. My username is janitus1234#1999.