Hylight
Hylight is a Gradle plugin designed to simplify creating Hytale plugins.
Hylight is unstable software! There is missing functionality and possibly bugs. Use at your own risk during this early development phase.
Quick Start
We're planning to release a plugin template for Hylight soon. Until then, follow these instructions to get started.
1. Create a New Project
Create a new Gradle-based project in your IDE of choice (IntelliJ IDEA, Eclipse, VS Code, etc.).
2. Enable the Plugin
Add the Nexusrealms Maven repository to your settings.gradle:
pluginManagement {
repositories {
maven {
name = 'Nexusrealms'
url = 'https://maven.riftrealms.de/releases'
}
mavenCentral()
gradlePluginPortal()
}
}
Apply the plugin in your build.gradle:
plugins {
id 'de.nexusrealms.hylight' version "0.1.0"
}
3. Set Up the Hytale Downloader
- Download the Hytale Downloader CLI
- Extract the archive
- Copy the appropriate executable for your platform into your project directory
4. Configure the Downloader Path
Create a gradle.properties file in your project root (if it doesn't exist) and set the path to the downloader:
# Set this to match your executable filename
hd=hytale-downloader-windows-amd64.exe
Available executables:
hytale-downloader-windows-amd64.exe- Windowshytale-downloader-linux-amd64- Linux
5. Add Dependencies
Run the addDependency Gradle task:
./gradlew addDependency
On the first run, you will need to authenticate the downloader via OAuth. Watch the console for authentication links.
6. Start Modding!
You're now ready to create your Hytale plugin:
- Add a
manifest.jsonto describe your plugin - Create your main plugin class
- Write your code!
7. Run Your Plugin
When you want to test your plugin on a local server, run:
./gradlew runServer
Important Notes
.gitignore
Make sure to add the following to your .gitignore:
# Hytale Downloader - use the name you've used
hytale-downloader-windows-amd64.exe
.hytale-downloader-credentials.json
This prevents accidentally committing the downloader executable and your OAuth credentials.
Support
Need help? Join our Discord server for support and discussions.