-
Notifications
You must be signed in to change notification settings - Fork 20
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 repository
buttons. - Choose the repo's name, description and visibility, and click
Create repository
. - Open IntelliJ and click
Get from VCS
button (orFile
->New
->Project from Version Control
if 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 ZIP
buttons. - Unzip the folder inside of the file you've just downloaded, and rename.
- Open IntelliJ, click
Open
and 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
SDK
to a JDK 17, preferably Temurin.- If you don't have any JDK 17 in the SDK list:
- Click
Add SDK
->Download JDK
. - Choose
Version
17
andVendor
Eclipse Temurin (AdoptOpenJDK HotSpot)
and clickDownload
.
- Click
- If you don't have any JDK 17 in the SDK list:
- Close
Project Structure
and openFile
->Settings
->Build, Execution, Deployment
->Build Tools
->Gradle
. - Make sure
Gradle JVM
is set toProject SDK
. - Close settings and open Gradle tab on the right sidebar.
- Click the
Reload All Gradle Projects
button and wait until the project finishes importing.