Speedcarts (minecart booster)
Description
With Speedcarts you will be able to increase the minecarts' speed in certain areas in a very comfortable way. Just select the area with WorldEdit and use the main command of the pluging (/sc). Using a very efficient way to store the information (without requiring a database) will cause minimum impact on your server. Furthermore, this plugin does not require configuration, only install and use!
This plugin really does not change the speed of the minecart, but increases the limit that rails allow the minecarts to go. So only affects the rails you've configured. To see the speed at which a route is configured, you will need to right click with a golden shovel on the rail while you are crouching.
Commands
The only command you will need in this plugin is "/sc" (alias "/speedcarts"), whose syntax is:
- /sc set [speed]: It will increase with the selected speed all the rails within a WorldEdit selection (the value must be between 0 and 4, with 0.4 by default in a normal rail).
- /sc set [speed] auto: Same as previous command except that the speed is automatically adjusted in curves and slopes to prevent minecarts to derail due to speeding.
- /sc remove: The rails within the selection will be normal rails again.
- /sc clean: If you use this command in a WorldEdit selection, you will delete from the storage the coordinates where currently there aren't rails.
Permisions
- speedcarts.edit: Allows to use the command "/sc".
- speedcarts.view: Allows to use the golden shovel to see the speed of the rail.
Source code
Tutorial + Walkthrough by DungeonForgeMC:
Confirmed working in 1.8.1. My last test failed because it only works in straight lines, not on tracks in the form a big 5km long question mark. :D
@Mick_Mack
I'm a bit late to the party, but this is working fine on 1.7.9.
If you check the github, you'll see this uses only the Bukkit and WorldEdit APIs, it shouldn't break with updates.
I wish this server was updated, I am needing a minecart plugin that speeds the carts up on my server because minecart trains are our main mode of transportation.
Hi zant95,
I'm using your plugin on my server for more than 2 months and so far had not needed any more, but now I have some improvements in my mind.
Perhaps these commands can help a lot:
/speedcarts check: it tell you the speed of the rail and if is it normal or not
/speedcarts list [num page]: it show you the coordinates of all rails that are changed by you, you can list 10 per page, this is really helpful to find the rails that has been changed.
/speedcarts remove [id number]: An extension to the command "remove" so you can add an identifier of the rail to avoid having to travel far to remove any modified rail.
I hope you can make these improvements, thank you very much in advance.
@zant95
Thank you, zant95, for all your help. We decided to ditch SimpleCarts altogether and stick with your plugin. It's exactly what we were looking for in the first place and wish it was here when we started.
This works great! I set up a several thousand block long undersea tunnel, following the sea floor as close to natural as possible, so there are alot of ups and downs. With your "auto" feature, I had not 1 problem. The cart travel both ways(it's a double track, one for each direction) and never skipped a beat.
You are awesome, my friend! Keep up the excellent work!
@Kohlerslave
You can use /simplecarts or edit "aliases: [sc]" in the plugin.yml of Speedcarts.jar.
@zant95
Just wanted to let you know, I put this on our hosted server and it works great. Only problem I ran into was with SimpleCarts. It's been abandoned, but it's still working. Has nice features for chests and dispensers, but we want Speedcarts for the custom speeds. Only conflict was the commands using /sc. SimpleCarts has no commands, but grabs /sc for it's versioning. Is there a simple way around this? We are planning to just do away with SimpleCarts, but would love it's functionality in the meantime until we can fix our many minecart stations.
Thanks for an awesome plugin and for all your help. It is very appreciated!
@zant95
That could be it. Unfortunately, I can't run 7 on my MacBook Pro, as I'm only running OS X 10.6.8. I'll have to try it on our hosted server and see if it works there. I wanted to try it on our test server first and make sure I knew how it all worked. I'll push it to our host and see what happens.
Thanks for all your help. I'll let you know what happens.
@Kohlerslave
What version of Java are you using? It seems that you are using an old version of Java. Try to install Java 7.
@zant95
Thanks for trying, but I still get the same error. This time I tried it with only WorldEdit and Speedcarts in my plugins folder. I really don't know what's going wrong. I so want this plugin to work, as the plugin we're using for carts now has been abandoned and this seems so much better anyway. Here's the current console output:
http://pastebin.com/Qk6Yt4Gg
Let me know if there's any other info I can give you to help with this.
@14manj01
Thanks for the review of my plugin. Now I'll link it in the main page ^^
Created a tutorial video for the plugin,
@Kohlerslave
I'm sorry, it's my fault. I forgot to add "WorldEdit" as depencendy in "plugin.yml". I'm uploading a new version [http://dev.bukkit.org/bukkit-plugins/carts/files/4-speedcarts-1-3-4/].
Thanks for report the problem!
@zant95
Yeah, but for some reason it tries to load speedcarts first. Is there a way to force it to load in a particular order?
Here's the full console when I start it up:
http://pastebin.com/YrKNCaJ1
@Kohlerslave
Are you using WorldEdit?
Can't get this to load. When I put it in my /plugins folder and launch the server, I get this error:
07:58:24 [SEVERE] Could not load 'plugins/Speedcarts.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/gmail/zant95/Speedcarts/Speedcarts : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_5_R3.PlayerList.<init>(PlayerList.java:55) at net.minecraft.server.v1_5_R3.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:106) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:382) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.UnsupportedClassVersionError: com/gmail/zant95/Speedcarts/Speedcarts : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:249) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 9 more
Tried this with 1.5.2-R0.1 and 1.5.2-R1.0, with and without other mods. Hope someone can help because I really would love to get this to work.
Thank you for this plugin, just perfect Just add mysql data storage if you want to improve it.
@metalhedd
It's just the backup from the data on the disk. When you start the server, these data are copied to the memory in a hashmap and then you can work with them.
"Using a very efficient way to store the information (without requiring a database)"
it is a plain text file for each world, with each location on its own line. I was hoping for something more exciting, this isn't really better than a database or yaml file.
@CommodoreAlpha
Yes, the plugin allows you to alter the momentum, creating quicker routes with speeds over 0.4 or slower/"brake" routes if you set the speed to less than 0.4.