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

Started by vlonabuser on

Topic category: Help with modding (Java Edition)

Last seen on 15:46, 28. Jan 2024
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