Hytale Plugin Template#
A ready-to-use starting point for creating Hytale server plugins with Java, or Kotlin. If you've been using the Asset Editor and want to start writing server-side logic — custom commands, event handling, gameplay systems — this is the simplest place to begin.
How to start?#
- Copy the template by downloading it or using the "Use this template" button.
- Configure or Install the Java SDK to use the latest 25 from JetBrains or similar.
- Set up Hytale path (required for WSL/Windows users):
- Set the
HYTALE_HOMEenvironment variable to point to your Hytale installation directory:- Windows:
C:/Users/<username>/AppData/Roaming/Hytale - WSL:
/mnt/c/Users/<username>/AppData/Roaming/Hytale
- Windows:
- Set the
- Open the project in your favorite IDE, we recommend IntelliJ IDEA.
- Run the devserver:
gradle devServer
This project uses Gradle via mise. Ensure you have
gradleavailable in your PATH.
With that you will be prompted in the output to authorize your server, and then you can start developing your plugin while the server is live reloading the code changes.
From here, the HytaleModding guides cover more details!
Scaffoldit Plugin#
While there are multiple plugins made for Hytale, the template currently uses a zero-boilerplate one where you only need the absolute minimum to start. However, you do have access to everything as normal if you know what you are doing.
For in-depth configuration, you can visit the ScaffoldIt Plugin Docs.
WSL (Windows Subsystem for Linux) Setup#
Running the dev server in WSL while Hytale is installed on Windows is fully supported:
- Ensure Hytale is installed on Windows via the Hytale Launcher
- Set the
HYTALE_HOMEenvironment variable to your WSL path:- Example:
export HYTALE_HOME=/mnt/c/Users/<username>/AppData/Roaming/Hytale - Add this to your shell profile (e.g.,
~/.bashrcor~/.zshrc) to make it persistent
- Example:
- Run
./setup-wsl.shto configure Gradle (one-time setup) - Start the server:
gradle devServer
The setup script writes the Hytale path to your global Gradle configuration (~/.gradle/gradle.properties), which is the standard location for machine-specific settings.
Troubleshooting#
- Gradle sync fails in IntelliJ – Check that Java 25 is installed and configured under File → Project Structure → SDKs.
- Build fails with missing dependencies –
Run
./gradlew build --refresh-dependencies. Make sure you have internet access! - Permission denied on
./gradlew– Runchmod +x gradlew(macOS/Linux). - Hot-reload doesn't work – Verify you're using JetBrains Runtime, not a regular JDK.
- "Assets are not present" error –
Make sure
HYTALE_HOMEenvironment variable is set correctly and Hytale is installed on Windows. Run./setup-wsl.shto configure Gradle.
Resources#
License#
Add your own after copying the template, though we recommend using MIT, BSD, or Apache to keep the modding community open!