NeXTQuarry

NeXTQuarry adds quarries to your server, without having your players required to have any mod installed. They can have several sizes & upgrades.
Note: I love to hear it when people run my plugin, so if you run this on your server, feel free to drop the ip in the comments, or send it to me by PM, and I might come take a look :)
What are they?
They are machines that dig out a big area for resources. These allow the player to go do other things while the machine mines for them. As convenient as it is, it also comes with some drawbacks of course. They are quite expensive to build, and require coal as fuel to be able to run. They won't do anything without it. Without any speed upgrades, they are also quite slow. The plugin tries to keep gameplay as balanced as possible.
Awesome review by TwixPVP (Thanks guys!):
Find more videos & reviews by clicking here! (More languages too!)
Usage Data:

Warnings & Notices
As with any plugin that performs blockchanges: BACK UP YOUR WORLD! The world changes made by this plugin are not reversible yet by the plugin itself. Please manage the permissions of this plugin with care, and watch out to who you give them.
Data usage notice: This plugin DOES collect anonymous usage data. This is toggleable, so if you do not approve of this, you're able to turn this off. The data collected is used to present the following information: http://mcstats.org/plugin/NeXTQuarry.
Update notice: The plugin DOES automatically update by default. This can be turned off in the configuration file.
Dev join message: This plugin CHANGES my join message. If you do not approve of this, you are able to turn this off in the configuration.
Commands
/nextquarry - Gives information about the plugin, and about your permissions as a player.
/nextquarry items - Opens an inventory with all NeXTQuarry items
/nextquarry craft - Shows the recipe book for all NeXTQuarry items
Supported Plugins
Block Protection
NeXTQuarry will take block protection into account from the following plugins:
- WorldGuard
- Factions
- Residence
Block Logging
NeXTQuarry will manually log block changes made for the following plugins: (for rollbacks)
- CoreProtect
Get the sauce!
Source code: Github Repository
Configuration
You can find the Configuration file in the NeXTQuarry folder inside your plugins folder, which should appear after the first start of your server with the plugin installed. The file is called config.yml.
All configurable options are documented right in the configuration file. If you have any questions, feel free to ask!
Permissions
- nextquarry.user.* - Gives the player all user permissions. -Enabled for everyone by default-
- nextquarry.user.tier1 - Allows the player to place tier 1 quarries. -Enabled for everyone by default-
- nextquarry.user.tier2 - Allows the player to place tier 2 quarries. -Enabled for everyone by default-
- nextquarry.user.tier3 - Allows the player to place tier 3 quarries. -Enabled for everyone by default-
- nextquarry.user.remove - Allows the player to remove quarries. -Enabled for everyone by default-
- nextquarry.user.edit - Allows the player to edit quarries. -Enabled for everyone by default-
- nextquarry.user.craft - Gives access to /nextquarry craft. -Enabled for everyone by default-
- nextquarry.admin - Gives the player admin permissions. -Enabled for ops by default-
Admins can break or edit quarries, no matter if it belongs to them or not. Users with the remove/edit permission, may only remove/edit quarries that belong to them if private quarries are enabled in the config.yml file. Admins can place quarries in worlds where it's not allowed, and can place unlimited quarries. The nextquarry.admin node also gives access to /nextquarry give.
Recipe time!
Quarry: Tier 1

This is a tier 1 quarry. It is 18 by 18 blocks, and digs a hole of 16 by 16 blocks.
Quarry: Tier 2

This is a tier 2 quarry. It is 34 by 34 blocks, and digs a hole of 32 by 32 blocks.
Quarry: Tier 3

This is a tier 3 quarry. It is 50 by 50 blocks, and digs a hole of 48 by 48 blocks.
Fuel Injector

Right click any quarry with this item, to open its fuel bay, and insert coal!
Quarry Wrench

Right click any quarry with this item, to open up the upgrade slots, and insert your upgrades!
Speed Upgrade

With this upgrade, your quarry will become faster! (but run out of fuel faster as well). Max. 3 per quarry.
Chest miner upgrade

With this upgrade, your quarry will mine the contents, of any chest it finds! Nice for looting dungeons! Max. 1 per quarry.
Fuel Finder Upgrade

