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.-
Hi how do i disable switching tools when its about to break? i browse the config files and disable everything that is related to durability but its still switches to a random block when chopping trees. I have the item profiler mod that would replace the tool when its about to break but i already disable it. so i uninstall that mod to test it but its still switch to a random block or just my hand.
my goal was to make the tool destroyed and once it destroyed the other mod the inventory profile mod would place another tool in that hotbar that came from my inventory and i just mine away.
i read the description that it says :
Have more than 3 durability remaining ( configurable)
but i cant seem to find it. so yeah hopefully you can help me with this thanks! great mod though :^)
In reply to PanginoongJimmy:
Set tryPreserveDamagedTools to false, either with the client command or editing the config file.
Do you know why it doesn't work with baritone?
In reply to 18guty18:
AS is a client side mod that assumes the player is the one in control. I do not expect it to work with baritone, and any issues likely lie with them.
Add auto pickaxe for rails pls
Also it'd be nice to have GUI setting. Thanks you for your work!
In reply to UrSenpaiii:
Rails are on the todo, pending a couple of FAPI updates and some more thought.
GUI would be nice, but is pain to implement. I have basically given up on it.
It would be cool to have an option to enable/disable using tools from players inventory too
In reply to Juarrin:
This is no longer outright rejected, but requires more thought.
autoswitch seems to be incompatible with fabric API(game version 1.18.1)
"
In reply to everstormchannel:
Autoswitch 4 is only for 1.18.2. You need autoswitch 3 for 1.18.1.
In reply to Deximus_Maximus:
so I need to download the one for 1.17?
In reply to Deximus_Maximus:
In reply to Deximus_Maximus:
Right, I tried the 1.17 and its working. i thought it would throw a fit. so thanks for the help!
In reply to everstormchannel:
Its just how curse has decided to show them, AS 3 is marked for 1.18.1 here. I have no control over how curse does things.
When I try to place blocks or when I right click on a block the item in my hand will be switched to another slot for no reason? i.e. when I right click on a cobble with my pickaxe, it'll switch and place my shulker? Really confused, I can't find a setting that could cause this to happen and this did not happen in 1.18.2
In reply to French_Cyndaquil:
Fixed in 5.1.1.
is there anyway to remove the weapon switch for combat off completely because if i use it in a server i would rather not accidently start hitting my friends with my sword while trying to move them or something
also when i try to use razer synapse to autoclick for me (im lazy and i need high cps to break blocks fast in creative mode) it only clicks like 4cps and my keystrokes is saying its doing the correct amount
before you ask ive checked and this is the mod thats causing this i can tell because when i remove it there are no problems ive also tried reinstalling the mod to see if mine was broken or there was a new release fixing the bug and its still only clicking a couple of times
In reply to senpaidaddyman:
Set switchAllowedFor to BLOCKS in autoswitch.cfg.
As for "buggy," can you give more detail? What versions? Are you on a server?
In reply to Deximus_Maximus:
ive edited the comment
In reply to senpaidaddyman:
The clickin issue:
- is this placing blocks or breaking them?
- is this only in creative?
If it's in creative, autoswitch is by default disabled. You may be able to work around the issue by toggling autoswitch to off.
5.1.2 may help with this.
In reply to Deximus_Maximus:
its in both creative and survival its both placing and breaking also turning autoswitch does nothing to help
imma try 5.1.2 rn and if it helped then this comment will have been edited