modrinth/code

Java version control for creators

Opened this issue · 0 comments

Please confirm the following.

  • I checked the existing issues for duplicate feature requests
  • I have checked that this feature request is not on our roadmap

What parts of Modrinth is your feature request related too?

Modrinth App

Is your suggested feature related to a problem? Please describe.

I have a Minecraft mod project for version 1.16.5 that was built using java 17, but Minecraft 1.16.5 itself doesn’t run on Java 17.
Modrinth allows changing the Java version for modpacks, but not for creators.
There’s no option or button on the project page for creators to set or change the Java version.

Describe the solution you'd like

It could be very useful to add an option to select the Java version in the "Environment" tab.

Additionally, if the project is a modpack, it could automatically detect the highest Java version required among all included mods/projects.

Example:

  • Mod A uses Java 16
  • Mod B uses Java 17
  • Mod C uses Java 21
    → The modpack would then select Java 21 as its Java version.

I understand that not many mods use a higher Java version than the one used by the game itself, but this feature could still be very useful in specific cases.

Describe alternatives you've considered

No response

Additional context

No response