Started by
crimson_fluff
on
Topic category: Feature requests and ideas for MCreator
Hi I searched the forum for this but didnt find anything, hopefully its not a dupe
As the title suggests can we please have a 'GUI Closed' Event/Trigger. I have a block that deletes items, its a trashcan. When the GUI is open I want to pause the trashcan until the GUI is closed. This is easy enough for me to do, except I will never know when the GUI is closed and so cant unpause my trashcan
I realise I could have a button in the GUI linked to a Procedure that closes the GUI and unpauses my trashcan, BUT if the player presses ESC and closes the GUI, my trashcan will remain forever paused
Thank you
Edited by crimson_fluff on Thu, 11/21/2019 - 21:06
Meanwhile, you can just create a button in the trashcan GUI that clears every slot when clicking.
Useful if you have the bad reflex of closing the GUI when you place something in the wrong slot, like me.
Don't forget to make the block keep the items in its internal inventory.
And if you want to play a sound on GUI close?
This trigger should have existed at least since 2020.5.