Drills
Description
Drills is a plugin that brings a whole new idea to how we mine. Drills allows you to make your own drill that mines blocks directly under the drill and adds those blocks/ores to your inventory. Drills has an easy setup which enables users to create a drill very simply, as it's hard to find diamonds etc. with the drill. Players can use the drill parts over and over again in a new way instead of mining in caves. See "Starting the Drill" to find out how to make one.
Permission
The player only needs one node for creating the drill which is:
- drills.use
Starting the Drill
As stated before, the drills are very easy and simple to create.
Items needed:
- 2 Iron Blocks
- 1 Cobblestone Wall
- 1 Redstone Torch
FOR FURNACES
- 1 Furnace
- Fuel types, specified in config
Place Fuel Types in Fuel Slot
After you have your drill looking Like the video, you can right click the fence to start!
Stopping the Drill
To stop your drill you can do the following options:
- Left click on the fence of your drill
- Leave the Game
- Break Any of the drill parts, including the Drill's bit
How it works
- Drills mines 1 Block every 2 Seconds (default) But, it can be customized to any speed.
- After Breaking 1 block you'll get an information message based on what you mined. If it's in the 'Minables' list (in the Config) you are then given that block or pieces of that block when it was broken
- Otherwise, if it is on the 'UnMinables' list, the block will be broken and replaced with a drill bit but no block nor pieces will be given to the player.
- Finally, if the block is not on the 'Minables' or 'UnMinables' list the drill will stop and display what block it could not break.
- After a successful breakage of a block the drill will replace that block with the drill bit; either if it was minable or unminable.
- Drill will be quiet if set to "quiet-mode" in the config and more options below in "Config Editing"
FOR FURNACES
- If you have furnaces enabled in the config, you can place a furnace on either side of the drill on top of the Iron blocks
- If they are enabled they will be required otherwise the drill will not run
- The drill will burn one piece of fuel every X minutes set in the config (defaultly 1)
Config Editing
Edit however you'd like to the following features
- WarmUp time (Before the drill starts)
- Minable Blocks (Ones that give you the block / block pieces)
- UnMinable Blocks (Ones that dont give you the block but are still mined)
- Replacement Material. (When cleaning up)
- Speed
- Logging
- EXP adding on whatever blocks you'd like
- Quiet mode
- Furnace Editting and toggling
Config to look at here: http://dev.bukkit.org/server-mods/drills/pages/config-yml/
Installation
Installation of Drills is very simple just follow these few steps:
- Download the latest version (Choose WorldGuard or regular)
- Drag and drop to your plugins folder
- Start, reload, or restart to create files
- Edit plugins/drills/config.yml to your liking (Optional)
- Save edits by restarting/reloading
- Enjoy :)
Dependencies
- If you download the WorldGuard version you need the latest version of WorldGuard Found here: http://dev.bukkit.org/bukkit-plugins/worldguard/
- If you did not download the WorldGuard version there are no dependencies
The difference is that if you have the WorldGuard version the drill will stop mining when it reaches a WorldGuard claimed block.
AntiGrief/Anti Troll Measures
- As soon as a player leaves the drill stops itself and replaces all drill bits with the Replacement Material (Regularly Dirt)
- Once a drill stops it will clean itself by removing all drill bits and replacing them with the Replacement Material.
- Whenever a player attempts to exploit the drill by getting drill bits, it will shut down and tell the user there is a break in the drill bits.
- A warmup timer adds to any possible grief measure.
- Only one drill can be made at a time per player.
- The drill will stop when hitting a WorldGuard region. (With the WorldGuard Version)
ToDo
Maximum of 1 drill per time
- Add optional chest for drill to place objects in.
Source
Want to critique or just look at Drill's code for a better understanding?
Please see: My Github
@swarley_83
Thanks a bunch for the feedback. I had originally thought that it would be good to have everyone know that the drill burned a piece of fuel because there is currently no animation. But, I'd be glad to edit that and add an animation in the next update. For your second question, the "retract ability" will really just remove the drilll bit from the ground after a player is done mining. Chests are also soon to come in a matter of time.
Nice plugin, love it and wait for the chests !
I have a simple question : why the message "Your drill burn a piece of fuel" still pop when i ask "Quiet-Mode: true" ?
Thanks a lot for this feature.
I think drill will remove after complete, maybe a option in future for replace "cobbleWall" by "air" ?
( sorry for english i'm french )
V. 2.0 Approved, Video updated!
Finished drill powering by furnace, just need to add a few details like colors and it will be off to approval!
@Clinot
First, what version are you using? And second, I'm surprised that it's referring to a chest when there shouldn't be any code for a chest. I mean I tinkered with the method before, but I've never posted any chest updates to it YET. Can you post the full error?
When i start the drill it gives this error:
4:48:42 PM EDT CONSOLE: [SEVERE] Could not pass event PlayerInteractEvent to Drills v1.2 4:48:42 PM EDT CONSOLE: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_5_R2.block.CraftBlockState cannot be cast to org.bukkit.block.Chest
XSilverFalconX sorry I had not seen your answer. Thank you to answer me and glad that you understand my English ^ ^. I think a furnace that the idea is good. Now you have to decide ;-)
@deleted_8741347
Please complete the following steps to make sure everything is working fine...
1. Make sure it's hitting a "registered-block" (see above)
2. Make sure it's fully built at all times.
3. Change the speed of the drill to 1 so that it speeds up to mine more blocks.
4. Check console for errors; if errors caused by the plugin report all the errors back here.
In the meantime, I'll be testing the code.
This looks like an awesome plugin, but it just isn't working for me. I build the drill and I get [Drill]: Drill Registered! but then nothing happens.
wtf
@Obscurmtimat
I understand what you're saying and I think that would be a good idea, as mentioned before. I think that this is very possible and I probably will add it as a option in the config. Do you think that it should just minus the needed material from the player's inventory or out of like a furnace.
Sorry for my english, because i'm french and i'm bad in english.
Congratulation for this plugin ! that 's a good project.
But i have one question. are there the opportunity to pay a contribution for use this machine (cobblestone,iron...).
Or create a systeme of usury of material (iron).
I hope you understand my english, good luck with your project, I eagerly awaits a response
@souvuelle
hmm, still throwing a Java class error, try downloading the new update when it approves and we'll go from there
After updating Java....
17:21:43 [SEVERE] Could not load 'plugins\Drills.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: Fail ed to remap class me.xsilverfalconx.Drills.Drills at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:207) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager. java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager .java:230) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.ja va:248) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.<init>(CraftServer.java:22 6) at gm.<init>(ServerConfigurationManager.java:121) at hn.<init>(DedicatedPlayerList.java:19) at ho.c(DedicatedServer.java:148) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:724) at fy.run(ThreadMinecraftServer.java:16) Caused by: java.lang.ClassNotFoundException: Failed to remap class me.xsilverfal conx.Drills.Drills at org.bukkit.plugin.java.PluginClassLoader.remappedFindClass(PluginClas sLoader.java:344) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:265) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:243) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:196) ... 9 more Caused by: java.lang.UnsupportedClassVersionError: me/xsilverfalconx/Drills/Dril ls : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.remappedFindClass(PluginClas sLoader.java:332) ... 17 more
@souvuelle
ah, sincerely sorry. I built the plugin off Java 7 and your currently running Java 6. All-in-all this is mostly my fault due to the fact that I should've built it off a lower Java in the first place because even that would be compatible for later builds. I'll upload ther new plugin ASAP, but in the meantime if you would like to update your Java version you shouldn'tt have any problems. :)
sorry for the delay mate...
22:30:49 [INFO] This server is running CraftBukkit version git-Bukkit-1.4.7-R1. -b2624jnks (MC: 1.4.7) (Implementing API version 1.4.7-R1.0) 22:30:49 [SEVERE] Could not load 'plugins\Drills.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionErro : me/xsilverfalconx/Drills/Drills : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader. ava:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManage .java:230) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.j va:239) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.<init>(CraftServer.java:2 7) at net.minecraft.server.v1_4_R1.PlayerList.<init>(PlayerList.java:55) at net.minecraft.server.v1_4_R1.DedicatedPlayerList.<init>(SourceFile:1 ) at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.ja a:104) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.jav :399) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile: 49) Caused by: java.lang.UnsupportedClassVersionError: me/xsilverfalconx/Drills/Dri ls : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoade .java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader. ava:173) ... 9 more
Wish i could have this plugin for tekkit :(
@Grinjr
lots of great ideas, thanks for the feedback :)
@souvuelle
can you please post the error? And v. 1.2 is the latest
I'm getting an unsupported class version error with the latest drills plugin on my Bukkit server Is there a new version out beyond 1.2 for 1.4.7 minecraft and 1.4.7-R1 Bukkit?