Skip to content

Instantly share code, notes, and snippets.

View tanmayb123's full-sized avatar

Tanmay Bakshi tanmayb123

  • Software Developer, YouTuber
  • Canada
View GitHub Profile

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

Minecraft on Apple Silicon

In this gist, you can find the steps to run Minecraft 1.16.4 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 video.

Download my package

import Foundation
struct FastRandomGenerator {
static var shared = FastRandomGenerator()
private var seed: UInt32
init() {
seed = UInt32.random(in: 1...500000000)
}
import Foundation
struct SudokuBoard {
var board: [Int]
subscript(_ x: Int, _ y: Int) -> Int {
get {
return board[y * 9 + x]
}
set {
import TensorFlow
import Python
let np = Python.import("numpy")
let randomNumbers = Tensor<Float>(randomUniform: [5, 5])
print(randomNumbers)
let rotatedRandomNumbers = Tensor<Float>(numpy: np.rot90(randomNumbers.makeNumpyArray()))
print(rotatedRandomNumbers)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
import csv
import sys
from scipy.spatial.distance import cosine
vec_file = list(csv.reader(open("en_de_model_2.vec"), delimiter=" "))
vec_file = [i[0:-1] for i in vec_file[1:]]
words = [i[0] for i in vec_file]
vectors = [list(map(float, i[1:])) for i in vec_file]
This file has been truncated, but you can view the full file.
"Balloc" -> "llvm.dbg.value"
"Balloc" -> "malloc"
"FTB_WORD_cmp" -> "llvm.dbg.value"
"FTB_WORD_cmp.37624" -> "llvm.dbg.value"
"FTB_WORD_cmp_list" -> "llvm.dbg.value"
"FTB_WORD_cmp_list.37625" -> "llvm.dbg.value"
"FT_DOC_cmp" -> "llvm.dbg.value"
"FT_DOC_cmp.37650" -> "llvm.dbg.value"
"FT_STOPWORD_cmp" -> "llvm.dbg.value"
"FT_STOPWORD_free" -> "llvm.dbg.value"
This file has been truncated, but you can view the full file.
"BaseException_clear" -> "_Py_Dealloc"
"BaseException_clear" -> "llvm.dbg.value"
"BaseException_dealloc" -> ""
"BaseException_dealloc" -> "BaseException_clear"
"BaseException_dealloc" -> "llvm.dbg.value"
"BaseException_get_args" -> "llvm.dbg.value"
"BaseException_get_cause" -> "llvm.dbg.value"
"BaseException_get_context" -> "llvm.dbg.value"
"BaseException_get_tb" -> "llvm.dbg.value"
"BaseException_init" -> "_PyArg_NoKeywords"
"BMK_benchCLevel" -> ""
"BMK_benchCLevel" -> "LZ4_XXH64"
"BMK_benchCLevel" -> "LZ4_compressBound"
"BMK_benchCLevel" -> "LZ4_decompress_safe"
"BMK_benchCLevel" -> "RDG_genBuffer"
"BMK_benchCLevel" -> "__assert_fail"
"BMK_benchCLevel" -> "clock_gettime"
"BMK_benchCLevel" -> "exit"
"BMK_benchCLevel" -> "fprintf"
"BMK_benchCLevel" -> "fputc"