-
Notifications
You must be signed in to change notification settings - Fork 23
Setting up workspace
mineLdiver edited this page Jul 23, 2023
·
3 revisions
We're going to use IntelliJ IDEA throughout this wiki, as it's the most supported IDE for modding Minecraft.
To setup a StationAPI workspace, you simply need to use the template repo.
There are two approaches to this.
It involves creating your own GitHub repo for your StationAPI workspace.
It's the better approach if you plan to make your mod open source or want any sort of GitHub integration from the start.
To generate your own GitHub repo with StationAPI:
- Go to the template repo's page and use
Use this template->Create a new repositorybuttons. - Choose the repo's name, description and visibility, and click
Create repository. - Open IntelliJ and click
Get from VCSbutton (orFile->New->Project from Version Controlif you have a project open already). - Choose GitHub, login if you haven't already, then choose the repo you've just created and click
Clone. - Wait until the project finishes importing.
If you don't want any GitHub integration or want to add it later:
- Go to the template repo's page and use
Code->Download ZIPbuttons. - Unzip the folder inside of the file you've just downloaded, and rename.
- Open IntelliJ, click
Openand choose the folder you've downloaded. - Wait until the project finishes importing.
If during project import an error occurred related to wrong Java version being used:
- Go to
File->Project Structure->Project Settings->Project - Set
SDKto a JDK 17, preferably Temurin.- If you don't have any JDK 17 in the SDK list:
- Click
Add SDK->Download JDK. - Choose
Version17andVendorEclipse Temurin (AdoptOpenJDK HotSpot)and clickDownload.
- Click
- If you don't have any JDK 17 in the SDK list:
- Close
Project Structureand openFile->Settings->Build, Execution, Deployment->Build Tools->Gradle. - Make sure
Gradle JVMis set toProject SDK. - Close settings and open Gradle tab on the right sidebar.
- Click the
Reload All Gradle Projectsbutton and wait until the project finishes importing.