Topic category: Troubleshooting, bugs, and solutions
When i was just creating my mod, it happened like 3 times. i save a procedure and instead it deleted the whole thing leaving me with a blank procedure with error : "Could not find start block", and this just happened to the core procedure of my mod (a "on world tick update" global trigger) that basically ran everything from online to singleplayer uses of this mod. i am here to know if there is a way to get it back, somehow. i tested the mod and well, its broken now, blocks not doing what they do, players being able to go where i restricted, and a lot of issues... after i saw this, i did not touch that procedure at all. even when i tried placing blocks, i never saved it. though, the file for that element is empty. it is brobably gone but i hope there is still a way.
You could try locking the element, and checking if there is any code there, and reconstructing it in a new element based on the code and just remaking the procedure, however if it's all gone, its been corrupted., unfortunately a uncommon issue I've found with Mcreator.
This usually happens if you disable/update plugins and not remove the plugin code blocks (best to make a backup of the workspace before changes to verify nothing broke) or creating a new element that you will add to a currently creating and not saved element, say having a procedure to spawn a mob when you die (not saved yet), and finishing the entity in the middle of you making that procedure, adding it, and saving, though it's rare this example causes the issue, but it's a case I've had happen.
Best of luck though.
You should also consider exporting your big procedures in these cases.
Try to make smaller procedures. We are investigating why this happens