Add some code to read uuid, username, and accessToken from the gradle home gradle.properties file, and pass the params to the client
@@ -151,6 +151,27 @@ minecraft {
workingDirectory project.file("run")
properties 'fml.earlyprogresswindow': 'false'
+ //The below if statements are to add args to your gradle.properties file in user home
+ // (DO NOT add them directly to the gradle.properties file for this project)
+ // Setting the below properties allows use of your normal Minecraft account in the
+ // dev environment including having your skin load. Each property also has a comment
+ // explaining what information to set the value to/format it expects
+ // One thing to note is because of the caching that goes on, after changing these
+ // variables, you need to refresh the project and rerun genIntellijRuns/genEclipseRuns
+ if (project.hasProperty('uuid')) {
+ //Your uuid without any dashes in the middle
+ args '--uuid', project.getProperty('uuid')
+ }
+ if (project.hasProperty('username')) {
+ //Your username/display name, this is the name that shows up in chat
+ // Note: This is not your email, even if you have a Mojang account
+ args '--username', project.getProperty('username')
+ }
+ if (project.hasProperty('accessToken')) {
+ //Your access token, you can find it in your '.minecraft/launcher_profiles.json' file
+ args '--accessToken', project.getProperty('accessToken')
+ }
+
mods {
mekanism {
sources(sourceSets.main, sourceSets.api)
