Automatic tool swapping, smart torch placement, and more.
With a tool in your main hand and torches in your hotbar, you can sneak-right-click a block to place a torch.
Toggle keybind: h
With Auto Swap enabled, as soon as you attempt to break a block, the tool in your hotbar which provides the quickest break will be selected.
Use this mod or the code however you want (within the license).