Step 1: Add the dependency
Step 2: Write a test class
Create a new file anywhere in your mod’s source:Step 3: Build your mod
Step 4: Install and run
- Place your mod JAR in your server’s mods folder
- Singleplayer:
%APPDATA%\Hytale\UserData\Mods\ - Dedicated server:
<your-server-root>/mods/
- Singleplayer:
- Place
HRTK.jarin the same mods folder - Start the server
- Run
/hrtk run
Expected output
Next steps
Test Suites
Organize tests with
@HytaleSuite and isolation strategiesTesting Surfaces
Explore all 12 testable surfaces: ECS, events, combat, stats, and more
Flow Tests
Write multi-step integration tests: spawn, damage, kill, verify loot
All Annotations
Reference for all 24 test annotations