This mod will allow you to create some kind of bag in which you can pack your tools and weapons. Then at the right time you can quickly activate the desired item from the available slots.
Mod Tool Belt for Minecraft 1.14.4/1.12.2
In general, the Tool Belt mod is able to help in the most unusual situations, while the instrument in the back will look quite organic.
1.14.4 – Tool-Belt-Mod-1.14.4
1.13.2 – Tool-Belt-Mod-1.13.2