hsrails
High Speed Rails
(For game versions: 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, 1.20, 1.21 and newer)
A spigot/bukkit plugin to make minecarts worth building.
Place a powered rail on a boost block (redstone block by default) to build high-speed rail. Place on any other block to get a regular powered rail.
High-speed rails are by default 4x faster than regular powered rails, ie. 32 m/s, or 115 km/h. This is as fast as rocket powered elytra flight.
The high-speed rail multiplier can be temporarily changed with the /hsrails command, or permanently changed in the config. The boost block is also configurable. See Usage section for commands and config options.
To help cope with the higher speeds, there is also a hard brake block available (soul sand by default). If you place an unpowered power rail on a hard brake block, the cart will decelerate faster than default. See Usage section for configuration options.
Note: please read the Design sections on how to keep your carts from derailing at high speeds.
Note: there seems to be a game limitation for speed but not momentum, and it seems to be around multiplier of 4x. Multipliers higher than 4x usually result in increased momentum, but not higher top speeds. That means the carts will coast for longer, even though they appear to have the same top speed.
Note: the plugin is compatible with the Improved Minecarts experiment. It will simply apply the multiplier on top of the `minecartMaxSpeed` gamerule.
Usage
Commands
Use /hsrails <multiplier> to tweak how fast high-speed rails are. Multiplier must be between 1 and 8.
Example: set multiplier to 4
/hsrails 4
Config
This is the default HsRails/config.yml:
speedMultiplier: 4.0
boostBlock: "minecraft:redstone_block"
hardBrakeMultiplier: 8.0
hardBrakeBlock: "minecraft:soul_sand"
Allowed values are:
- speedMultiplier:
>= 1<= 8
- boostBlock:
- Namespaced block. Look up the ID name in the id list and prefix it with
minecraft:. For example, type in"minecraft:stone"for stone block as boost block. - If you type in
"any", every powered rail will be a high speed powered rail.
- Namespaced block. Look up the ID name in the id list and prefix it with
- hardBrakeMultiplier:
>= 1
- hardBrakeBlock:
- Any namespaced block (see info on
boostBlockfor details).anyis not allowed here.
- Any namespaced block (see info on
Design considerations
You must be aware of a couple of things while building high-speed tracks:
- Acceleration is not instantaneous.
- Entering turns at high speed will derail you.
- Entering/exiting slopes at high speed will derail you.
- While traveling at high speeds, a regular powered rail will slow you down.
Derailing at high speeds is a limitation of the game itself, and is probably the reason why rails are so slow in vanilla Minecraft. Thus, when designing your high-speed tracks, you will have to design them like real high-speed train tracks: long stretches with smooth turns.
Design guidelines
These are my recommendations for building efficient high-speed tracks:
- Allow room for acceleration: it takes a while to reach top speed. Place several high-speed rail sections close together at the start of your track.
- Minimize number of turns: you only need at most one turn to get to any destination. An optimal track looks like an L from above.
- Minimize number of slopes: build tunnels, bridges, etc. to stay on the same level.
- Before turns and slopes, put one (or sometimes a couple of) regular powered rails to slow down and avoid derailment.
- After turns and slopes, allow room for acceleration again.
- To maintain top speed in high speed state, place a high speed rail every 30 blocks (ie. 1 powered rail + 29 iron rails; rinse and repeat)
To maintain high speeds you must of course build your tracks out of high-speed rails, because regular powered rails will slow you down. Only mix in regular powered rails in turns and slopes as mentioned above.
If you want to stop a high speed cart quickly, for example if you have stations/stops on your route, you can use hard brake blocks with unpowered powered rails.
Credits
Adapted from varesa's Minecart Speedplus.
Thanks to:
- LordNinka for discovering the effects of speed vs. momentum at high multipliers.
- TheWallaceman105 for bringing forth the idea of hard brake blocks and helping during development by testing.
- Janicki92 for key insights that finally resolved the infinite momentum bug.
- GoodrichDev for testing on Folia.
- gavinft for submitting code to support the new `minecartMaxSpeed` gamerule.

-
View User Profile
-
Send Message
Posted Oct 29, 2020In reply to Forge_User_54343163:
Glad to hear!
Also, I like the idea. Adding it to the to-do list!
-
View User Profile
-
Send Message
Posted Aug 2, 2020Awesome plugin, but mulpliers above 4 don't work.
Above 4 the multiplier seems to affect momentum, but the speed cap remains at 4x (32 blocks/sec).
I tested with over 80 redstone blocks with powered rail in a row, there was no difference in top speed between 4 and 8, but the cart could slide about twice as long if the rails were removed after the redstone blocks.
v1.0.1 of the plugin.
-
View User Profile
-
Send Message
Posted Aug 3, 2020In reply to Forge_User_82837721:
Hi LordNinka.
Great finds, thanks for sharing your insight!
It's starting to look like it's not just my computer that's too slow for >4x, but rather some game limitation. The momentum is interesting though.
I am inclined to add an info message when setting >4x explaining what to expect, and keep the 8x cap for now. Maybe some servers are able to squeeze more out from it, or maybe the extra momentum is helpful for some tracks.
Would you mind if I credit you for the finds in the project description?
-
View User Profile
-
Send Message
Posted Aug 8, 2020In reply to ergor_gg:
You're absolutely welcome, it's the least I can do. I'm getting this fun and open-source plugin for free after all :)
Yes, that's what I thought, very interesting about the momentum. Really makes me wonder how the game itself handles carts and speed limits. I can't remember what exactly the server's cpu is, but it's an intel server cpu from 2019 and the server rarely has more than 4 players online at a time, so you'd think it'd be able to keep up. I can ask the server admin if you're interested in the precise specs.
And yeah, there's no harm in allowing multipliers over 4, but I think it's a good idea to add that info message.
I don't mind being credited, but I don't need it either, I'm fine either way :) I honestly just appreciate being listened to.
-
View User Profile
-
Send Message
Posted Aug 11, 2020In reply to Forge_User_82837721:
Yeah it sounds like that server should have plenty of juice. I have tested on more computers, and the magic boundary is consistently at around 4x.
Added the heads up message in version 1.0.2 for multipliers >4x the first time you issue the command. Also updated the readme :)
-
View User Profile
-
Send Message
Posted Aug 31, 2019This is really nice for roller coasters, since you can have varying speed with the redstone blocks and torches