1.1.0
Compatibility
Required content
Changes
AutoSwitch Enchant
Author: BaXy
Automatic tool switching based on enchantment rules for Minecraft 1.21.10 (Fabric).
Features
- Automatic Switching — the mod automatically selects the right tool when you start mining a block
- Enchantment Rules — configure which enchanted tool to use for each block
- Efficiency 1–10 (supports mods with levels above the vanilla maximum)
- Silk Touch
- Fortune 1–3
- Smart Haste Awareness — rules with the
considerHasteflag only activate when the Haste effect is active, saving tool durability - Tool Type — choose which tool the rule applies to: pickaxe, shovel, axe, hoe, sword, shears, or any
- Instant-Mine — the mod calculates mining speed accounting for Efficiency, Haste, and Mining Fatigue, and picks the tool with the minimum level sufficient for instant mining
- Rule Priority — Silk Touch > Fortune > Efficiency
- Tool Return — optionally switch back to the previous hotbar slot after mining
- Configuration Profiles — create and switch between multiple config profiles
- Base64 Import/Export — share your settings with other players via a Base64 string
- Minecraft Keybind Settings — two reassignable keys in the "AutoSwitch" category:
- B — open the config menu
- H — toggle the mod on/off
- ModMenu Integration — access settings through the ModMenu mod list
- 12 Languages — EN, RU, UK, DE, FR, ES, IT, PL, PT-BR, KO, JA, ZH-CN
How It Works
- You create rules like: "For Stone — Pickaxe with Efficiency 5 + Haste"
- When you start breaking a block, the mod checks:
- Do you have the Haste effect?
- Is the Efficiency level high enough for instant mining?
- Which tool in your inventory is the best match?
- The mod automatically switches your hotbar slot to the optimal tool
- If tool return is enabled — it switches back to the previous tool after mining
Example: Haste + Efficiency 5
Stone (hardness 1.5) requires a mining speed ≥ 45 for instant mining.
| Situation | Pickaxe | Speed | Instant? |
|---|---|---|---|
| No Haste | Eff 5 Diamond | ~45 | Barely |
| Haste II | Eff 5 Diamond | ~63 | Yes |
| No Haste | Eff 10 Diamond | ~126 | Yes |
The mod will choose Eff 5 if you have Haste (saving durability!), and Eff 10 if you don't have Haste.
Installation
- Install Fabric Loader for Minecraft 1.21.10
- Install Fabric API
- (Optional) Install ModMenu to access settings from the mod menu
Configuration
- In-game: press B (default) or open via ModMenu
- Toggle key: press H (default) — toggles the mod on/off with an action bar notification
- In Minecraft settings: Options → Controls → Key Bindings → "AutoSwitch" category
Requirements
- Minecraft 1.21.10
- Fabric Loader 0.19.2+
- Fabric API
- Java 21+
License
MIT
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:FBBZOay5:q94pUoSA"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:FBBZOay5:q94pUoSA"
}

