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
Today's update re-broke the rail driver.
@m0rkeulv
You, are simply Awesome! Thank you so very much!
@m0rkeulv
That's great. Now all you have to do is make a pull request to me on github and I can merge your changes. There should be a big button near the top of the repo page that says "Pull Request". Click it!
@starferret3
My version uses the same materials and construction as the orginal so just see the documentation above.
(Operation materials: Cobblestone, Sticks, Gold, Iron, Redstone, Coal.)
you can read more about my tweaks here: readme
Can you just add a list of materials you need to run it?
@globnobulous
@BONNe1704
Source:https://github.com/m0rkeulv/RailDriver
Binary: https://github.com/m0rkeulv/RailDriver/wiki/Downloads
@m0rkeulv
Im interested xD
I could probably upload my changes if anyone are interested. Is there any way to fork or clone your repository ?
@m0rkeulv
Do you have any plans to push your changes? I have some time to work on this now.
Bukkit changed the direction enums and so the validation routine won’t work until you change them so they match. Operating the machine would also crash your game once it tried to break stuff like coal, Redstone and stuff that would change from a single block to multiple items. might also mention that in my experience the machine would run forever on charcoal as the remove coal routine didn’t have any propper validation but then again it could have been my own fault as I’ve been modifying the code quite a bit in the version i use.
@TheLoneWolf85
I know that this plugin worked before, I know the most about it, but now it's not working... My theory is that the craftbukkit version is messing the codes up, and then that can make the building of the machine really weird... ...If that's not the case, then I'm clueless:(
Just surprised my players with this, and Mojang broke it :( I wish I understood the coding, so that I could help with it... alas, I have to wait for somebody smarter than I, to step up and fix this xD.
"Seems so far that the plugin 'starts up' with the server, however placing the blocks in the set 'grid/pattern' that calls for the Design... is not recognized perhaps it's not running any checks against the block placement?" -(friend said that, so I'm partially lost)-
by the way they changed the look of the chest. It might have caused this problem. The 2nd lever does not turn it on. if you click the first one this pistons move forward once and stay open.
Made 2 miners. The do not start. Let me know what information is needed from me to help you out.
Hi everyone. I will not be able to put any time into debugging these issues until the new year. If anyone would like to fork the code on github themselves and look into it I'd be happy to merge any bugfixes you're able to create.
It would be awesome if there was a way to limit who could run these machines via a permission.
I'm not getting any response from the plugin at all. It shows as a loaded plugin, and typing /help will list it in the game, but that's all.
When I build the machine I get no dialog or messages of any kind. It's like it doesn't recognize the structure. I've been quite thorough in following the directions posted while building.
I've been trying to get it working... The plugin is loading fine, and the console commands work, but I still can't get it to recognize that I've built a rail driver. I get no messages, no warning, and no behaviors from the levers other than what you would expect with no plugin (the top lever pushes the pistons).
I've uninstalled every other plugin. still no change.
I am using MC server version 1.4.5 with bukkit build 2529
@globnobulous i can create one that works great for me however none OP's that make there own it keeps saying there is an obstruction. when i build one that works others cant turn it on because it tells them the same thing that there is an obstruction.
Any chance I could talk you into a version without the need for diodes? i have this sneaky suspicion that they are the culprit behind the crashing, and the machines hanging up. Digging out beside the machine and watching them, I see a lot of erratic behavior from them, and right after they start messing up the pistons end up creating double piston arms. :/ I'm also open to testing in any way you need.
TIA
ADDENDUM: Found another bug/incompatibility. Seems having dynmap running on the server causes it to hang up the machine constantly. If dynmap is busy rendering elsewhere in the map (say a full render is running) the machine runs fine. As soon as it finishes it's task and starts updating the chunks that are changing (where the machine is) the machine hangs every move. Still having erratic issues with the diodes now and then, looking forward to what you might think on that.
For those of you who have worldguard, disabling the physics for gravel & sand will solve the client crashing (at least it has for me so far) that you guys/gals are experiencing.
ADDENDUM 2: Your directions are off by 90 degrees counter clockwise, and it seems there is another direction based bug. All rail drivers headed west (21:03:59 [INFO] [RailDriver] Player gicon activated NORTHBOUND raildriver 18829) crash the client non-stop, as well as east. However south and north bound ones seem to work with no issues.
craftbukkit 1.4.5-r0.2 build 2488. raiddriver & worldguard only as plugins.
@bradso123
"my players cannot create one that works."
Can you create one that works? Can your players activate one that you've built? What exactly is the problem?
More details please.