MinecartRouting
This is my first plugin and I hope you'll enjoy it. Please give feedback (espacially on usability and performance) and report any kind of bugs.
MinecartRouting
This plugin adds advanced features for minecarts like craftbook or MinecartMaia does. But it has an additinal options for automated routing of minecarts. You can define a destination and the minecart is routed to this destination by finding the shortest path to the destination.
Configuration
Quick HowTo
Place block
First place of one of the routingblocks defined in config and place a rail above:
- Booster (default: goldblock): boosts passing minecarts
- Brake (default: soulsand): braks passing minecarts
- Launcher (default: obsidian): launches a minecart in a direction, defined by signoptions
- Catcher (default: brickblock): catches a passing minecart if one of the signoptions matches
- Switch (default: ironblock): changes the direction of the rail, depending from signoptions
Place signs
Add signs (if the block needs) within radius (in every direction, also up and down) defined in config (default: 3), shifted in the direction which should be used as criteria for incoming direction. Options are passed from first line->last line. The first match on the options defines the direction. The format on the sign is [<option>:<direction>]
Available options:
- #<playername> : <playername> is riding minecart
- empty : no passenger in minecart
- player : a player is in the minecart
- mob : a monster or animal is in the minecart
- storage : it's a storage minecart
- powered : it's a powered minecart
- auto : directs minecart to his destination, if a destination is set and destination is reachable
Available directions:
- left / l
- right / r
- ahead / a
- north / n
- east / e
- south / s
- west / w
To give the block a name simply write on a sign in any direction on any line [name] and on the next line the <name> you want the block to be given.
Add block to database
Next you have to left-click while sneaking the RoutingBlock or the rail above with the tool-item defined in conig (default: woodenaxe). Then the block is added to the database with the information on the signs, so you can destroy the signs afterward.
Set destination for "auto" criteria
To set your destination for the "auto"routing option, place a sign with the first line [destination] and on the second one the <name> of your destination RoutingBlock or a # followed by the id (to get see "show informations") of the block. Then right-klick this sign and your destination is set. To unset your destination you have to right-klick a sign which has in the first line [reset].
Benefit from RoutingBlock
Now when a minecart passes over a RoutingBlock the options for the incoming direction (defined by the offset of the sign on creation) are evaluated and if there is a match the action of the block will take place (exception: booster and brake, they work without options).
Show informations of a RoutingBlock
If you right-klick a RoutingBlock or the rail above with the tool-item all informations are displayed in chat.
I search up Mob Catcher and get this WTF
@Arudinne
Nope it doesn't keep chunks loaded. I think this plugin does what your looking for: http://dev.bukkit.org/server-mods/minecartpermanence/
I haven't tried it with Traincarts, but it would likely interfere with signlink as it does many of the same things as this plugin.
Another question: Does this plugin keep the minecart chunks in memory? I'm working on a really log subway system and it would be nice if I could make it automated in such a way that it stays running even with no players logged in. Memory and CPU usage isnt likely to be an issue for my server.
@scandragon
In the new version you have to put a valid routingblock (inclusive blockid) in the config. Then you can place a sign beneath with 1. line [type] and 2. line the titel defined in the config. But it looks first for the blockid in config, so if there is another blockid defined in the config it will use this type of block.
@Arudinne
I don't know if they conflict. They should not but I will try it out.
Is the plugin compatible with train carts? It would be nice to have the booster and detection features.
That'd be nice.. I gave traincarts another go, and got it working kinda.
It lacks so much, like detecting if the carts are empty or who's riding.. I'd like to try yours, but my players won't be building railways anytime soon as my server is not ready for the general public yet. (updated 2 days ago, much to do now)
@scandragon
I did it for economic reasons, so that player first have to mine before they can create such a block. if you like I'll add a config option, so that you can place a sign under any kind of block with the name from config-file this block should be.
I don't understand why all the minecart automation plugins have to use certain blocktypes under the tracks.. Wouldn't it be enough to use signs under any type of block on which the tracks are placed like in TrainCarts? Unfortunately, traincarts isn't all that good, but the stations are working with any type of block under the rails
Im going to test it with 50 people when 1.0 comes out. Can you add a 1 more booster and a 1 more brake with boosts or breaks only half of the normal booster/brake? And a constant speed block and a ejector would also be nice :) Btw i have tons of ideas for a minecart plugin. And i relay need them for all the roller coasters.
@DaChaosCrafter
Did you get what I meant in my description? English is not my first language.
I hope you'll give feedback on performance on a large server, because I have only tested it on my own with 5 people.
You saved the Funpark Server! Since falsebook carts is broken, minecartmania sucks and train carts doesn't have block boosters you are now the nr. 1!
@robxu9
well it does, but not in the same way :) I'll create a video for better demonstration.
TrainCarts do this :3