Topic category: Help with Minecraft modding (Java Edition)
I don't think it's a bug, maybe now it's something that has to be programmed in the Trigger -> Procedure...
I have been doing several tests and I have noticed that in recent versions of MCreator the GUI no longer closes when destroying or exploiting the block with GUI... (Even updating the old mod creates this problem)
My question is how can I do now in recent versions so that the GUI closes when destroying or exploiting or changing the block? (before I didn't have to do anything and it happened by itself)
Example:
Ver. MCreator 2020.2 The GUI closed itself when the block was destroyed. (FORGE 1.14)
Ver. MCreator 2021.1 The GUI stays open even though the block was destroyed. (FORGE 1.16)
Files and Others:
https://mcreator.net/modification/59385/smelting-machine-procedure-tuto…
save the coordinates of the block as a player variable when opened, and reset them when closed. In your "on tick while gui is open" check if your block still exists there. if not, close the gui.
Its not perfect but it should do in most cases
Thank you very much! For your answer.
But I apologize, I don't fully understand, I've been checking and researching but I can't find "on tick while gui is open" or I don't understand what it means.
If you could be more specific or give me an example, in any case, I will continue investigating what he told me, thanks again.
They're referring to an option in the gui element. There should be an expandable element in the bottom stating "GUI procedure triggers". Click there and the option for "While this GUI is open tick" will appear