RailMiner
RailMiner is based on an old bukkit plugin RailDriver. It allows players to create a automated mining machine that will mine tunnels and gather resources for them. By default it consumes coal and all the required materials to make the road and rails, This can be disabled in the config.
The Miners require the following materials:
- 18-19 Iron blocks
- 9 Diamond blocks
- 9 Sticky pistons
- 4 Redstone dust
- 2 Dispensers
- 2 Furnaces
- 2 Repeaters
- 1-3 Chest
- 1 Sign
- 1 Lever
Layer One
The sign must contain the following lines:
- [RailMiner]
- Start
Layer Three
- Stone brick
- Iron ingot
- Sticks
- Redstone
- Coal
- Gold ingots
Protection System
To enable protection on your miner add [Protected] to the third line of the sign as shown below.
This will protect the miner from other people stopping it while it is mining. You can manage who can access your protected miners by using these commands:
- /railminer friend add <player> - Add a player to your miners
- /railminer friend del <player> - Remove a player from your miners
- /railminer friend list - Show who has access to your miners
Alias: /rm f
Permission: railminer.friends
Upgrades
Upgrades are placed in the center chest in the top layer between the pistons, they are used to improve the performance of the miner. Each recipe has a different crafting recipe that can be changed in the config, the default recipes are shown below.
Speed
Increases how fast it mines/moves
Fortune
Applies the fortune enchantment to a miner
Silk Touch
Applies the silk touch enchantment to a miner
Liquid Protection
Protect the miner from lava and water
Fuel Efficiency
Decreases the usage of fuel
Extra Storage
Allows for extra storage rather then throw the items on the ground
NOTE:
For extra storage the back two dispensers must be replaced with chests
railminer.reload - Allows user to do /railminer reload
<span style="font-size: 14px;">#Disable if you don't want Miners to consume coal enable-fuel: true #Disable if you don't want Miners to use materials inside chests enable-recipes: true #List of blocks that cannot be broken (IDs) block-blacklist: - "7" #Should miners stop at the empty spaces empty-spaces: true #Change mined blocks to a certain item e.g "16=263" changes coalore(16) to coal(263) #You can also define the amount of items it drops e.g lapisore drops multiable lapis, "21=351:4x5" #Ignored if miner has silktouch change-drops: - "16=263" #Coalore to coal - "15=265" #Ironore to ironingot - "21=351:4x5" #Lapisore to lapis (drops 5) - "73=331" #Redstone ore to redstone dust - "129=388" #Emerald ore to emerald - "14=266" #Goldore to gold - "56=264" #Diamond ore to diamond - "153=406" #Quartz ore to quartz debug: false</span>
<span style="font-size: 14px;">#Maxiumum amount of upgrades a miner can have (Odd numbers are better) upgrade-limit: 5 #Upgrade recipes recipes: speed: recipe: - "SXS" - "XNX" - "SAS" ingredients: #MUST contain AIR if you have empty slots A: AIR X: REDSTONE_BLOCK S: SUGAR N: NETHER_STAR result: "&cSpeed Upgrade" fortune: recipe: - "DXD" - "XNX" - "DAD" ingredients: #MUST contain AIR if you have empty slots A: AIR X: REDSTONE_BLOCK D: DIAMOND N: NETHER_STAR result: "&cFortune Upgrade" storage: recipe: - "CXC" - "XNX" - "CAC" ingredients: #MUST contain AIR if you have empty slots A: AIR X: REDSTONE_BLOCK C: CHEST N: NETHER_STAR result: "&cStorage Upgrade" silk: recipe: - "DXD" - "XNX" - "DAD" ingredients: #MUST contain AIR if you have empty slots A: AIR X: REDSTONE_BLOCK D: DIAMOND_PICKAXE N: NETHER_STAR result: "&cSilk Upgrade" efficiency: recipe: - "CXC" - "XNX" - "CAC" ingredients: #MUST contain AIR if you have empty slots A: AIR X: REDSTONE_BLOCK C: COAL_BLOCK N: NETHER_STAR result: "&cEfficiency Upgrade"</span>
<span style="font-size: 14px;">prefix: '&e[&5RailMiner&e]' invalidArguments: '&cInvalid arguments!' noPermissions: '&cYou do not have the required permissions!' minerIsProtected: '&cYou cannot use this miner!' reloadSuccess: '&aSuccessfully reloaded config!' alreadyRunning: '&cThat Miner is already running!' incorrectShape: '&cIncorrect shape!' foundEmptySpace: '&cFound an empty space! Stopping..' outOfFuel: '&cOut of fuel! Stopping..' requiresItem: '&cInsufficient items! Missing %item%' failedToMine: '&cMiner has encountered a problem! Stopping..' storageChestsFull: '&cYour miners chest is full! Stopping..' minerProtected: '&aMiner successfully protected!' failedToProtect: '&cFailed to protect Miner! Is it the right shape?' blockLimitReached: '&cYou have reached your block limit of %limit%. Stopping miner..' minerLimitReached: '&cYou have reached your miner limit of %limit%!' upgradeWhileRunning: '&cYou cannot access upgrades while the miner is running!' upgradeLimitReached: '&cYou can only have %amount% of upgrades!' invalidUpgrade: '&cMiner contains invalid upgrade!' noFriends: '&cNo one else has access to your miners.' alreadyFriends: '&c%name% already has access to your miners!' notOnline: '&c%name% is not online!' friendAdded: '&a%name% can now access your miners!' friendRemoved: '&a%name% no longer has access to your miners!' notFriends: '&c%name% does not have access to your miners!' friendsWith: '&aThe people that have access to your miners are: %list%'</span>
- GriefPrevention
- Kingdoms
- RedProtect
- Towny
- Factions (MassiveCore
Need help with the plugin? Click here to join my discord channel or post in the comments section!
Why does it put me " [RailMiner] Found an empty space§ Stopping "
when I turn on the machine?
it ses that is insufficient item stone brick needed
hey so im trying to get your rail miner upgrades to craft and they wont craft
Can you make a version of this plugin for minecraft 1.14.2?
please,it's a great plugin.
Can you make a version of this plugin for 1.14.2?
Please,it's a great plugin.
Will you reconsider releasing the source code, since there have not been any updates in over a year and it doesnt work on 1.13
Its a great plugin
Hello xX1bumblebee1Xx,
I am getting this error in my console. I am running MC version 1.12.2
01.10 09:15:44 [Server] WARN [RailMiner] Task #51777 for RailMiner v1.4 generated an exception 01.10 09:15:44 [Server] INFO java.lang.NullPointerException: null 01.10 09:15:47 [Server] WARN [RailMiner] Task #51777 for RailMiner v1.4 generated an exception 01.10 09:15:47 [Server] INFO java.lang.NullPointerException: null 01.10 09:15:51 [Server] WARN [RailMiner] Task #51777 for RailMiner v1.4 generated an exception 01.10 09:15:51 [Server] INFO java.lang.NullPointerException: null
You forgot to add a configuration for world disabling. Otherwise 4/5 plugin mate!
Hello xX1bumblebee1Xx.
Thank you for this very impressive plugin and for reading if you have time.
Some options perhaps to consider as new config settings, if I may please
suggest a few or if just 1, the one in blue :D?
Prevent surface strip mining.
Minimum X Y Z eye level to operate. A deep mining only option?
Tried to get a listener to do a "on right click block type sign with certain
text cancel action if above 45 eye level. " Nope! I give up :D
It is common for servers to allow long strip mines at deep levels but not so
cheerful at surface or just below surface levels I find.
Prevent mob spawning on/near rails in long strip mines.
Every 8 blocks place a torch or lay a glowstone block as part of the
track foundation so tunnels it digs dont fill up with mobs as players
venture nearby. Or use one of the redstone torches placed during
powered rail laying to also light a redstone lamp.
A world name whitelist or blacklist config addition would be excellent.
Per world permission file should do the job atm to limit this but it
would still be very handy.
No tracks option.
#49 "basic giant drill" option? Yes please :D!
You could clone this plugin to be a farming machine one?
One that does not modify the blocks below it so it glides over
potato, carrots etc.
block-blacklist:
- "7"
The blacklist is a great idea and will be used hopefully to provide some sort of basic
anti-grief fallback protection. We have factions and worldguard but use
Precious Stones, a very mature plugin with astonish abilities for personal
and server site protection. (If you could add an API hook to Precious Stones
field flags prevent-destroy or similar in the future that would be very handy!)
https://github.com/marcelo-mason/PreciousStones/wiki/Flag-Reference
https://dev.bukkit.org/projects/preciousstones
The excellent dev has managed the advanced protection plugin for ages.
The source is open and has an API advice section. It's a place block to protect
cuboid area with up to 210 different flags and utilities. Please consider adding
Precious Stones to the already impressive soft depends list for respecting
this protection type in the future while developing RailMiner.
A long safe block blacklist https://pastebin.com/2ZCmByyv
CoreProtect 2 logs.
#1 logger and roll back plugin for years.
When I tried to roll back the machine I built it did nothing... :D Dat's magical!
Also though, the blocks the machine broke were not rolled back or recorded.
VERY few plugins I have used over the years sneak past Core Protect.
This is good and bad at the same time. Mysterious though! Perhaps geting
RailMiner to notify Core Protect of block break events would add extra
assurance to servers wanting to roll back any mined areas.
(Frankly world edit can fix this in moments, any areas. Would still be cool though.) If RailMiner created a fake player then tagged all it mined and tracks laid as that player or the owner of the machine or sign? CoreProtect would probably be able to detect and log all RailMiner events from then on.
Log [RailMiner] signs. world, X Y Z, player name, time in console.
https://dev.bukkit.org/projects/signlogger
Check comments for 1.12+ update.
Example console entry:
[Server] INFO SignLogger: Jabbablock [ | [RailMiner] | Start ] [-57 4 25 Creative]
LWC chest issue/idea.
With LWC chests are by default automatically locked and added to the database
with XYZ location. Once the machine moves, this LWC database entry is void.
/lwc admin cleanup removes the ghost chest entry NP. If you could get RailMiner
to notify LWC where the chest had moved to it could then auto pick up all loots
with /lwc flag magnet true (the chest auto picks up items in a defined radius)
This would make the RailMiner very tidy. Zero left behind entities, collects
all it mines till chest full. Alternatively perhaps swap the chests for Enderchests
which are not normally auto locked by LWC, I think. I notice RailMiner is supposed to auto loot as it goes along, in the testing we did it was spraying
deadbush plants behind it when breaking grass, not picking them up?
Named Furnaces.
Enchanted furnaces/Slimefun Enhanced furnaces with databased XYZ locations when moved by RailMiner leave Ghost database entries. Letting a sand or gravel block fall in it's place then break results in the named furnace dropping instead. A "has no name" requirement for furnaces used in making RailMiners would probably fix this.
This plugin is too cool to not want to add because of potential facepalms with the above protection issues. (LWC moved chests, Precious Stones, Core Protect no logs.) NP. Thanks again very much for the cool industrial plugin and thanks for reading!
In reply to Jabberwockie666:
In reply to xX1bumblebee1Xx:
Never rush anything, or let it rush you!
One of my players had a suggestion: Is it possible to add an option which disables the rail laying part of his raildriver? Basically they just want to use it as a giant drill
In reply to robotnikthingy:
A few commends after using the latest with the fix for access supply chest running. Which it does fix. :-) I am running on 1.12.1 in a local environment only. I have been able to stop it in the wrong position a few times now. For some reason it leaves the diamond blocks extended while the pistons retract. Probably a redstone timing issue. Water can also wash away the redstone which can make it difficult to restore operation while the lava mechanic of surrounding itself in glass is almost totally correct. Also, I receive a "Missing Iron Ingot" error when I have really run out of Stone. It's working pretty good, now I've got to try running multiple ones in a single row staggered so the don't compete with each other. Now, if it would only spit out a crafting bench when it needs more stone bricks ;-) J/K.
In reply to Feondelia:
New bug: When the railminer runs out of materials, it stops, but when trying to access supply chest to refill, it shows this error: [RailMiner] You cannot access upgrades while the miner is running!
In reply to xH3LLRAIZ3Rx:
You should take over this plugin: https://dev.bukkit.org/projects/random-stuff
In reply to xH3LLRAIZ3Rx:
In reply to xH3LLRAIZ3Rx: