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.
@Dunkthat013
Please check the permissions section of this page, it will list all of the existing one you can change.
For more information on how to set them up though, I'd recommend checking the wiki.
Personally, I use PermissionsBukkit here, it's easy to setup and suits my needs.
Diamond pickaxe also iron tried both but mined only 1x1 stone, how can I set permissions thanks for quick respond!
@Dunkthat013
What is your setup like? What were you trying to mine?
Also, remember to set the usage permissions correctly, otherwise it won't work.
I made the hammer but it only mines a 1x1 area how can I fix this problem?
Video Tutorial on the Plugin
https://www.youtube.com/watch?v=Y-Fgj-XMdvs
Credits: (AbsintoJ/PowerMining)
@bloodyshade
Thanks for the quick reply ! :)
MCPC+ did the job - thanks a lot
Ps. Gr8 mod, now that it works ! :P
@smerow
Not sure if this works with MCPC+, never really tried, but it's not a priority on my list.
(I'm assuming you're using MCPC+, since that's the only way I know of running Forge + Bukkit mods/plugins together).
In case you're just running Forge, then it will not work, as this is a bukkit plugin.
About the updates, the latest version was released only 3 days ago, so it's pretty up to date.
@bloodyshade
Will there be an update of/to this mod soonish ?? - haven't played for ages and didn't use mods before I guess it's not updated, since I can't get it to work.. I even tried to go in the code and hardcode changes (Yes - I'm a programmer) - but still no luck :(
* * * HAVEN'T MODIFIED OR ADDED ANYTHING TO MOD * * *
Any suggestions ?? Hope to hear from you asap ;)
Regards Smerow
Ps. I'm on a mac atm running MC through DireWolf20 mod pack, which I added your mod to through the client and manually
@bloodyshade
Alright! Thanks for replying so quick and letting me know!
@Funkey666
I will as soon as bukkit for 1.7 is considered more stable.
Hey, your plug-in looks awesome! but i was just wondering if you are going to update it to MC 1.7.4?
This bug is not critical for me now, because players a far away from snow and have to levelling for a long time before they can use this tools :) But thanks for your attitude!
@SimSonic
I can add that permission, yeah.
About the bug, 2.7-fix1 shouldn't have that problem anymore, are you sure you are using the latest version?
EDIT: The latest version appears to be badly broken, I'm working on fixing it and will upload a new version ASAP.
Another idea.
Allow to minimize damage for tool (ignore useDurabilityPerBlock = true in config) by assigning some permission like powermining.highdurability or etc. What do you think?
P.S. I've found a bug: excavator vs snow on the ground does a lot of snow but snow isn't disappear.
Super! Thanks a lot! I'm starting to use these changes immediately!
@SimSonic
Okay, just finished implementing it for version 2.6.2, they also all default to OP now.
I'm editing the project page to reflect the changes.
@bloodyshade
In general, server's admin can easily assign these permissions to players. For my pseudo-RPG server I want to separate users with different possibilities, for example one can build them, other can use them, third can enchant them :) Look at my prev. comment.
powermining.<action>.<tool>.<material>, where <action> can be craft/enchant/use/*, <tool> can be hammer/excavator/*, <material> can be wood/stone/iron/gold/diamond/* All true only for op, perfectly from my point of view :) But I do not insist :)
@SimSonic
True, I did forget to set powermining.use as children, already uploaded the fixed plugin.yml.
About the permission, it should only be an OP default if this somehow affected server management IMO.
This is a tool mod, if players wouldn't be allowed to even use the items, then it becomes pretty pointless. hehe
@bloodyshade
Very fast! Thanks a lot!
I think powermining.* should include all subnodes but now you forgot powermining.use node. And in my opinion there should be a common consideration that all permission nodes should be true only for op by default.
P.S. For the later versions I have found some possibilities in my mind:
P.P.S. I've generated recipe pictures for me, use them if you want:
http://minecraftrecipedesigner.com/creations/33988.png
http://minecraftrecipedesigner.com/creations/33991.png
http://minecraftrecipedesigner.com/creations/33989.png
http://minecraftrecipedesigner.com/creations/33990.png
http://minecraftrecipedesigner.com/creations/33992.png
http://minecraftrecipedesigner.com/creations/33993.png
http://minecraftrecipedesigner.com/creations/33994.png
http://minecraftrecipedesigner.com/creations/33995.png
http://minecraftrecipedesigner.com/creations/33996.png
http://minecraftrecipedesigner.com/creations/33997.png
@SimSonic
Yes, this was already fixed in newer versions, unfortunately the files were not approved yet.
About the usage permission, I will add that, should be easy enough.
EDIT: Usage permission implemented in version 2.6.1