Skip to content

Instantly share code, notes, and snippets.

@RobertSkalko
Last active June 11, 2021 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertSkalko/1cb01adcca9f634f7c99c411783aa59c to your computer and use it in GitHub Desktop.
Save RobertSkalko/1cb01adcca9f634f7c99c411783aa59c to your computer and use it in GitHub Desktop.
[Guide] Updating to Java 16 for 1.17 minecraft mods

I had some issues installing new java so here's a small guide!

  1. Go to this link and install the java 16 you want: https://adoptopenjdk.net/

They have a nice installation executable that auto sets your java home and other stuff.

  1. Copy what fabric example project did here: https://github.com/FabricMC/fabric-example-mod/commit/50f0be767c69f3ac49c3a2c4c8669354a39fd9b3

Remember to copy what the commit did for: build.gradle, fabric.mod.json, mixins.json, gradle-wrapper properties file, but update the gradle.properties with new versions from here: https://fabricmc.net/versions.html

and here: https://github.com/FabricMC/fabric-example-mod/commit/54035654b75dd756d98f89fde179cb49183a6d68 Those are the commits where they updated loom and java.

  1. Set the java version for the project in Intelij:

  2. Set it to use the project's version in gradle settings:

  3. Clean loom, invalidate caches etc and refresh dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment