PowerMining
PowerMining
This plugin adds 2 new item types to the game: Hammer and Excavator
These were inspired by mDiyo's Tinker's Construct items of the same name
Source is included in the jar file and can also be found here.
Items
Both the Hammer and Excavator will dig in a 3x3 area around the target block
They take the block face in consideration to determine the breaking direction/pattern
You can sneak while breaking the block to make it work like a normal pickaxe/shovel
The Base Item determines what can be mined/dug and they won't break blocks if they are going to be destroyed and not drop anything
Hammer
- The Hammer is a mining tool much like the Pickaxe, and uses that as a base item for it's crafting
Excavator
- The Excavator is a digging tool much like the Shovel, and uses that as a base item for it's crafting
Crafting Recipes
Basic Shape:
M MIM M
Where:
M = Material
I = Base Item
Base Item | Material | Result |
---|---|---|
Wooden Pickaxe/Shovel | Wood Log | Wooden Hammer/Excavator |
Stone Pickaxe/Shovel | Smooth Stone | Stone Hammer/Excavator |
Iron Pickaxe/Shovel | Iron Ingot | Iron Hammer/Excavator |
Golden Pickaxe/Shovel | Gold Ingot | Golden Hammer/Excavator |
Diamond Pickaxe/Shovel | Diamond | Diamond Hammer/Excavator |
Commands
At this moment, there are no available commands for this plugin
Permissions
As of version 2.6.2, the permissions were rewritten to give a much deeper control over what can/can't be done.
- powermining.* : Grants all permissions (default: op)
- powermining.highdurability: Allows player's Hammers/Excavators to use only 1 durability per use (default: true)
- powermining.craft.* : Allows players to craft the Hammer and Excavator tools (default: op)
- powermining.craft.hammer.* : Allows players to craft all hammers (default: op)
- powermining.craft.hammer.wood: Allows players to craft the Wooden Hammer (default: false)
- powermining.craft.hammer.stone: Allows players to craft the Stone Hammer (default: false)
- powermining.craft.hammer.iron: Allows players to craft the Iron Hammer (default: false)
- powermining.craft.hammer.gold: Allows players to craft the Golden Hammer (default: false)
- powermining.craft.hammer.diamond: Allows players to craft the Diamond Hammer (default: false)
- powermining.craft.excavator.* : Allows players to craft all excavators (default: op)
- powermining.craft.excavator.wood: Allows players to craft the Wooden Excavator (default: false)
- powermining.craft.excavator.stone: Allows players to craft the Stone Excavator (default: false)
- powermining.craft.excavator.iron: Allows players to craft the Iron Excavator (default: false)
- powermining.craft.excavator.gold: Allows players to craft the Golden Excavator (default: false)
- powermining.craft.excavator.diamond: Allows players to craft the Diamond Excavator (default: false)
- powermining.craft.hammer.* : Allows players to craft all hammers (default: op)
- powermining.use.* : Allows players to use the Hammer and Excavator tools (default: op)
- powermining.use.hammer.* : Allows players to use all hammers (default: op)
- powermining.use.hammer.wood: Allows players to use the Wooden Hammer (default: false)
- powermining.use.hammer.stone: Allows players to use the Stone Hammer (default: false)
- powermining.use.hammer.iron: Allows players to use the Iron Hammer (default: false)
- powermining.use.hammer.gold: Allows players to use the Golden Hammer (default: false)
- powermining.use.hammer.diamond: Allows players to use the Diamond Hammer (default: false)
- powermining.use.excavator.* : Allows players to use all excavators (default: op)
- powermining.use.excavator.wood: Allows players to use the Wooden Excavator (default: false)
- powermining.use.excavator.stone: Allows players to use the Stone Excavator (default: false)
- powermining.use.excavator.iron: Allows players to use the Iron Excavator (default: false)
- powermining.use.excavator.gold: Allows players to use the Golden Excavator (default: false)
- powermining.use.excavator.diamond: Allows players to use the Diamond Excavator (default: false)
- powermining.use.hammer.* : Allows players to use all hammers (default: op)
- powermining.enchant.* : Allows players to enchant the Hammer and Excavator tools (default: op)
- powermining.enchant.hammer.* : Allows players to enchant all hammers (default: op)
- powermining.enchant.hammer.wood: Allows players to enchant the Wooden Hammer (default: false)
- powermining.enchant.hammer.stone: Allows players to enchant the Stone Hammer (default: false)
- powermining.enchant.hammer.iron: Allows players to enchant the Iron Hammer (default: false)
- powermining.enchant.hammer.gold: Allows players to enchant the Golden Hammer (default: false)
- powermining.enchant.hammer.diamond: Allows players to enchant the Diamond Hammer (default: false)
- powermining.enchant.excavator.* : Allows players to enchant all excavators (default: op)
- powermining.enchant.excavator.wood: Allows players to enchant the Wooden Excavator (default: false)
- powermining.enchant.excavator.stone: Allows players to enchant the Stone Excavator (default: false)
- powermining.enchant.excavator.iron: Allows players to enchant the Iron Excavator (default: false)
- powermining.enchant.excavator.gold: Allows players to enchant the Golden Excavator (default: false)
- powermining.enchant.excavator.diamond: Allows players to enchant the Diamond Excavator (default: false)
- powermining.enchant.hammer.* : Allows players to enchant all hammers (default: op)
The group nodes also have alternate names:
- powermining.craft.all
- powermining.craft.hammer.all
- powermining.craft.excavator.all
- powermining.use.all
- powermining.use.hammer.all
- powermining.use.excavator.all
- powermining.enchant.all
- powermining.enchant.hammer.all
- powermining.enchant.excavator.all
Please note that the enchant permission affects both enchantment tables and anvils (when applying books or trying to combine 2 power tools)
Installation
Simply put the jar file into your plugins folder
Configuration
Right now the config.yml file has the following values that can be changed:
- useDurabilityPerBlock
- Description: Determines if durability is reduced with each broken block
- Default: False
- Version: 2.2
- Minable
- Description: Define the blocks that can be mined by the hammer, and which quality of base pickaxe is needed (these are set according to the information on the minecraft wiki)
- Version: 2.7.5
- Type: Nested list
- Diggable
- Description: Define the blocks that can be dug by the excavator
- Version: 2.7.5
- Type: Simple list
To add something to the Diggable list, just add a new list row to the existing list:
Diggable: - NEW_BLOCK
To add something to the Minable list, you need to add the target block as a new list row, but you also need to specify a list of pickaxes that can mine it:
Minable: - IRON_BLOCK: [STONE_PICKAXE, IRON_PICKAXE, DIAMOND_PICKAXE]
In case you want all hammers to be able to mine the specific block, use [any]
It's important to note that even if you only want one pickaxe to be able to mine it, it needs to be inside the list (look at the obsidian definition)
Anti-Grief
This plugin accounts for terrains protected by:
- Version 2.4
- GriefPrevention (tested on v7.8-beta)
- WorldGuard (tested on v5.8)
- Version 2.6
- Towny (tested on v0.84.0.7)
- Towny (tested on v0.84.0.7)
Spotlights
Quick spotlight showing the basic crafting and usage of the tools by VariationVault
Well explained spotlight by FeerBreezy (Spanish)
Spotlight by AbsintoJ (Brazilian Portuguese)
Observations
I've contacted mDiyo on minecraftforum and he has no problem with this plugin being inspired by his tools.
This is my first plugin/mod as well as my first Java program, there might be bugs in the code. Let me know if you find any.
hi
thank you allot :)
saves me alot of coal for getting cleansone out of my diggings ;)
@thief001
Due to a small logic error the enchantments weren't being applied correctly, it should be fixed in v2.7.7, you can get the newest source from bitbucket, curse might take a bit to approve the new binary download though.
hi,
any chance to make enchantmants work on all blocks the utils get used?
esp. for getting cleanstone or coal in blocks, to save inventory space....
I got it into an essential kit. I just had to put the item lore exactly as u had it with italics and color and all. Maybe in the next update you should add an option in the config to change the lore without taking away the 3x3 mining ability.
@bloodyshade
Thank You for the quick reply! You can change the lore on the pickaxe and it will still work but not the shovel. So you may need to do something with the pickaxe so when you change the lore it doesn't work, so it's not exploitable. Great plugin regardless! By the way, is there a way to add this pick into essentials kits? Like so i can use /kit hammer and it will give the user a hammer already made?
@BrandonBreh
This is by design, the code uses the item lore to determine if the tool is a power tool, using lore editing mods will make this exploitable.
If you rename the lore on the shovel then it won't work. Fix plz
@nobleblob
I do plan on doing that eventually, though I've hardly had any time lately due being back at work and my crazy sleep schedule. I'm holding off on implementing anything new for now as I might not have the required time to properly test it.
Once I manage to get more time to devote to this plugin, I'll be implementing this and also the feature requested by MinecraftAdmin.
I love this plugin but would it be possible to make to configurable the amount of blocks you mine.
I.e
2 x 2
4 x 4
Etc
Thank you. Something like this could work too.
@MinecraftAdmin
Hi, changing the lore will bypass the crafting, yes.
I thought about changing the verification method to make it like that, but that would break currently created tools, not sure if the community would like that, I may change it and release a beta version and see if people prefer that instead.
@bloodyshade
Hi again.
I currently allow my players to change item lore, would they be able to exploit it to create Power Tools bypassing crafting completely?
If so, what are the chances of making power tools be recognizable by colored names instead? (that cannot be created using anvils)
Awesome. Thanks for the clarification. You rock.
@TarmacFFS
The useDurabilityPerBlock option is a boolean value, meaning either true or false.
When it's set to true, it consumes 1 durability per block broken, meaning 9 total if you successfully dig a 3x3 area, which is much like individually mining each block cost-wise, but all at once.
I don't have plans for a chainsaw tool (or to be more in-line with TC's tools, a lumberjack axe) as of this moment, but it's not a bad idea, so I might consider implementing it in the future.
@bloodyshade:
Thanks so much for the quick reply. Do you know what the appropriate value for useDurabilityPerBlock would be in order to keep it in-line with the crafting cost of the standard tool?
Also, when are you going to include a chainsaw that cuts all the wood in a tree? :)
@xSIlentzOpTiMuS
This wouldn't be too hard to do, but I don't want to end up having to maintain different custom versions of the mod (I'm sure more and more people will start requesting different versions if I start doing that). Usually you can easily customize plugins for full access using "pluginname.*: true" in your permissions file, although the exact permission should be easily found on the plugins' page.
@TarmacFFS
The configuration option useDurabilityPerBlock is kind of meant to be used in these cases, since it makes the tool wear out much faster, which in turn creates a need to spend more material making new ones.
Softcoding the crafting recipes would be possible, but would require a good amount of new configuration options like shape recipe and identifiers for each pick.
I may work on this, since I actually prefer having things softcoded, let's see :)
It would be really nice to be able to control the crafting recipes for these. I personally feel they're entirely too cheap for a server where you're using an economy, so it would be great to be able to require 8 material plus the item, or even require blocks instead of single materials.
Any chance on this happening?
Hey I Was Wondering If You Could Send Me A Version Of This Plugin That Allows Everyone To Use The Tools Because i Have Other Plugins That Would take To Long To Add To The PermissionBukkit.
@ruinedworldcom
I've never really looked into texture packs, but from a few searches I just did, I don't think it would be possible with bukkit alone. Bukkit doesn't really allow you to create new item types, as that would also require client-side modding, though I'm not sure it's possible to create textures that change based on NBT data alone.
Do we have the ability to make custom textures for these tools so they look slightly different then regular pick and shovel, or could you add the ability to do that? Or is that not possible with bukkit plugins? Thank you