[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
Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is this still possible? How…
Tue, 06/03/2025 - 10:28

Is this still possible? How do I do this?

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Excuse me, but... I don't…
Mon, 07/28/2025 - 13:33

Excuse me, but... I don't seem to find "Build" on the left-hand menu, only a bunch of things like "Resources" and "Mod elements"

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh wait nvm I found it…
Mon, 07/28/2025 - 13:48

Oh wait nvm I found it

Thanks!

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But why does it say "Build…
Mon, 07/28/2025 - 13:52

But why does it say "Build failed"

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The whole thing says:plugins…
Mon, 07/28/2025 - 13:55

The whole thing says:
plugins {

    id 'eclipse'

    id 'net.neoforged.moddev' version '2.0.78'

}



version = '1.0'

base.archivesName = "modid"



java.toolchain.languageVersion = JavaLanguageVersion.of(21)



neoForge {

    version = "21.4.123"



    runs {

        client {

                    client {}

            def mcreatorJvmOptions = System.getenv('MCREATOR_JVM_OPTIONS')

            if (mcreatorJvmOptions) {

                mcreatorJvmOptions.split("\\s+").findAll { it.trim() }.each { arg ->

                    jvmArgument(arg)

                }

            }

        }

        server {

            server()

        }



        configureEach {

            systemProperty 'forge.logging.markers', 'REGISTRIES'

            logLevel = org.slf4j.event.Level.DEBUG

        }

    }



    mods {

        mcreator {

            sourceSet sourceSets.main

        }

    }

}



tasks.withType(JavaCompile).configureEach {

    options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation

}



apply from: 'mcreator.gradle'
 

But I don't seem to 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
                }
            }
        }

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And now I can't run the…
Mon, 07/28/2025 - 13:58

And now I can't run the whole thing anymore :(