super simple gui help

Started by svu11 on

Topic category: Help with Minecraft modding (Java Edition)

Active 6 months ago
Joined Aug 2018
Points:
683

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
super simple gui help

I think im missing something simple.

i can open my gui but i cant close it with the same key.

here is the code

https://imgur.com/a/4jTT0qH

Active 9 hours ago
Joined Sep 2024
Points:
140

User statistics:

  • Modifications: 3
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 92
make a local variable(maybe…
Wed, 02/19/2025 - 10:56

make a local variable(maybe called ClickedTimes or TimesOpened) and increase it everytime that button is pressed, if it equals two then close GUI?

Active 9 hours ago
Joined Sep 2024
Points:
140

User statistics:

  • Modifications: 3
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 92
if you need an image, just…
Wed, 02/19/2025 - 10:56

if you need an image, just ask.