What Autoswitch Does
Autoswitch (AS) reads the player's hotbar, and finds the best tool for the job currently available based on the config files (ie. you hit a stone block with your fist, it will switch to a pickaxe). These tools have some conditions that need to be satisfied:
Have more than 3 durability remaining configurable
Have the tool on your hotbar
Be capable of mining the block (a naive fallback is in place for mining levels configurable)
It is aware of tool enchantments
AutoSwitch is fully configurable. The config files detail their specifics at their top, and each option is documented within the file. A hotkey is available to quickly toggle switching on or off, along with a toggle command.
Blocks
AS checks the block's Material*, or the specific block's id if it is present in the config file, and will evaluate the tools based on the configuration.
*Note
See the Minecraft Wiki for details. The names used in the config files are the same as the names Fabric uses, which differ from the names on the wiki. Each material is documented within the config file.
Entities
AS checks the entities group*, or the specific id if it is present in the config file, and will evaluate the tools based on the configuration. Bases weapon choices in part on the amount of damage the tool can do.
*Note
See Minecraft Wiki for details on entity groups. Group names are not exactly the same between the wiki and what Fabric uses.
Other
If a mod's tools do not work automatically, tell the mod author of that mod to add their tools to the proper FabricToolTags. Some mods may require other changes to function. Autoswitch provides an API by which mod authors can create their own tool groups similar to the provided pickaxe, axe, etc.-
In reply to Deximus_Maximus:
with version 0.11.1, I can still teleport
i cant toggle my perspective using it for 1.14.4
In reply to Fighting_King01:
What do you mean by perspective?
In reply to Deximus_Maximus:
I cant toggle my F5 mode in 1.14.4
In reply to Fighting_King01:
Using AS 0.3.1 on 1.14.4 I am unable to reproduce this. Maybe check your keybindings, something may be conflicting with F5
Awesome single player survival mod so far!
Any chance of compatibility with Vanilla Hammers, Vanilla Toolsets and Vanilla Excavators in the future?
In reply to Slycan:
If they add their tools to FabricToolTags they should work automatically.
Looks like not working on servers. In single works pefectly. Sad.
In reply to Yeqqi:
I'll try and fix that in the next version (built version has some other bugs as well it seems, though most of those are fixed already)
In reply to Deximus_Maximus:
Good job! Thanks a lot! Waiting for new version!
upd: nvm, looks like its already here! yay!
upd2: also mod isnt working on servers. checked at paper spigot for 1.14+. still sad T_T
In reply to Yeqqi:
Sadly that version was just some bug fixes. I had assumed some things about how Fabric handles tool tags and it didn't go so well. I've now added them hardcoded, so 0.3.0 will work on vanilla servers.
Thank you for this great mod, I've been waiting for this.
Does this work with Silk Touch? If I have a silk touch tool will it automatically switch to it if what I'm mining needs silk touch? (Glass,Bookshelves etc.)
In reply to raptorrob456:
Yes, it is aware of silk touch and fortune. Will prefer silk touch over fortune tools.
Hey can you make a Forge 114 version? I have problems with fabric and everything is outdated
In reply to IvanButBetter:
Sorry, I don't want to support Forge at this time.