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
Just been playing around with this plugin, love it, works great, doesn't conflict with the other 30 plugins we have (including ones like traincarts).
Cooperates with LWC and worldguard correctly :D Word of warning to all, make sure you're not in OP mode as that will affect how the thing works when you switch it on.
Possible idea/request - I've noticed that the the plugin tells when it's trying to mine obsidian, etc. Would there be any chance of adding the ability to add/remove block id's that can or can't be mined by the drill?
*edit* some of my players have asked if there could be an option to not lay tracks, i've no idea myself how hard/easy it would be to alter the plugin to do so, but i'd said i'd pass on the comment :)
This is a great plugin; fab job making it. Is the water and glass mechanism implemented in 0.5 or am I doing something wrong?
wow! it is working! but it crashed my game a lot:(
@m0rkeulv
@globnobulous
Just pointing out, I am using 1.4.7 R0.1 with RD 0.5 and I'm getting the following spam flooding my console, when a person activated their raildriver, and it went through the air making a makeshift bridge 1 block over water...
Seems harmless, just spammy. :) Thought you guys would wish to know.
http://pastebin.com/VZVZLS2i
People are able to use these to grief towns..... It doesnt stop when it gets to the border of a town it keeps going. Could you maybe have it stop when it starts to mine into town plots?
I love this as well but I am also having the glass wall's problem with lava.
Here is my config http://pastebin.com/f4mZQ8BT (though I believe it to now be back to the default)
I am using CB 1.4.7R0.1 and RD 0.5R1
@upintilldawn
i can confirm this as well
Raildriver is working great. But for on thing. that is the glass wall for water.. Raildriver says it has hit something when it hits water and stops.. I have the water set to true. Is that right of wrong?
You sir are a god, this plugin is simply amazing!
RailDriver-0.5 is now available for download.
playing on 1.4.7 plugins look fine everything is working except that when i activate the raildriver, the piston get activated like they would normaly do then nothing.nothing move and the piston stay still
any way to get this to work or if it's because it need to be updated? if so can you update it? because it's just so worth it
i installed m0rkelv download.. rail drive started working after words. just to let you guys know.
i am running bukkitgui ver 1.4.2.252 with craftbukkit ver 1.4.7-r0.2 can not get it to work. Starting to think one for the plug ins i have installed is keeping it from working.
commandbook essentials mulitverse-core worldedit rail driver
Also sorry for the last post. Will do that next time.
i never got around to push the "glass-walls for water" changes, but everything else should be there, including glass walls for lava.
@m0rkeulv
I just merged your changes and have uploaded a new jar (it will take them a while to publish it). It looked like that merge contained all your new features including the glass wall stuff. Is that the case?
Here's a new version that will use glass-walls to prevent water to ruin your rails.
download
@upintilldawn
i would recommend using pastebin.com it makes stuff easier to read and you don’t fill up the entire comment section. As for your problem, it looks like the machine somehow managed to pick up an Air-block, (didn’t even know that was possible). What version of bukkit are you running? I’d recommend avoiding development Builds, they can cause strange things to happen. Its looks like its running fine on my server (1.4.7 R0.1 beta), but I’ve only tested it for about 30 mins or so.
It will lay over water.. That i know.. I my self would like ti if it could make a glass line tunnel for when laying in water. I do wander though if it could be possible to change the config file so you can lay say nether brick instead of cobble stone. Starting to wish i knew how to work on jar files.
@m0rkeulv
hey by chance could the raildriver also be set to go through water?
Was wandering if it would be possible to make this make walls if it comes to a open body of water.. I would hate for a tunnel when mining to flood. Also can i make the raildriver wider and taller by 1 to 2 blocks? I was wandering. If so that means i could line the tunnels with a look with out mining out the block i would need to.
Just to let you know i am running the latest development build. 1.4.6-r0.4 (#2591)