Tutorials/Offline alternate accounts

From Minecraft Wiki
Jump to: navigation, search
Information icon.svg
This feature is exclusive to Java Edition.
Having alternate accounts is useful for testing multiplayer maps in singleplayer. As shown here, the usernames can be any string of characters, although this will break commands.

Every so often there comes a time where you need to test out a multiplayer map in singleplayer and you don't have quick access to other accounts. This tutorial will show you how to load up multiple instances of Minecraft with different usernames on the same computer to join the same world via LAN.

Note that this only works offline, in singleplayer – you will not be able to join any multiplayer servers under any usernames you have not purchased and will be prevented from joining any multiplayer servers if your client username does not match.

Steps[edit]

  1. Find your .minecraft folder.
    • This is located at %APPDATA%\.minecraft on Windows, ~/Library/Application Support/minecraft on macOS, and ~/.minecraft on Linux.
  2. Open file launcher_accounts.json in a text editor such as Notepad.
    • In earlier versions of the Minecraft launcher (before Dungeons was added to the main launcher), the file is instead launcher_profiles.json.
  3. Locate the minecraftProfile object with fields id and name.
    • This object controls the ID and display name of the current Minecraft profile account.
  4. Change the name field to any string of characters.
    • This username does not need to be a valid account username (containing only letters and underscores), and as such any characters can be put here, and will join a world fine. Note however that commands cannot be used on these names as it does recognize them as valid.
  5. Save and close the file.
  6. Tempararily disable your computer's Wi-Fi.
    • This can be done by simply turning on airplane mode. This can be done by clicking the Wi-Fi icon on the taskbar and selecting the airplane mode button.
  7. Open the Minecraft Launcher while the Wi-Fi is off.
  8. Select your profile and click "Play Offline".
    • You can turn your Wi-Fi back on after this point.
  9. Start a LAN world on your main account and join it with your alternate account!

More than one alternate account[edit]

If you want more than one alternate account, perform the following steps before repeating those above:

  1. Close the Minecraft Launcher.
    • The program will close but remain active in the background. This is dealt with in the next steps.
  2. Open your task manager (or an equivalent program ending software).
    • Task Manager on Windows can be opened by right-clicking the Windows logo and selecting "Task Manager".
  3. Scroll down to the "Minecraft Launcher" process.
    • The list is ordered alphabetically and is found under "background processes".
  4. Select "Minecraft Launcher" and kill the process by pressing "End task".
    • This must be done because the launcher remains active in the background.

The launcher process must be completely killed to change usernames as while the game is running the session, including current username, is synced with the launcher.