How to reset the procedure when exiting Gui

Started by ВалерийМельник on

Topic category: Help with Minecraft modding (Java Edition)

How to reset the procedure when exiting Gui
Mon, 08/25/2025 - 17:19 (edited)

Hello, I'm making my own mod, and I have my own container blocks. I wanted to do something like this: when you click on a block, it opens gui 1 and then gui 2 (like in the Tarkov loot search system, where the first gui is a search and the second is the contents). I wanted to make it so that when I open the gui of my block, the first gui opens when I click the right mouse button, and then the second gui opens (I did this and it worked), but I can't make it so that when I exit the first gui, the time resets and goes on. Can you help me and suggest an alternative?

Edited by ВалерийМельник on Mon, 08/25/2025 - 17:19