Power Hammer (WIP)
The Power Hammer is a special hammer for builders,
it allows you to swap blocks without having to break and replace them.
Crafting
The Power Hammer can be crafted at the basic workbench,
for almost the same cost as an iron hammer.
Usage
Rotating blocks
You press right-click on a block to rotate it horizontally,
and ctrl + right-click to rotate it vertically.
Same way, when you press the ability 3 (default: R) while looking at a block,
it reset the block rotation to its default state.
See the following video for a demonstration:
https://youtu.be/szX_ifRMnMM
Swapping blocks
When left-clicking on a allowed block,
the Power Hammer will swap it with the first different allowed block in the hotbar.
This works with any block defined allowed by the game:
- planks
- stairs
- slabs
- fences
- etc.
Here is a short demonstration video:

Configuration
You can defined the allowed blocks in the configuration file,
it's use regular expressions to match block id :
{
"SwapSet": [
"Wood_.+_(Decorative|Ornate|Planks)",
"Wood_.+_Beam",
"Wood_.+_Stairs",
"Wood_.+_Planks_Half",
"Wood_.+_Fence",
"Wood_.+_Fence_Gate",
"Wood_.+_Roof",
"Wood_.+_Roof_Flat",
"Wood_.+_Roof_Hollow",
"Wood_.+_Roof_Shallow",
"Wood_.+_Roof_Steep",
"Rock_.+_Brick(_(Decorative|Ornate|Smooth))?"
]
}
Future Plans
- (required) Create a v2 with a custom UI to select block cycles.
- (done) Add the ability to swap stone blocks and other types.
- (done) Create a configuration to customize swappable block types.
- (done) Add block cycle (default hammer behavior) on right-click.
- (done) Preserve block orientation when swapping.
- (negligible) Add a custom 3D model for the Power Hammer.
- (negligible) Add custom sounds when using the Power Hammer.
(abandoned) Add a brush feature to swap multiple blocks at once.- (done) Display a message/popup in case of error (no block in hotbar, etc.).
- (done) In creative mode, allow swapping without changing quantity.
- (done) In creative mode, don't drop durability when swapping.
- (done) Take item from the inventory instead of the hotbar when swapping.
- (required) Support stairs specials orientations (corner).
- (done) Add the ability to rotate blocks (no limitation).



