Custom key bind for off hand item use

Started by Capek_12 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Mar 2024
Points:
100

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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?

Active 3 weeks ago
Joined Mar 2024
Points:
147

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
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 :(
 

Active 1 year ago
Joined Mar 2024
Points:
100

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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 :(

Active 2 months ago
Joined Jan 2024
Points:
376

User statistics:

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

Try using Item Extensions or procedures