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
1. Java Development Kit (JDK)
Hytale modding requires Java 25 or later. We recommend using OpenJDK.
Windows
- Download OpenJDK 25 from Adoptium
- Run the installer with default settings
- Verify installation by opening Command Prompt and running:
java -versionmacOS
# Using Homebrew
brew install openjdk@25Linux (Ubuntu/Debian)
sudo apt update
sudo apt install openjdk-25-jdk2. Integrated Development Environment (IDE)
We recommend IntelliJ IDEA Community Edition for Hytale modding.
- Download from JetBrains website
- Install with default settings
- Launch and complete the initial setup wizard
3) 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. Add HytaleServer.jar Dependency
Before you can start modding, you need to add the HytaleServer.jar file as a dependency:
- Download HytaleServer.jar using the Hytale Downloader
- Add to IntelliJ IDEA:
- Click on "File" at the top left
- Go to "Project Structure"
- Go to "Libraries"
- Click on the + icon
- Select the HytaleServer.jar you downloaded
2) 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 MyFirstMod3. Open in IntelliJ IDEA
- Open IntelliJ IDEA
- Click "Open" and navigate to your
MyFirstModdirectory - IntelliJ will automatically detect it as a Maven project
- Wait for the project to index and dependencies to download
Next Steps
Now that you have your development environment set up with the plugin template:
- Customize the template - Edit the
pom.xmlandmanifest.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!
The plugin template includes:
- Pre-configured Gradle build system
- Example plugin structure
- Essential dependencies
- Development tools configuration