dexman545 / Fabric-Autoswitch

Automagical switching of tools to the best one for the job, for Minecraft
https://www.curseforge.com/minecraft/mc-mods/fabric-autoswitch
GNU Lesser General Public License v3.0
25 stars 7 forks source link

How do I prevent accidentally killing villagers? #42

Closed aflyingpumpkin closed 2 years ago

aflyingpumpkin commented 2 years ago

I recently started using this mod and I am loving it, though when I punch a villager to move them a block I end up switching to my sword and doing a sweeping attack and end up killing them. Is there a way for me to tell autoswitch to avoid switching to sword when punching villagers?

dexman545 commented 2 years ago

In autoswitchAttackAction.cfg, you should be able to disable switching for villagers by adding minecraft!villager = on a new line. It is important that there is nothing after the = on the same line.