Open
Description
Right now, there's 2 ways to close a menu:
- Press escape (or any other key or action that usually lets you close an inventory in Minecraft)
- Press an item inside the menu that will execute the [close] action.
These 2 ways of closing a menu work very differently at the moment:
- If you close the menu using the escape button, it can't be cancelled. Also, close_commands don't get executed.
- If you close the menu using the [close] action, menu designers can chose when the menus can be closed, and also they can execute extra actions when the menu is closed.
I am proposing a few things:
- We add close requirements. These would let menu designer more easily decide when menus can be closed. These would only work with the [close] action just like the close requirements.
- We add a new per menu option that would let menu designer chose if players should be able to close menus using only the [close] action or if they should also be able to use escape.