Setting Up Your Development Environment
Learn how to set up your development environment for modding Hytale.
This guide will walk you through setting up a complete development environment for Hytale modding, including all necessary tools and dependencies.
Prerequisites
Before we begin, make sure you have:
- A computer running Windows 10/11, macOS, or Linux
- At least 8GB of RAM
- 10GB of free disk space
- Administrative privileges on your system
Required Software
Integrated Development Environment (IDE)
We recommend IntelliJ IDEA Community Edition for Hytale modding. If you use IntelliJ IDEA, almost everything is built-in. You can clone a template, open a new project, and start working right away!
- Download from JetBrains website
- Install with default settings
- Launch and complete the initial setup wizard
When opening a project, wait for indexing to finish, then start coding. Now, IDEA may say "No JDK configured" at the top of the source file you have. In that case, you can click Download JDK and choose JetBrains JDK 25.
If IDEA opened the project without errors, your environment is ready.
More details by JetBrains help page, where we recommend that you also check the SDK configuration guide.
We recommened following
TheNullicorn's guide to ensure
you are using the correct Nonnull in your projects.
What the IDE Does for You
When opened in IntelliJ IDEA, the project automatically:
- Detects and configures Gradle or Maven
- Downloads all dependencies
- Sets up project structure and classpaths
- Configures run/build tasks
You do not need to manually install or configure Maven or Gradle if you stay inside the IDE.
Skip to the Setting Up Your Workspace.
Manual Setup: Java Development Kit (JDK)
For any other setup, you will need to install and configure your system to have and load Java. Hytale modding requires Java 25 or later. We recommend using OpenJDK.
Windows via Installer
- Download OpenJDK 25 from Adoptium
- Run the installer with default settings
- Optionally enable feature
Set or Override JAVA_HOME variableto resolve version related build issues with your project.
- Optionally enable feature
- Verify installation by opening Command Prompt and running:
Windows via Scoop
- Install Scoop via PowerShell using scoop.sh
- Install OpenJDK 25:
scoop bucket add java
scoop install java/openjdk25macOS
- Install Brew via Terminal using brew.sh
- Install JDK via Homebrew:
brew install openjdk@25If java --version shows "Unable to locate a Java Runtime", add OpenJDK to your PATH:
echo 'export PATH="$(brew --prefix)/opt/openjdk@25/bin:$PATH"' >> ~/.zshrc
source ~/.zshrcLinux (Ubuntu/Debian)
- Install JDK via the built-in package repository:
sudo apt update
sudo apt install openjdk-25-jdkVerify installation:
Run the following command to see what version of Java you have:
java -versionJava Build Tool (Optional)
We recommend using a Gradle Wrapper for managing dependencies and building your Hytale plugins. It provides benefits by eliminating the need for a system-wide Gradle installation and ensuring consistent Gradle versions across different environments. (Alternatively you can use Maven, but this guide focuses on Gradle since it is the default for our plugin template.)
The plugin template in the following sections includes a Gradle Wrapper, so you can skip this step if you plan to use the template.
Choosing Gradle (if not using the template)
If you prefer to install Gradle manually, follow these steps:
- Visit the official website: https://gradle.org/releases/
- Download the newest gradle binary:
gradle-9.3.1-bin.zip(Binary zip archive) - Unzip it
- Add the
gradle-9.3.1/bin/folder to your PATH
You can now try the command gradle -version to verify Gradle is installed correctly. Make sure to do this in a fresh new terminal instead of one you had opened from before!
Choosing Maven (if not using the template)
If you prefer to use Maven instead of Gradle, follow these steps to install Maven:
- Visit the official website: https://maven.apache.org/download.cgi
- Download this file:
apache-maven-3.9.12-bin.zip(Binary zip archive) - Unzip it
- Add the
apache-maven-3.9.12/bin/folder to your PATH
You can now try the command mvn -version to verify Maven is installed correctly. Make sure to do this in a fresh new terminal instead of one you had opened from before!
Setting Up Your Workspace
1. Clone the Plugin Template
Instead of creating an empty directory, we'll use the official Hytale plugin template:
# Clone the template repository
git clone https://github.com/HytaleModding/plugin-template.git MyFirstMod
cd MyFirstModIf you don't have Git installed, you can download the ZIP file from the repository page and extract it to a folder named MyFirstMod.
2. Open Plugin in your IDE
- Open Your IDE (e.g., IntelliJ IDEA)
- Click "Open" and navigate to your
MyFirstModdirectory - Most IDEs like IntelliJ will automatically detect it as a Gradle project
- Wait for the project to index and dependencies to download
Alternate Approach: Hytale Dependency
If you prefer to set up your project from scratch without using the template and importing the hytale dependencies manually, ensure your build configuration includes the Hytale repositories and dependencies:
For Gradle, add the following to your build.gradle.kts:
repositories {
mavenCentral()
maven {
name = "hytale"
url = uri("https://maven.hytale.com/release") // Or "hytale-pre-release" for pre-release versions
}
}
dependencies {
// + here means the latest version, but you can hard-wire any known version!
implementation("com.hypixel.hytale:Server:+")
}For Maven, add the following to your pom.xml:
<project>
<repositories>
<repository>
<id>hytale-release</id> <!-- Or "hytale-pre-release" for pre-release versions -->
<url>https://maven.hytale.com/release</url> <!-- Or "https://maven.hytale.com/pre-release" -->
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.hypixel.hytale</groupId>
<artifactId>Server</artifactId>
<!-- Replace with latest version, Hytale provides jars for the last five releases -->
<version>LATEST_VERSION_HERE</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>Next Steps
Now that you have your development environment set up with the plugin template:
- Customize the template - Edit the
settings.gradle.kts,build.gradle.ktsandmanifest.jsonfile to change your mod's name and details - Explore the code structure - Familiarize yourself with the template's organization
- Start modding - Begin writing your first Hytale plugin!
Learn how to:
and more! Explore the documentation to learn about all available features and best practices.