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
Ok, this is wicked sick. I'm gonna instal it when I get the chance.
Back again,
about the drops, if you would let it the way it is all is fine for me, cause in times of silk touch and fortune a dropped diamond ore or redstone ore block is nice to simple pick it up and use the fortune pick on it to get the resources, even more then the TBM would spit out.
So for me it would be fine as it is with the drops, maybe add a config for this so you can change the drop from "like silk touch" to "normal".
Regards derkb
I Have Copied All Of The text Here Into An Issue On The Issue Tracker At Github. The Quicker These Bugs Could Be Fixed The Better Because The Digger Is Just To Resource Hungry ATM. Thanks Zackpollard
@zackpollard
Hi Zackp! These are a bunch of good requests. Could you post them as feature requests on the github issue tracker?
@derkb
I see your point about the resources. I thought I was doing a favour creating tracks with 2 ingots instead of 6, but I completely forgot about the multiple, oops!
I'm going change it to allow you to put rails and power rails in the chest directly, and if you have iron or gold then it will convert them to rails and power rails first at a reasonable multiple.
@derkb
Agreed. I think that there should be less resources used, since all the effort was made to gather the diamonds, and iron and pistons to make the machine...
Me again,
one point, you burn resources with this thing.
so for 1 track you burn 2 iron ingots and a stick, but for 6 ironingots and a stick you get 16 tracks by normal crafting, so that is a huge cut down on the iron part in here. So you nearly need 5 times as much iron ingots with the TBM then for normal crafting, not real good. Same goes for the booster tracks, there you burn twice the resources then normal. Should be changed. Maybe you can even put my other suggestion in, were you have to put down a workbench if you like to have tracks and without it no tracks get put on the ground.
Maybe you let the tracks be put in the chest like the other stuff, so that would make more sence i think.
Then the cobble, why not normal stone that is needet for crafting the bricks it is laying down? For me that would also make more sence to use then cobble.
So yes with some tweaking this will get a real nice thing to have.
Regards derkb
Excellent start! Just got this up and running and everyone loves it! I agree with all of zach's points for improvement. I may have to turn this off if it winds up being abused, but in the mean time, great work!
A Couple Of Requests And Bug Fixes (May Not Be Bugs, May Be There On Purpose... Lol)
Thanks I Realise This Is A Long List But Iv Put Them In Order Of Priority I Think (Maybe The Protected Regions One A Bit Higher) And I Would Really Apreciate It If U Could Get The First Few Done Because These Are Annoying Bugs. Apart From This AMAZING PLUGIN!!!!!!!! W...O...W ^_^ Zackpollard
@derkb
I have to say, I really like this idea. Also the choice to use a double chest, just so you can drop more materials in so you don't have to worry about it so much. But more so, the custom shape and ability to lay blocks to stop any lava and water from seeping in, it really messes up with the mining. Atm, I'm only using it in creative mode, awesome for making a subway type area. Start it and leave it, check its fuel later. [Might try turning off fuel temporarily.]
@globnobulous
Ok I understand :] And sorry for "my english", I'm french '
@JoneKone
Thanks man! I found that just using the machine with no supply requirements gets boring quickly. But with resource requirements, you basically follow along behind it as it breaks into mines and caves, go off on a resource gathering tour, then head back and load the machine up for the next go. Much more interesting!
@SirMonsterSlayer
No it does not, though those would be interesting features to add.
@Almathy
No, there are no permissions for use of the machine. There are two reasons.
The first is that I figured if someone went to all the trouble of mining 81 diamonds and building 9 sticky pistons then that was all the permission they should need :)
The second (and real reason) is that the way I detect RailDriver activation in the code makes it very difficult to figure out which player actually threw the switch. It's impossible to apply permissions without knowing the player.
Will it respect towny/worldguard regions ?
Is it possible a permission for the use of the machine? :] Otherwise, I installed the plug!
@globnobulous
yes i restarted my server afterwords
I like the way you think,
What I mean is the way you need to spend actual resources! In doing a machine that does this.
Most plugins just do stuff.. And admins are YES!! this will ease peoples gameplay and after awhile players have Huge amounts of diamond blocks that just stack up and players are bored cos they can't do anything with them..
Ouh and minecart mania chest controll had HUGE issues.. with dubing stuff.. Disable it.. And while you are at it.. Disable the whole MCmania.. cos :( it is laggy as hell..
This pluging is absolutely amazing!
Nice plugin, only point for me so far, i have to remove all the redstone torches cause i use MinecartMania and the way the powered rail works is switched by it.
But maybe you will add custom shapes to this, like the ones in LazyRoads (maybe compatible with its saves so the editor for it could be used)
So this with custom shapes and i would be happy.
But nice work so far, hope you will add some features to this over time and it will be a real great plugin.
Regards derkb
Edit: Or an idea, custom shape of the mashine itself defines the tunnel size and maybe a workbench in the first layer were the track/tracks should be layed down. I am also thinking about a full build tunnel so the walls get also build up to prevent lava or water to flood the tunnel. This plugin gets me so much ideas ;-)