Topic category: Help with modding (Java Edition)
Hello there. Please ignore the embarrassing username; my name is Tyler Collins.
I am currently creating a mod that is related to cyberspace and what not, and I have already gotten pretty far into the making of said mod. Anyways, I would like to make it so that when one of my custom blocks activates the "redstone on" trigger, for example (I've got several other ideas), the game would abruptly end, or crash, preferably without saving the session progress. Is this even a possibility? If so, how would I make a procedure, or command, that would do that?
As an added bonus, if possible, it would be neat to add a fake error window that would pop up as a result of the game "crashing".