MCreator issue tracker has been migrated to GitHub.
Existing tickets have been migrated to GitHub. Please open new tickets on the GitHub tracker instead. If you do not have a GitHub account, all feature requests and bug reports from MCreator forums are still considered and checked by the maintainers.
You are doing this check in the while loop. 0=0. You are checking if 0 equals 0 which is always true. The while loop gets stuck and this is why the game freezes. This is what should happen if you make such while loop, not a bug.
If you are trying to make a delay, check this tutorial: https://www.youtube.com/watch?v=VXAPH0g9A00&list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei&index=16