AutoToolSwap
by zachphul
AutoToolSwap, a Fabric client mod, changes the hotbar slot to the tool suited to the block being mined or the mob being attacked.
What it does
When a player mines a block or attacks a mob, the mod looks through the hotbar for a suitable tool and selects it. Tool choice follows the target type, the tool's tier with Netherite ranked first, then Diamond, then Iron, and enchantments such as Efficiency and Sharpness. An optional swap-back can return the player to the previously selected slot after the action ends.
The mod only changes which hotbar slot is selected and never moves items between slots, so the inventory layout stays as the player arranged it. It is a client-side only mod, so a server does not need it and players can join a server without installing it. It targets Fabric and is published for 1.21.10 and 1.21.11, with 1.0.0 for 1.21.11 as the latest file. The mod requires Fabric API and YetAnotherConfigLib (YACL), and Mod Menu is optional for opening its settings in game. The code is under the MIT License and is not open source.
Key features
Automatic tool selection
Selects the hotbar tool that fits the block being mined or the mob being hit, without a manual slot change.
Tier and enchantment ranking
Ranks candidate tools by material tier and by enchantments such as Efficiency and Sharpness.
Optional swap-back
Can return to the slot the player had selected before the action, once the action is done.
Hotbar only
Changes the selected hotbar slot and leaves every item in its place.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 2
Optional 1
Use cases
Mining with mixed tools
A player holding a pickaxe, an axe and a shovel can break each block type without reselecting the tool between blocks.
Combat during exploration
A player who switches between mining and fighting can have the sword selected when a mob is hit.
How it compares
Auto Tool Switch is a Fabric mod for 1.21.10 with a server-side only environment and All rights reserved licensing, so it runs on the server rather than in the client. AutoBreachSwap is a Fabric client-side only mod that covers 1.21 – 1.21.11 and is under All rights reserved. No Item Swap Animation exists in two builds: the version for 1.21.10 is client-side only under the MIT License, and the version for 1.21.11 is also client-side only under the MIT License and not open source.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| AutoToolSwap | Fabric | 1.21.10 – 1.21.11 | Client-side only | 2026-06-15 |
| Auto Tool Switch | Fabric | 1.21.10 | Server-side only | 2026-02-25 |
| AutoBreachSwap | Fabric | 1.21 – 1.21.11 | Client-side only | 2026-03-20 |
| No Item Swap Animation | Fabric | 1.21.10 | Client-side only | 2025-12-27 |
Questions
Does AutoToolSwap need to be installed on the server?
Which dependencies does AutoToolSwap require?
Which game versions does AutoToolSwap support?
In the catalog
AutoToolSwap is one of 11,058 Mobs mods on ModsFinder, and one of 5,189 Mobs mods for Fabric. 19,862 mods support Minecraft 1.21.11.
More from zachphul
Similar mods
What the author says
Stop manually switching tools. AutoToolSwap detects what you are mining or attacking and equips the best tool.
Official listing
- Modrinth page
- modrinth.com/mod/autotoolswap
- Owner
- zachphul
- Published
- 2026-06-15
- Updated on Modrinth
- 2026-06-15
- Facts verified
- 2026-10-15
