Started by
B0nesRC0ol
on
Topic category: Help with Minecraft modding (Java Edition)
I'm making a mod which as one of it's aspects replaces the vanilla minecraft inventory. To do this this I plan to detect when the player opens their inventory/has their inventory open, close the open GUI for the player, and open the custom inventory GUI... However I don't have any idea how I would detect when the player has their inventory open, If anyone has an idea as to how I might go about this, it would be much appreciated!
What you could do is make a keybind for the E key, (which is the same for opening the inventory), and have a procedure that runs when you press the keybind.
For the procedure, make it so it closes the current gui, (being the inventory), and opens your custom gui
Hi B0nesRC0ol!
I have the same Problem. Maybe we could chat or talk on Discord?
My Discord is: james310708.
BTW, a solution could be, to make a procedure, that triggers when i press E. The procedure closes all GUI's for me and opens my custom GUI.