
iammojogo's Auto Switch Tool
Simple mod to switch tools based on blocks for quicker mining.
iammojogo's Auto Switch Tool 1.1.0
release28 марта 2026 г.Creative mode guard
Both onLeftClickBlock and onAttackEntity now bail immediately if the player is in creative mode
Tool switching logic (onLeftClickBlock)
Replaced getDestroySpeed > 1.0 filter with getHarvestTool + getHarvestLevel — tools must now actually match the block's required tool class and tier to qualify Blocks with no registered tool class (dirt, sand, gravel, etc.) no longer trigger a switch Added material-based fallbacks for blocks that don't register a tool class: Material.WOOD forces an axe, and Material.LEAVES / VINE / WEB / CLOTH / PLANTS routes to shears Added early return if the currently held item already satisfies the block's tool requirement Added attack damage as a third tiebreaker (lowest wins — weakest tool depleted first) after durability and mining speed Added if (bestSlot == inventory.currentItem) return to avoid a redundant switch Removed the DEFAULT_SPEED constant entirely since it's no longer used
Weapon switching logic (onAttackEntity)
Changed trigger from IMob (hostile mobs only) to EntityLivingBase (all living entities including animals)
New method: switchToShears
Finds the most worn pair of shears in the inventory and switches to them, does nothing if already holding shears or none exist
New Configuration Settings for keybind toggle and other options when available
iammojogo's Auto Switch Tool 1.0.0
release12 марта 2026 г.03-12-2026 -Created initial mod
iammojogo's Auto Switch Tool 1.0.0
release12 марта 2026 г.03-12-2026 -Created initial mod
