Started by
AndreychelQx
on
Topic category: Help with Minecraft modding (Java Edition)
May I ask you a question about MCreator? How to make a one-time procedure there (so that after its execution it does not work again)
Topic category: Help with Minecraft modding (Java Edition)
May I ask you a question about MCreator? How to make a one-time procedure there (so that after its execution it does not work again)
First idea that comes to mind is to use a global variable as a flag. Set the procedure to run only if the flag hasn't been set. As part of the procedure set the flag to prevent further occurrences.