Requires the library mod Collective.
This mod is part of The Vanilla Experience.
Hide Hands is a minimalistic client-side configurable mod which allows you to hide your offhand and/or main hand. This can be set to always hide or only when holding specific items. By default the mod hides the offhand when holding a torch or a totem of undying.
Configurable: ( how do I configure? )
alwaysHideMainHand (default = false): If enabled, always hides the main hand. If disabled, hides the main hand when holding the items defined in hideMainHandWithItems.
hideMainHandWithItems (default = ""): The items which when held will hide the main hand if alwaysHideMainHand is disabled.
alwaysHideOffhand (default = false): If enabled, always hides the offhand. If disabled, hides the offhand when holding the items defined in hideOffhandWithItems.
hideOffhandWithItems (default = "minecraft:totem_of_undying,minecraft:torch"): The items which when held will hide the offhand if alwaysHideOffhand is disabled.
A gif which shows the offhand being hidden when holding a torch or totem of undying: