@lunnos/hyt
v2.4.0
Published
CLI tool for Hytale plugin development automation
Readme
HYT - Hytale Development Tool
A command-line interface for Hytale plugin development that automates project setup, building, and hot-reload development workflows.
Features
Quick Setup
- Automatic Java 25 detection and installation
- Hytale installation discovery
- Configuration management
Project Initialization
- Scaffolds new plugin projects from template
- Decompiles Hytale server JAR for reference sources (CFR)
- Configures Gradle build system
- Git repository initialization
Build System
- Gradle wrapper integration
- One-command builds
- Automatic JAR output to mods folder (use
--no-copyto skip)
Development Mode
- Optional file watching with auto-rebuild on changes (use
--watchflag) - Integrated Hytale server management
- Always builds and copies before server startup
- Live feedback with progress indicators
Requirements
- Node.js 18 or higher
- Java 25 (auto-installed if missing)
- Hytale installation
Installation
npm install -g @lunnos/hytAfter installation, the hyt command will be available globally.
Usage
Initial Setup
Configure Java and Hytale paths:
hyt setupOptions:
--java-path <path>- Specify Java executable manually--hytale-path <path>- Specify Hytale installation manually
Create New Plugin
hyt init my-pluginThis creates a complete project structure with:
- Plugin source template
- Hytale server files
- Decompiled reference sources
- Gradle build configuration
Options:
--without-docs- Remove documentation examples from the project--decompiler <cfr | vineflower>- Include decompiled reference sources (Takes longer)--skip-git- Skip git initialization
Build Plugin
cd my-plugin/Server/Plugins/my-plugin
hyt buildAutomatically builds your plugin and copies the JAR to the mods folder.
Options:
--no-copy- Skip copying JAR to mods folder
Development Mode
Start development mode to run your Hytale server:
cd my-plugin/Server/Plugins/my-plugin
hyt devThis will:
- Build your plugin
- Copy JAR to mods folder
- Start the Hytale server with your latest plugin
Note: The server does NOT auto-restart. When you make code changes, you must:
- Stop the server with Ctrl+C
- Make your changes
- Run
hyt devagain to rebuild and restart
Options:
--no-initial-build- Skip initial build on startup--watch- Enable file watching for live error checking (auto-rebuild on changes, but server restart still required)--debounce <seconds>- Seconds to wait after last change before rebuilding (default: 5)
Generate Reference Sources
Optionally generate decompiled Hytale server sources for API exploration:
hyt generate-referencesThis takes 5-10 minutes and creates reference sources in Server/Plugins/src-ref/. Useful for understanding the Hytale API and for IDE code completion.
Project Structure
my-plugin/
├── app/
│ └── src/ # Write your plugin code here
├── mods/ # Compiled plugin JARs
├── server/ # Hytale server files
├── Assets.zip # Game assets
├── build.gradle.kts # Build configuration
└── config.json # Server configurationConfiguration
Configuration is stored in ~/.hyt/config.json:
{
"javaPath": "/path/to/java",
"hytaleInstallPath": "/path/to/hytale"
}Credits
The default plugin template is provided by hytale-france/example-mod.
License
MIT

