Skip to content

SkyVerseMc/Legacy-Minecraft-Launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Legacy Minecraft Launcher Linux Windows

Downloads

info I plan to rewrite the launcher soon in order to optimize it for the latest versions of Minecraft while removing unnecessary or obsolete parts of the code. The UI is not supposed to change.

screenshot

Do you remember the good old Minecraft Launcher that was used from the beginning of Minecraft until the Microsoft Account Migration? Its last version was 1.6.93 and was released on 12 September 2019.

As Minecraft Wiki said:

The legacy Minecraft Launcher is incompatible with Microsoft accounts and was discontinued in Q2 2021 due to account migration.

Today, this launcher is obsolete, you simply can't use it because of 2 main problems:

  • The Microsoft authentication system (Mojang's Authlib is now deprecated);
  • The new Minecraft version API (assets, libraries, natives...) has changed; However, existing accounts will still be able to launch old versions, because their token is already saved and does not require to authenticate again.

It seems easy to fix, but it's really more complex (plus the launcher code wasn't really optimised...). So I modded this launcher and now it works fine.

How to install

  • The JDK 20 or higher is needed

There are two important files:

  • The MinecraftLauncher.exe/.jar (this is the bootstrap that checks for updates and starts the launcher);
  • The launcher.lzma (the compressed launcher, you don't really need to download it because the bootstrap does it automatically).

Although most of the code can be found in this repo, I highly recommend downloading the latest version of the launcher, because all dependencies are not published here, as their code is not mine:

  • com.google.common
  • com.google.gson
  • com.google.thirdparty
  • javax.annotation
  • joptsimple
  • org.apache.commons
  • org.apache.logging.log4j

How ??? (Using magic)

  • I had to use another dependency: Litarvan's OpenAuth (thanks a lot to him) to solve the authentication problem, and I modified some classes (a bit) to better fit the launcher code.
  • I rewrote a bit the launcher's code to remove some parts of useless code (but not all) and change API call and some stuff.
  • I spend a lot of time on it.

What changed ?

Go to the end, TODO section

Disclaimer

  • I've resurrected the old launcher with some modifications and optimised certain parts, but not all of it, which means that there may be crashes and so on. Don't hesitate to let me know if you have any problems with the launcher. I plan to optimize it further as time goes on.

  • Don't cry when you read the code, 90% of it was made by Mojang.

  • For some reasons (= idk) textures can be glitched on latest versions.

  • If there is a problem, try restarting the launcher before opening an issue.

  • If you have this crash report:

Exception in thread "main" java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
at net.minecraft.launchwrapper.Launch.<init>(Launch.java:24)
at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

It's because you are trying to launch old releases < 1.6, this crash is caused by the new java version. You can simply fix that by using java 8 instead, by changing the java path in profile editor.

Todo

  • Microsoft Authentication Implementation
  • New Minecraft Version API
  • New Minecraft assets
  • Patch Log4shell
  • Change default JVM arguments to make them up to date
  • Add "Releases", "Modded versions" and "Installed versions" filter in profile popup's version selector
  • Add "Latest Snapshot" version in profile popup's version selector
  • SquidHQ option
  • Add mods support (fabric, etc...), but you can launch versions that does not need external libraries

About

The old Minecraft Launcher but working.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages