How to change the keybind for item GUI from right click to something else.

Started by Thistle on

Topic category: Advanced modding

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to change the keybind for item GUI from right click to something else.

 The version I'm using is 2023.2,
 my loader is for Fabric 1.19.2.

I am well aware this is likely impossible without editing item code, which by the way, I don't mind doing it means I can change the keybind for appended Item Inventories to something OTHER THAN right click.
 I just need to know where exactly they store the enum value or whatever they use to detect mouse click for item GUIs,
 I can't seem to find it anywhere on my item's source code, Unless I'm just missing it.


If there is a way to do this with procedures alone (which, I tried keybinds to GUI, GUI right click interrupts to prevent it from opening, everything I could find/figure out).

 What's weird is blocks have a option to disable GUI open on right click, so why don't items have this feature?
 If blocks had use animations and had optional placement Id honestly use a block for all of my items because they just offer that extra level of utility.

 I'm not sure, any help is appreciated, though.