Close any open GUI code block not working

Started by Eternal on

Topic category: Help with modding (Java Edition)

Last seen on 05:29, 6. Feb 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Close any open GUI code block not working
Fri, 11/12/2021 - 10:35 (edited)

So iv been trying to make a mod in which the player can make backpacks and gain extra inventory. And one of the features i was trying to make was binding a key input to the open and closing of the GUI. After proof reading my  functions I realized that my code should work, however the problem was that the code block close any open GUI of event/entity would not activate even when directly under the key binding. Im not sure if its because of a bug in MCreator or if i was mis interpreting the use of the close all GUI block.

 

If anyone has any ideas or knows the fix to my problem please let me know in a comment.

Edited by Eternal on Fri, 11/12/2021 - 10:35
Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you don't need a keybind to…
Fri, 11/12/2021 - 16:58

you don't need a keybind to close it, you can close it with E or ESC