How do i make variables save when players game crashes?

Started by luno on

Topic category: Advanced modding

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make variables save when players game crashes?

How do i make variables save when players game crashes?

if its not possible, can someone help with code snippet to crash/turn off players game with variables saved?
 

im making mod similar to broken script and error 422 (VERSION), so i need this to save.
- (NO PLUGINS) -
MCREATOR NEWEST VERSION

made in NeoForge, not forge