[Tut] Changing Dev Username

Started by MissLexyShaodws on

Topic category: User side tutorials

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Tut] Changing Dev Username
Sun, 11/06/2022 - 05:40 (edited)

Sadly since the new Microsoft accounts the login system no longer seems to work but we can still change the username within the Client, this does nothing part from
change the name in game it will not let use login to servers or fetch your skin unless someone can find a way to get the gradle to accept the Microsoft login details what 
seem to fail.

Step one, create a new mod and make sure you set up all your workspace settings first as we will be editing your build file we don't want you to override this later.

Now in the left hand menu find Build
Build.gradle

Double click it and it will open.

Find 

        client {
            workingDirectory project.file('run')

            property 'forge.logging.markers', 'REGISTRIES'
            property 'forge.logging.console.level', 'debug'

            jvmArgs = [
                    "--add-exports=java.base/sun.security.util=ALL-UNNAMED",
                    "--add-opens=java.base/java.util.jar=ALL-UNNAMED"
            ]

            mods {
                examplemod {
                    source sourceSets.main
                }
            }
        }

and add or replace it so it looks like this below

        client {
            workingDirectory project.file('run')

            property 'forge.logging.markers', 'REGISTRIES'
            property 'forge.logging.console.level', 'debug'
			args '--username', 'YOURINGAMEUSERNAME'
            jvmArgs = [
                    "--add-exports=java.base/sun.security.util=ALL-UNNAMED",
                    "--add-opens=java.base/java.util.jar=ALL-UNNAMED"
            ]

            mods {
                examplemod {
                    source sourceSets.main
                }
            }
        }

 

Ctrl + s to save it, now run, you will now see the name in game when using chat.

In game username

This was going to be a tut on how to login what used to work but I updated my account now to be a full Microsoft Minecraft Account and now login fails.

Edited by MissLexyShaodws on Sun, 11/06/2022 - 05:40