RailDriver
RailDriver
This plugin provides a player with the ability to build a coal powered mining and railroad construction machine!
NEW FEATURES
- RailDriver has same break/build permissions as the user who started it
- Respects WorldGuard regions explicitly
- Respects all blockBreakEvent intercepting anti-grief plugins
- Won't break bedrock or obsidian
- Stops all user owned RailDrivers when user logs out
- Creates proper drops for mined blocks
For Players
Construction
To build one, the player must assemble a specific pattern of rare blocks.
- 9 X Diamond Block
- 9 X Sticky Piston
- 19 X Iron Block
- 4 X Redstone Repeater
- 2 X Redstone Dust
- 2 X Switch
- 2 X Dispenser
- 2 X Furnace
- 1 X Chest
The first layer
of blocks is layed out like so, with sticky pistons facing forwards and furnaces facing backwards:
The second layer
begins shifted one block forward from the first. Notice the four Redstone Repeaters all facing forwards:
The second layer is completed
with dispensers facing backwards:
The third layer
starts with a mirror of the bottom layer. Note the helper cobblestone block that will need to be removed:
The power row
is composed of the Redstone and Switch to drive the pistons. If you throw this switch it will activate all the pistons, but make sure it is in the off position before attempting to start your RailDriver!
Complete
your RailDriver by adding the backwards facing chest and the activation switch:
Operation
Once built, the player can activate the RailDriver simply by throwing the switch on the rear. A RailDriver will dig a three by three tunnel, laying a foundation of stone brick with a single rail in the middle. Every eight blocks, the RailDriver will lay a Power Rail with a Stone Brick column on either side, a Redstone torch on one to power the rail, and a regular torch on the other for light. To keep the thing going, the player must provide a steady supply of coal and building materials. All of this happens in two operational phases.
Drilling Phase
When activated the RailDriver will immediately enter the Drilling phase. Fuel for this phase comes in the form of coal or charcoal which must be loaded into the furnaces. Every drilling phase will consume 1 coal from each furnace (2 coal total).
The diamond drill bit will piston into any blocks in front, drilling the next stage of the passage, and ejecting the removed blocks from the rear dispensers.
Normal Laying Phase
Once drilling is complete, the RailDriver enters the Normal Laying Phase. Supplies needed when laying the foundation and track must be in the chest above the switch at the back of the machine. These supplies are consumed when the RailDriver moves forwards 1 block. During a Normal Laying Phase, the RailDriver needs 3 cobblestone, 2 iron, and 1 stick loaded into the chest.
The RailDriver will use the supplies to create the required items, lay them down, and move forward by one block. You'll notice that due to the RailDriver's extremely efficient design, it is capable of creating a Rail with only 2 Iron Ingots. Amazing!
Power Laying Phase
Every 8 blocks, the RailDriver will enter a Power Laying Phase instead. To complete this phase it needs 9 cobblestone, 3 sticks, 2 gold ingots, 1 redstone, and 1 coal loaded into the chest.
The RailDriver will use these supplies to create the power rail and the power columns.
For Server Admins
Installation
Download the jar here. Drop it in your plugins directory and go!
Configuration
Standard config.yml in the RailDriver directory. Plugin reload is required for config file changes to take effect
requires_fuel option determines if RailDrivers require fuel and supplies in order to operate. When set to false, an active RailDriver will not consume coal from the furnaces nor supplies from the chest.
Commands
rd_stock: description: stock the player inventory with all required blocks for building a RailDriver permission: RailDriver.rd_stock usage: /rd_stock [player] rd_devkit: description: stock the player inventory with a developer kit of tools permission: RailDriver.rd_devkit usage: /rd_devkit [player]
Permissions
RailDriver.rd_stock: description: allows player to execute the rd_stock command default: op RailDriver.rd_devkit: description: allows player to execute the rd_devkit command default: op
@globnobulous
Apologies, I've been out of the loop for the past few days too :)
Fork'ed, updated, and pull request sent :)
Tested and working against 1.2.5-R1.0
@globnobulous
Hello! I happened to find your github, but you may want to post the link on this page!
@fyrenth
I've been out of the loop for a while. Thanks for fielding questions here. Do you have a patch you could send me? Or even better, just make a push request to git-hub?
I really cant wait for this to update!! Looks Awesome!
also, would there be a way to implement a permissions for allowing/disallowing player to use or manipulate these? Its a desired function for my server but if not oh well. Awesome idea!
Minecraft 1.2.4 Recommed Update has cameout :D
I realy miss this plugin :D
plz update i love this plugin but im using 1.2.4
Ya... and the team that updates plugins cant do it b/c licensing issues... i rlly hope this gets updated tho
@icecube45
As an experiment, I've already updated, and tested it.. at least what I have works under 1.1-R6 (haven't tried 1.2.3 yet, but its probably alright). But I don't want to do anything more without globnobulous' okay.
if this doesnt get updated? can someone else update?
Please update this great plugin!
Waiting on update 1.2.3 :) Plugin is realy great
@neoobs
If a piston is stuck, flip the switch on top (between the redstone) on and off, and check that it extends the pistons and then retracts them all, if the piston is extended when it tries to start moving, that explains why you are getting that message. The extended piston will fail the Driver structure check.
I assume theres no other redstone charge source near that particular piston?
I'd be happy to have a look at the situation for you if you want (we can sort out when via PM) but I'm not sure how much I can help with aside from doing the checks I expect you're already doing.
@neoobs
What mods do you have running? I have tons of mods, and no issues with this mod. Running on R4.
@fyrenth
It hasn't hit water, in fact I tried it on the surface without it having to actually mine, just lay track and it still doesn't work. The problem appears to be that one of the pistons gets stuck. In order for me to reset it I have to fix the stuck piston by breaking it and then placing it again. It is rather weird, but I can show you on a server if you are willing to debug.
@neoobs
Check your RailDriver. The only time I've encountered this is when the Driver dug out a block and let water wash over it, removing the redstone.
From what I've seen that error occurs when the code tries to check the RailDriver's structure, I'd check your RailDriver over carefully again against the diagrams here and try again.
I've had it merrily churning away at tunnels without a problem, just performing maintenance as it goes (such as when it released water) :)
@globnobulous
I notice that you've committed changes to the RailDriver early Jan, but nothing since, I wondered if you'd prepped against the new Event Listener API for 1.1? I know how time can be hard to find to work on projects and would like to help out with code if you are lacking time and are okay with it (don't want to just fork without an okay due to license :)). If you've got everything in hand though, I look forward to the next release. I find your plugin an interesting and enjoyable addition to my server and would like to see it continue from what I see as a great start :)
@danielboyz
I have all the supplies listed and then some, I also have it set to not need supplies.
@neoobs
not enough supplies
Sadly, I keep getting a message that says "Raildriver malfunction during advance phase!" Do you know why this might be happening?
This looks just awesome! Is it still worked on? Will it work with 1.1-R3?
any chance on having an ingame command to turn the rail creation on/off ... then it can have a secondary purpose as just a drill