Skip to content

Instantly share code, notes, and snippets.

@BoogieMonster1O1
Last active December 27, 2020 05:49
Show Gist options
  • Save BoogieMonster1O1/33da454fc697413d7807569957351192 to your computer and use it in GitHub Desktop.
Save BoogieMonster1O1/33da454fc697413d7807569957351192 to your computer and use it in GitHub Desktop.
Running Legacy Fabric on Mac OS

MultiMC

Use my multimc instance from https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/mods-discussion/3028341-legacy-fabric-discussion-thread-for-versions

Dev

Add this to the dependencies block

if (System.getProperty("os.name").toLowerCase().contains("mac")) {
  implementation 'org.lwjgl.lwjgl:lwjgl_util:2.9.4-nightly-20150209'
  implementation 'org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209'
  implementation 'org.lwjgl.lwjgl:lwjgl-platform:2.9.4-nightly-20150209'
}

Add this after the dependencies block

if (System.getProperty("os.name").toLowerCase().contains("mac")) {
    configurations.all {
        resolutionStrategy {
            dependencySubstitution {
                substitute module('org.lwjgl.lwjgl:lwjgl_util:2.9.2-nightly-201408222') with module('org.lwjgl.lwjgl:lwjgl_util:2.9.4-nightly-20150209')
                substitute module('org.lwjgl.lwjgl:lwjgl:2.9.2-nightly-201408222') with module('org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209')
            }
            force 'org.lwjgl.lwjgl:lwjgl-platform:2.9.4-nightly-20150209'
        }
    }
}

Lastly, remove the -XstartOnFirstThread jvm argument from the run config

Vanilla launcher

TODO

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