With this upgrade, your quarry will automatically put the coal it finds in its fuel bay, if there is room. This way it will hopefully run for longer without refueling! You will mine less to no coal though. Max. 1 per quarry.
Fuel Efficiency Upgrade

With this upgrade, your quarry will last longer on the fuel it has. It will consume less, and do more work instead. Max 3 per quarry.
Smelter Upgrade

With this upgrade, your quarry will automatically smelt ores it finds. It uses the same amount of fuel a normal furnace does. This efficiency can be increased using the fuel efficiency upgrades. Max 1 per quarry.
Liquid Miner

This upgrade allows the quarry to fill any empty buckets in its chest with liquids it finds. If there aren't any, or if there is no room, the liquid will just be lost instead. Max 1 per quarry.
Cup of coffee
If you like this plugin, please consider buying me a cup of coffee! Donate via PayPal! (You can do so by clicking the "Donate" button in the header on the top right of this page. Thanks a bunch!)
Awesome people who supported the plugin:
- Kreezxil
- TheAlmightyLlama
- Matecraft
-
View User Profile
-
Send Message
Posted May 20, 2013@Frazew
Nice. I don't think I'll be merging that into NeXTQuarry, as I believe different item names across servers could cause some confusion, but if you want to use a custom version on your server, that's fine ofc :P that's what open source is for after all!
I'm glad you managed to resolve your issues with the quarry files yourself, too bad that something caused it to misfunction :/
-
View User Profile
-
Send Message
Posted May 20, 2013I don't really know how github works so I don't know if you will see the changes I've made but I've just added the functionnality to change names and lores.
Here -> https:github.com/Frazew/NeXTQuarry/commit/5235a04c7d6615b3d68f93c967d7d8bbc764802f
-
View User Profile
-
Send Message
Posted May 20, 2013Ok, I haven't found the problem for now and I won't continue my research. Instead, I used a simple cron plugin which saves all the quarries files under another folder every minute and copy them back at the server start. I used too a plugin which allows you to reload any plugin while the server is launched, controlled too by the cron plugin.
Thank you for this awesome plugin.
-
View User Profile
-
Send Message
Posted May 19, 2013@BeMacized
Err, don't know, I'm still having issues with my own craftbukkit version... I'm looking toward this but as you said, I don't know how NeXTQuarry could have problems because of new IDs.
-
View User Profile
-
Send Message
Posted May 19, 2013@Frazew
Hmm, I don't see how id changes can mess with the quarries files. Just the tools & upgrades could be messed up. But if that was the solution for you, I guess it's alright. Would you mind telling me what plugin/mod was causing NEXTQuarry to fail? I might be able to add support for it to prevent such things from happening again.
-
View User Profile
-
Send Message
Posted May 19, 2013Ok, I've found the problem, I was runnning my own craftbukkit version with some new blocks... I think there was a problem with the quarry files because of the ID changes, I will try to debug this myself.
-
View User Profile
-
Send Message
Posted May 19, 2013@OtherLucker
1st feature: I guess that would indeed be more convenient, but I'm trying to keep my quarries closer to the buildcraft equivalents. The quarry would have to move too with the drilling head.(otherwise it would float, a bit unrealistic, as far as realism goes here in minecraft). If that were the case, it would make operating the quarry quite hard.
2nd feature: I do agree on the crafting recipes being a little too cheap. I might turn down fuel efficiency, or make all crafting recipes require a diamond pickaxe instead of what they use now. Making the crafting recipes configurable seems a bit difficult, but I'll definitely increase the price people need to pay to craft/use a quarry.
3rd feature: Yes. I'll most definitely change the way the arm moves. I know it's a bit unrealistic to see it popping from 1 side to the other in one go. I did look into entities before to give the quarry arm smooth movements, but this seemed extremely difficult to do, not to mention that it would probably cause much lag on servers running quite a few quarries, because of all the entities. I'll make the animations better, but if you're really looking for smooth movements between blocks, I'm afraid you'll have to look for the quarries in buildcraft, requiring mods.
If you still have any questions, feel free to ask them :)
-
View User Profile
-
Send Message
Posted May 18, 2013I would love to have three more features to this plugin:
-The quarry block would be the block above the drill instead of off the corner.The quarry would have to an odd number wide, but then the player knows how to position their quarry.
-Customizable crafting recipes (Personally I think the recipes are too cheap, the quarry easily pays itself back)
-Better animations (Instead of going back to the other side, the drill would go back and forth. I also heard that the blocks can be turned into entities as of 1.5, blocks can become entities, would this make the movement of the drill smoother?)
I hope I don't sound like I'm asking for too much, and this is already an amazing plugin, exactly what I was looking for.
-
View User Profile
-
Send Message
Posted May 18, 2013@BeMacized
Thank you for your answer, I'll try to find the error myself, maybe there's a conflict between your plugin and another one.
-
View User Profile
-
Send Message
Posted May 18, 2013@Frazew
Hmm. Could you try removing the config.yml, and have it generate a new one? If that doesn't solve it, it must be an external factor. The only way my plugin removes those files, is when a player physically destroys a quarry block. Never are all quarries removed at once. (Which could be a nice feature to add now I think of it)
-
View User Profile
-
Send Message
Posted May 18, 2013@BeMacized
Ok so, no way, it is still removing my .nxtb files... :(
-
View User Profile
-
Send Message
Posted May 18, 2013@BeMacized
Ok, I will !
Thank you very much for your help and your plugin !
-
View User Profile
-
Send Message
Posted May 18, 2013@Frazew
I do have to say that I don't currently support the craftbukkit development builds. Just the beta & release ones. Could you maybe check if the issue persists when using Craftbukkit 1.5.2-R0.1? (The beta release)
-
View User Profile
-
Send Message
Posted May 18, 2013@bear2759
The fuel injector & wrench is indeed an update issue. I can't auto update the configuration file with the automatic updates, without having users lose their settings. It can be fixed by deleting your config file and have it regenerate.
I'll definitely look into the contains block method. I had no idea that was causing most lag, so thanks for bringing that up to me :) I probably used a very inefficient method, which I'll have fixed in the next version, hopefully xD
-
View User Profile
-
Send Message
Posted May 18, 2013hi mate, just been troubleshooting and it would appear, that for me at least when my auto update occured from 1.5.0 to 1.5.1 my fuel injector & wrench borked. if anyone else has an issue where you cant use the quarries, just replace your fuel injector & wrench.
on another note, I've been looking at what parts of the code hit the CPU the most. at the moment, I can either run 2x tier 1 or 1x tier 2. haven't been game to try a tier 3. anyway, the part that's taking up almost 50% of my java CPU time, is ..entities.quarry.containsblock which according to java visualVM is being called twice every tick. perhaps there's another way to approach the task you're using these to perform?
honestly I wouldn't have a clue yet, havent had a chance to look at your code yet so you may be doing it the best way possible... just wondering if another way of thinking might make a huge performance difference. :)
-
View User Profile
-
Send Message
Posted May 18, 2013@BeMacized No problem, I'm running craftbukkit 1.5.2-R0.2 and I have NeXTQuarry version 1.5.1. Would you like me to give you my plugin list ?
-
View User Profile
-
Send Message
Posted May 18, 2013@kreezxil
Awesome. I'll make the saving interval configurable in the next version :)
@Frazew
Hmm that's odd. May I ask what version of NeXTQuarry you are running, including the version of CraftBukkit you're running it with?
-
View User Profile
-
Send Message
Posted May 18, 2013@Frazew
What CB version is your server on?
-
View User Profile
-
Send Message
Posted May 18, 2013@BeMacized
Working great for me now!
However, now I have a question:
I would like an option to turn it off too?
Sample console outpout: http://pastebin.com/p4mK77QB
-
View User Profile
-
Send Message
Posted May 18, 2013Hi ! Firtsly, I want to thank you for this awesome plugin ! But I'm still having a recurrent issue, evrey time I stop and restart my server, all the .nxtb files under the "quarries" folder are deleted. Because of that, all my quarries stop working every time I stop my server and the only way I have to recover them is to copy the .nxtb files, start the server, paste thoses files and then reload the server. That's such a big problem for me, I don't have any errors showing up in the server console.
Thank you very much again.