Java downgrade

Hi, I have a question. I am trying to downgrade java version from 11 to version 8. or at least install is on the dietpi server and then select it.
I looked everywhere and cannot figure out how this can be done?

Main reason for downgrading is that I have read that other Minecraft builds running best on java 8?

Perhaps I am wrong. And also I am a bit new in this.


case closed, I found it.
Minecraft alternative versions works on this java version.

Great, better going forward than applying backwards workarounds. On RPi Java 8 install can be done from repository easily, but on non-RPi Debian Buster systems that requires another source.