How to disable opening entity gui on right?

Started by Obzor on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to disable opening entity gui on right?

If the villager is unemployed, they GUI does not open.

If there is no chest on the horse, they GUI does not open.

How to implement it? When linking a GUI to an entity, it always opens by clicking the RMB.

I couldn't find a way to bind another key or make the opening conditional. The only thing I've managed is to auto-close the GUI after 1 tick, but it's flickering.