Skip to main content

For Mod Developers

1. Add the API dependency

Place HRTK-API.jar in your project’s libs/ directory and add it as compileOnly:
compileOnly means the API JAR is only needed at compile time. It’s not bundled into your mod JAR - annotations survive in bytecode but add zero runtime cost.

2. Declare optional dependency

In your manifest.json, add HRTK as an optional dependency:
This ensures your mod works perfectly on servers without HRTK. Tests are inert unless HRTK is installed.

3. Write tests

Create test classes anywhere in your source tree:

For Server Operators

1. Install the plugin

Download HRTK.jar and place it in your Hytale server’s mods directory: Singleplayer / local testing:
Dedicated server:

2. Start the server

HRTK will scan all loaded mods for test annotations on startup:

3. Run tests

Verify Installation

After setup, run /hrtk list to verify tests are discovered:
If no tests appear, check that:
  1. Your mod JAR is in the server’s mods folder
  2. Test classes have @HytaleTest annotations
  3. HRTK.jar is also in the same mods folder