"On GUI opened" global trigger and "GUI type/name" block

Started by LercDsgn3 on Sat, 01/30/2021 - 17:47

Topic category: Feature requests and ideas for MCreator

Last seen on 18:17, 27. Feb 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
"On GUI opened" global trigger and "GUI type/name" block
Sat, 01/30/2021 - 18:00 (edited)

So, this trigger would be helpful when getting values or changing something whenever a player opens a GUI. It could be any GUI, so you should also be able to check what GUI it is, so I would suggest adding a "GUI type/name" block. For example, if someone wants to override the crafting GUI, they would use something like this:
 

[Example Procedure]

If you're having trouble viewing the image, go to: https://i.imgur.com/9EeQAY3.png. I didn't use this site or similar sites, so, I uploaded it into another site in case it doesn't work. https://ibb.co/wRbjFKN

I made it in paint and I'm not good at doing these kind of things, sorry for the quality.

 

 

And of course, I'm only giving an idea. You'll decide if it may be useful, possibly break the code (I don't know why but anyways), should be modified to better fit, or even is possible.

Thanks, and please tell if it's already possible to do something like this.

Edited by LercDsgn3 on Sat, 01/30/2021 - 18:00