How do I check if the player has opened the inventory or if the inventory is open?

Started by Input_Lag on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I check if the player has opened the inventory or if the inventory is open?

I want to add some options that are around the inventory, but I don't know how to check if the player has opened the inventory or if he has it open, in order to open the new options.