DevLogin
Login with your own Minecraft account in a mod development environment.
Install / Use
/learn @PlanetTeamSpeakk/DevLoginREADME
DevLogin
Login with your own Minecraft account in a mod development environment.
This works on all Minecraft versions with any mod loader. (In case of Forge, only on versions supporting Mixins: 1.15.2+)
Usage
To use this mod, add
repositories {
mavenCentral()
}
dependencies {
modImplementation "com.ptsmods:devlogin:3.5" // For Fabric and Quilt
implementation fg.deobf("com.ptsmods:devlogin:3.5") // For Forge
}
to your build.gradle file.
After that, the procedure differs for different account types. You have the following options:
Microsoft account
If you have Migrated your Minecraft account to a Microsoft account, you can still use this mod just fine. The procedure is just a little more complicated.
- Add either the
--msaor--msa-nostoreprogram argument to your run configuration and launch the configuration. Use--msa-nostoreto prevent DevLogin from storing your refresh token which can be used indefinitely to get new Minecraft tokens. - In a moment, you should see a dialog asking you to fill in a code on a website. Follow these instructions.
- The dialog should disappear and Minecraft should start a moment later, logged in on your Minecraft account. This dialog can be disabled, however, by passing the
--msa-no-dialogprogram argument. In this case the code is printed to the console which may be desired if you have issues with the dialog. - That's it, if the Minecraft token expires, a new one will be obtained using the refresh token unless
--msa-nostorewas passed instead of--msain which case you'll have to redo this procedure.
Mimicking
If you don't want your password or tokens stored anywhere potentially unsafe and don't mind not being able to log onto servers or just simply wish to pretend to be some famous YouTuber or Mojang employee or whatever, you can add the --mimicPlayer <PlayerName or UUID> program argument instead.
This yields more or less the same result, mimicking just doesn't actually log in, so you cannot join online servers.
