2 | Setting up the workspace
By far one of the most time consuming parts of this tutorial.
Last updated
Was this helpful?
By far one of the most time consuming parts of this tutorial.
Last updated
Was this helpful?
Open IntelliJ and click "New Project". Follow the instructions posted below.
Name it as your client name, then click finish.
You get to decide the following things:
Project Name:
The name of your client.
Group Name:
Now just replace all the:
GROUP_NAME
's inside the build.gradle with your Group Name you decided earlier.
BASE_NAME
's inside the build.gradle with your Project Name.
PROJECT_NAME
's inside your build.gradle with your Client Name.
Open the file gradle-wrapper.properties
It should look roughly like this
Where the line distribution is, change the distributionUrl
so the version is 4.7
, like so:
Then click the Load Gradle Changes button on the top right.
Are you getting an error that looks similar to this?
I'm not sure what the exact solution to this error is, but I ended up fixing it by running a bunch of other gradle tasks ¯\_(ツ)_/¯
This will take a bit of time, so just wait for it to download and install gradle
Create the file mixins.PROJECT_NAME.json
, with the word PROJECT_NAME
replaced with the project name that you decided on earlier, in the folder src/main/resources
Inside mixins.PROJECT_NAME.json
add the follow json
For example if my GROUP_NAME
was me.ddozzi
and my PROJECT_NAME
was ExampleClient
this would be my json:
In the java
folder outlined below, create a folder structure separated by dots, with your project name, and a mixins folder
For example, if my group ID was me.ddozzi
, and my project name was ExampleClient
, I would create a folder structure like so
If you're missing the src
folder, you'll have to delete the current project, and start again from the beginning.
Run the Task :setupDecompWorkspace
which can be found here:
Next, run the task :genIntellijRuns
, this should be very quick.
Click on the dropdown next to the run icon, and select Edit Configurations
You'll see that Minecraft Client
is errored, but that's totally normal. Once you're in the Edit Configurations
Menu, change the -cp
to PROJECT_NAME.main
, click apply, then exit.
Congrats! You've set up the workspace! In the following tutorials, we can actually start making things!
You won't be able to run your client just yet, as we haven't created a tweaker. But, we'll get to that in the next tutorial
Open the build.gradle inside your project, then paste the from here into the one in your project.
This is a top level layout of your package structure, please if you do not understand what it is
.