A clean, generic starting point for creating Hytale server-side mods.
src/main/java/com/example/skeleton/Main.java: The main entry point of the mod.build.gradle: Gradle build configuration with dynamic Hytale path resolution.
This project requires the Hytale client to be installed so it can reference the HytaleServer.jar.
The build script tries to automatically detect your Hytale installation. However, for a consistent environment, it is recommended to explicitly set the path using a local.properties file.
We have provided templates for common operating systems. Rename the file matching your OS to local.properties:
- Windows: Rename
local.properties.windows->local.properties - Mac: Rename
local.properties.mac->local.properties - Linux: Rename
local.properties.linux->local.properties
Note: local.properties is git-ignored so your local path won't be committed.
To build the mod, open a terminal in the project directory and run:
gradlew build./gradlew buildThe compiled mod JAR will be generated in build/libs/.
This is a server-side mod. To use it:
- Copy the generated JAR from
build/libs/to your Hytale server'smodsfolder. - Start the Hytale Server.
- You should see "Hello, Hytale!" printed in the server console logs.