Skip to content

Instantly share code, notes, and snippets.

@tanmayb123
Created November 3, 2021 17:07
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanmayb123/80c83c8c5d5fd370cb70a88ca711d848 to your computer and use it in GitHub Desktop.
Save tanmayb123/80c83c8c5d5fd370cb70a88ca711d848 to your computer and use it in GitHub Desktop.

Minecraft on Apple Silicon (v2 - 1.17 & Microsoft authentication)

In this gist, you can find the steps to run Minecraft 1.17 natively on Apple Silicon (AS), without needing Rosetta 2 translation of the dependencies (mainly LWJGL and related libraries).

While it's possible to use a launcher like MultiMC to have a prettier way to run the game on AS, it requires installing even more dependencies (like QT) which take time and are difficult to distribute. Therefore, I've put together a command line-based launcher tool using a couple shell & Python scripts.

To get up and running quickly, follow the steps below. Otherwise, for more detail, watch my YouTube videos: old, new.

Download my package

To begin, download the Minecraft on Apple Silicon package I've already put together, containing some pre-compiled core dependencies like LWJGL and a convenient set of setup & launcher scripts. Unzip the file, and navigate to it in your terminal. Then follow the next steps.

Download NPM modules required for Microsoft authentication

You only need to run this if you plan on using a Microsoft account for authentication

npm install --global @xboxreplay/xboxlive-auth request

Download Minecraft client & client libraries

cd libraries
sh download.sh
cd ..

Download Minecraft assets

python3 downloadassets.py

Run Minecraft! (Microsoft account)

Note: Replace email@address.com and password with your actual username & password for Minecraft, but keep them enclosed in single quotes. This data is only used to communicate with Mojang's authentication servers and is never stored. The file containing your authtoken is deleted after the game launches.

export MCEMAIL='email@address.com'
export MCPASSWORD='password'

sh launch.sh

Run Minecraft! (Mojang account)

Note: Replace email@address.com and password with your actual username & password for Minecraft, but keep them enclosed in single quotes. This data is only used to communicate with Mojang's authentication servers and is never stored. The file containing your authtoken is deleted after the game launches.

sh mojang_launch.sh 'email@address.com' 'password'

@mxbi
Copy link

mxbi commented Dec 15, 2021

BTW, this package uses Log4j 2.14.1, so it's susceptible to the remote code execution exploit - any chance of a notice or update? @tanmayb123

@Pyrotex7
Copy link

Pyrotex7 commented Jan 3, 2022

You could technically just download the newer 2.16.0 jar files, and replace the 2.14.1 jar files with the new ones in the folders and the launch arguments.

@raphtlw
Copy link

raphtlw commented May 21, 2022

There is a new Application for macOS which does all the hard work for you, and all you need to do is click play. You can find the repository here and the installation steps here.

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