Java Versions - AllTheMods/ATM-6 GitHub Wiki

The link comes with all the correct settings selected. Just click the download button for your operating system.

Pre-1.16:

Java 8

Minecraft 1.16:

Java 8: Windows | MacOS

Java 11: Windows | MacOS

1.17:

Java 16

Minecraft 1.18:

Java 17