Automatic Minecart (Boat and Horse)
Automatic Minecart
What does that plugin do :
- Automatic Minecart spawn minecart on a rail, a horse or a boat with the player on it
- Automatic Minecart remove it when the player left this minecart, horse or boat / or quit the game / or die.
- That's all : it's a lightweigt plugin without configuration...
Why do i code this plugin
It was for my server. I was looking for a way to allow visitors that don't have minecarts to visit the world faster by using Minecarts on previouly created railways. It's usefull also for players who build rollercasters.
I add (a white) Horse and Boat recently, to freely visit the world and oceans.
Why i don't use dispensers
Minecarts, and living entities cost a lot of server consumption. I don't want that players create loads of minecarts to use railways. And on an economy server you can't give minecart to player without impact on the economy. Horse is rare. Autohoses diseapers as soon as you live them.
What about crafted Minecart, boat or owned Horses
Crafted Minecart are not destroyed when players left them. So they can be used as usual. Same rule for the horse, and the boat.
How to
Minecart :
Simply click on the rail (or powerred rail)
Horse, Boat and Minecart :
Use the command
/autominecart <horse|boat|minecart> <playername> <velocity_x> <velocity_y> <velocity_z>
Use the command with a command block :
for example : throw the player in the air in a boat in the x direction. If he falls in the water, the player will deal no damage ;-)
/autominecart boat @p 2 2 0
Teleport
Teleport a player with his vehicle (minecart, horse or boat)
/autominecart tp <playername> <world> <x> <y> <z>
API (plugin developpers)
Test if a player is riding an autominecart
public boolean isAutominecart(Vehicle vehicle)
Tp an autominecart
public boolean tpAutominecart(Vehicle vehicle, Location location)
Test it !
Join my server, rails, horses, and boats are in front of the spawn : BlocksAndGold Minecraft Server
Next Feature
- Destination programmation
A short Video : http:youtu.be/UP86UnIZCcU
Download
here : http:dev.bukkit.org/bukkit-plugins/autominecart/files/
Bugs ?
Please report if you find some !
If you want to be notified of the next update or follow my other works on bukkit or MCPE https://twitter.com/BlocksAndGold
@TheNewEmeraldMiner
I've not planned to add a depedency to ieconomy because i don't use it. I'll see if it's possible to do it easily
@barneyboo
OK Rails + Powered Rails ? Sure i can easly add it. I'll do it for the 1.6.4
This is a very cool plugin, thanks! I was wondering whether it would be possible to extend support so that right-clicking powered rails also spawns carts? This would make it much easier to integrate with my existing rail network. Cheers!
I love this plugin! I wanted to use SignCart but it was out dated. Is there anyway you could make it so when a player clicks on a sign they are put in the cart? And also when they click on the sign they would have to pay?
Thanks
@Bubily
I can add some permissions if you need it. But i've not planned to add any depedencies to plugins (because i don't need it for my server) ;-)
What are the permissions for this plugin? I would like, if possible, for this plugin to work only in certain WorldGuard regions (eg. city area) but not in non-region, vanilla land
@Lakuspakus
I can confirm you that if you have a minecart in hand, the game behaviour is vanilla.
:)
@blocksandgold
When they click the rail with a cart in hand they are instantly TPed into the cart and going along on the tracks. When they leave the cart, the cart "drops" out of the rails. For many redstone-machines, there needs to be one or more minecarts placed on the rails and running on the rails without someone in them. One example is Minecart-hoppers, automatically collecting from chests while the players does other things.
It could be that i have overlooked something, but it seems I am being TPed into the minecart whenever i place one, and the minecart pops off the rail when I leave it. Will test again later today.
@Lakuspakus
If you have a minecart in hand, and if you click on the rail, you place it on the railway as a normal cart (it's not an autominecart, it's a "normal" minecart). Crafted Minecart are not destroyed when players left them.
That should works as this ;-)
Players still need to place minecarts on rails for various redstone-needs. Could you add an option for crouch-placing a minecart the good old way?
@blocksandgold
last bukkit dev 1.6.2 fixed the bug, so i've updated the plugin to 1.6.2... :) And added a initial velocity to the minecart.
If you want it for 1.6.1 please wait. Some changes comes with 1.6.1 version. Now it's shift to quit the minecart. I have to update the plugin.