How do I make a procedure, or command, that intentionally "crashes" the game?

Started by The_TACkiest on Fri, 12/18/2020 - 22:30

Topic category: Help with modding (Java Edition)

Last seen on 22:30, 18. Dec 2020
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make a procedure, or command, that intentionally "crashes" the game?
Fri, 12/18/2020 - 22:30

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". 

 

Thanks,

Tyler Collins

Last seen on 20:44, 18. May 2022
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Simple, create a procedure…
Sat, 12/19/2020 - 00:25

Simple, create a procedure that attempts to divide a given value by 0.

As far as an error window, this is not possible with MCreator, as it only deals with creating Minecraft elements, nothing outside of that.

Last seen on 19:49, 3. Nov 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could probably make a…
Mon, 12/21/2020 - 13:20

You could probably make a window with this tutorial if you know java.