A simple Hytale plugin development template built with Gradle (Kotlin DSL) and Java 25.
Enhanced Fork: this project is an improved fork of the original template from CodyAdam, with additional features for easier development and server execution.
- Gradle
runServertask: no python dependency, pure gradle workflow 🤡 - Automatic Hytale detection: No need to manually copy server files anymore :3
- Dev mode with symlinks: Instant asset updates without rebuilding
- Manifest templating: Dynamic manifest generation from
gradle.properties
- JDK 25 (Adoptium, Temurin, whatever you want i dont care)
- Hytale installed via the official launcher
Edit gradle.properties to customize your plugin:
# Game Configuration
gamePatchline=release
# Plugin Information
pluginName=MyAwesomePlugin
pluginVersion=1.0.0
pluginGroup=com.yourname
pluginDescription=My awesome Hytale plugin
pluginMain=com.yourname.myawesomeplugin.MainPluginEdit app/src/main/generated/manifest.json to set your plugin metadata (uses variables from gradle.properties):
{
"Group": "$pluginGroup",
"Name": "$pluginName",
"Version": "$pluginVersion",
"Description": "$pluginDescription",
"Authors": [
{
"Name": "YourName",
"Email": "your.email@example.com",
"Url": "https://yourwebsite.com"
}
],
"Website": "https://yourplugin.com",
"Main": "$pluginMain"
}$ ./gradlew buildJAR output: app/build/libs/
$ ./gradlew runServer- Detects your Hytale installation (Windows/Linux/MacOS)
- Copies
HytaleServer.jarandAssets.ziptorun/folder - Builds your plugin
- Installs it to
run/mods/with symlinked assets - Starts the server
- Rename
net.example(insideapp/src/main/java) to your package path - Update package declaration in
Plugin.java - Update
pluginMainingradle.propertiesto match your main class - Update
pluginGroupingradle.properties
If Hytale is not in the default location, set the hytale_home property:
$ ./gradlew runServer -Phytale_home="/path/to/your/hytale"Or add it to gradle.properties:
hytale_home=/custom/path/to/hytaleDefault locations checked:
- Windows:
%appdata%\Hytale\install\release\package\game\latest - Linux:
~/.var/app/com.hypixel.HytaleLauncher/data/Hytaleor~/.local/share/Hytale - MacOS:
~/Library/Application Support/Hytale
$ ./gradlew installDevModThis creates:
- Code JAR: Compiled classes only
- Symlinked assets: Direct link to your
src/main/resourcesfolder
Benefits: Asset changes are reflected immediately without rebuilding!
build- Build the final release JARrunServer- Build, install, and run the serverinstallDevMod- Install dev version (code + symlinked assets)buildRelease- Build the distribution JARcleanMods- Clean only the mods folder