CartDispense
CartDispense - Dispense Carts On Rails Automatically
Version: v0.10
Description
Dont you just hate it when you find a train track that you want to ride and you dont have any minecarts to ride it. You could build one from iron or you could spawn one if you are an admin. Not anymore! With this plugin there is no need for making or spawning minecarts, simply press the button and a minecart will be spawned on the track automatically!
Updated to work with powered-rails and detector-rails!
Video
Features
- Click the stone button beside the dispenser and a minecart is automatically placed on the track.
- Works with standard rails, powered rails, and detector rails.
- Works in any orientation but there must be a track infront of the dispenser and a minecart inside the dispenser.
- Works with rails bellow the dispenser.
- Placing another dispenser on the other end of the track will automatically remove the minecart and place the user out of the cart.
Download
Changelog
v0.10 - 26/07/2011
- Updated for 1337, plugin now works with any world.
v0.8 - 26/07/2011
- Added @N4th4 changes for the CB 1000 update. Plugin should be working fine now.
v0.7 - 19/06/2011
- Added support for using powered minecarts and storage minecarts in dispensers.
v0.6 - 03/06/2011
- Fixed bug where minecart would throw errors if the world was not named world. Fixed now, you (should) be able to use any world name now.
v0.5 - 01/06/2011
- Added support for the removal of minecart on collision with another dispenser.
v0.4 - 31/05/2011
- Added support for spawning minecarts on a tracks below the dispenser(can add it for above too if you want)
v0.3 - 31/05/2011
- Fixed error with minecarts spawning even if there was no cart around
v0.2 - 30/05/2011
- Updated to work with detector-rails and powered-rails
- Removed pointless debug message
v0.1 - 29/05/2011
- Initial Release
Very nearly! Expected behavior is always derived from default behavior. So if a dispenser if full upon collision, nothing special should happen. (shouldn't disappear) It is then possible, with a little ingenuity of the player, to use a powered rail to bounce the cart over to another dispenser until it finds one that has room.
I have this fancy redstone cart holder system that is fantastic and scalable, but I want something like it at all stations, but without having so many active entities sitting around.
It's great that someone is working on it. Yesterday I was setting up an Java IDE to code it myself, but those are so cumbersome. I don't know how people stand it.
@RealityIntern
I've done this on my fork (need to tidy up a few other things and test a bit more before sending a pull request), so if the config is updated, it pulls the cart from the dispenser inventory (if empty, nothing happens), and carts taken off tracks are put into the dispenser that the cart collides with. If the target dispenser is full, the cart is just "lost".
Is that sorta what you were expecting it to do?
This really needs an option for finite carts, as others have requested.
@Destinator8
And FYI
@Destinator8
Sorry, do you mean R6 or 1.2.3?
1.1-R6 should be alright... I'll test it when I get home from work against an R6 test server, but when I put in the pull for the bugfix I also adapted the event handlers to use the new listener setup, which means it should work with R6 (I don't think its using any other deprecated methods). If its causing errors you'd be best off posting a ticket with the details.
If when I test it I find it breaks horribly, I'll see if I can find time to fix whatever is broken if vcazan doesn't first :)
As for 1.2.3... I'll give that a whirl as well, but again I'm not expecting it to go horribly wrong (due to what API calls are employed), but won't know until I try.
Can you please update this for 1.2.3 R6? It looks awesome.
How about the configurable need of minecarts inside the dispenser, so people still have to gather the iron and refill and stuff? If it had this possibility I'd definitely use it.
You should update it ;]
Look above on the right side under recent files here you can find the link to 0.11 ;)
where is the download for 0.11?
@bootscreen88
No problem! Thanks for your hard work. I have been very busy and could not update the plugin. Everything has been merged.
i don't know why, but recompile solves the problem. Here you can download my recompiled version: http://dl.dropbox.com/u/4401431/Bukkit/CartDispense/CartDispense.jar
@vcazan: when my download bother you i will delete it.
sorry i must correct my answer, i testet it with an old bukkit version. the new version works correctly. bukkit has fixed an issue with the collision and because of this i remove the fix from vcazan =)
@DickieH
R4 introduced a fix which CartDispense coded around to avoid. The end result is now the removal of the cart when colliding with the dispenser doesn't happen (Although if I've read it right, if you stack 2 dispensers it will work again). As its quite a simple fix, and I find this plugin useful I've forked and fixed the plugin (at least it works for my purposes) I've sent a pull request for vcazan (I couldn't see a fix in github, but there may already be one so mine can be thrown away :)
Any known issues with CraftBukkit Recommended Build (1.1-R4) ??
The Dispender doesn't take back the minecart?!
I love this mod. The only problem is that u can spawn unlimited carts without consequence.
Connecting iConomy(Vault/Register) would solve this. Any chance you can make this happen?
@WillMillerAK
No problem, feel free. Let me know if you have any ideas.
Looks, good, I'll probably post a YouTube video on this later! Maybe you could incorporate permissions with this? I don't know, just an idea, great plugin though!!
YouTube: PixelPartyMC
Follow me on Twitter: @PixelPartyMC
Website: PixelParty.info
Server IP: server.pixelparty.info
Server Map: Click me
@bootscreen88
Thanks for the suggestion, I will try and look into that.
Hey, thx for this nice plugin.
Is it possible to get iConomy 6 support? So that every push on the button costs money?
@Almathy
Hey Almathy, You are correct, as a quick fix for the new CB version I pushed out a patch that only works in the world "world". I am working on making it work in any world.