how to exit minecraft (like alt + f4) through function or procedure?

Started by vlonabuser on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to exit minecraft (like alt + f4) through function or procedure?

really need it for my mod, tried System.exit() but its not working