Is there a way for me to log in to my actual minecraft account when developing? #1618
-
I'm using IntelliJ and when I run the Minecraft Client configuration, how do I make it so that I can use my real MC account instead of having a random Player___ account. I heard you could use --username and --password, but I tried it and it says Running mc 1.17.1 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Minecraft itself doesn't use a password, it uses an access token. You can replicate what the launcher does: Then the parameters are: The userType is either legacy or mojang depending upon what account you have. |
Beta Was this translation helpful? Give feedback.
-
I recommend putting a mod like Auth Me in your dev environment instead of messing with command-line variables. IIRC that can leak sensitive info into logs if you're not careful. (Could be very wrong though!) |
Beta Was this translation helpful? Give feedback.
-
I have found the solution. Maybe it can be helpful for anybody.
"ygg": {
"token": "your_token"
}
|
Beta Was this translation helpful? Give feedback.
-
Dev auth is also a solution |
Beta Was this translation helpful? Give feedback.
I recommend putting a mod like Auth Me in your dev environment instead of messing with command-line variables. IIRC that can leak sensitive info into logs if you're not careful. (Could be very wrong though!)