Topic category: Help with Minecraft modding (Java Edition)
I encountered a problem while playing with some mods.
For example, normally I would mine with a pick in my main hand and torches in my off hand, placing them without needing to switch between them and the pick. However, if a modded pickaxe has a special ability bound to right-click, I am unable to place any blocks from the off hand. The same goes for a shield and a weapon with a special attack; I cannot raise the block.
My first thought was to change the key binds of these special abilities/attacks of tools, but doing this for every item in a modpack doesn't seem to be the best option.
So my question is: Is it possible to set placing/using items in the off hand under a separate key? If so, how do I do it?
you need to create a key binding mod element. You can use it to do what you want. But I dont know how :(
I managed to create a keybind for swinging item in the off hand, but it doesn't help at all :(
Try using Item Extensions or procedures