Custom key bind for off hand item use

Started by Capek_12 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom key bind for off hand item use

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?

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you need to create a key…
Tue, 03/26/2024 - 13:20

you need to create a key binding mod element. You can use it to do what you want. But I dont know how :(
 

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I managed to create a…
Tue, 03/26/2024 - 20:03

I managed to create a keybind for swinging item in the off hand, but it doesn't help at all :(

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try using Item Extensions or…
Fri, 05/10/2024 - 13:43

Try using Item Extensions or procedures