Skip to content

Latest commit

 

History

340 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hytale Modding Handbook

A Hytale server-plugin & asset API reference, with the descriptions, gotchas, and working examples to build with.

Documentation

Every page under docs/ is listed below; verify-docs.sh fails when one is not. Full index · Repo structure

The docs/ directory contains comprehensive API documentation:

Getting Started

Core Systems

  • Components - Entity Component System (ECS)
  • Codecs - Serialization and data persistence
  • Networking - Network protocols
  • Math - Vectors, matrices, shapes

Commands & UI

World & Environment

Entities

Combat & Effects

Items

World Generation

Interactions

Assets & Events

Utilities

Examples

Demonstrates the command system with:

  • Simple no-argument commands
  • Commands with position arguments

Demonstrates the UI system with:

  • Opening custom UI pages
  • Toggling HUD components
  • Loading .ui definition files

Demonstrates the inventory API with:

  • Adding items with transaction handling
  • Clearing inventory sections
  • Inspecting inventory contents
  • Sorting storage by name/type/rarity

Demonstrates the ECS ticking-system pattern with:

  • An EntityTickingSystem that runs every tick on the world thread
  • Counting entities by component (Total/Players/NPCs/Other)
  • Pushing live values to a CustomUIHud overlay

A no-code, no-art Pack (pure JSON, no Java) for beginners:

  • Adds a custom food item by extending the real Template_Food
  • Reuses an existing in-game icon and real heal/buff effects — nothing to compile or draw
  • Teaches the "copy a template, override a few fields" pattern at the heart of JSON modding

Requirements

  • Hytale installed (uses HytaleServer.jar from the local install)
    • Windows: %APPDATA%\Hytale\install\release\package\game\latest\Server\
    • Linux (Flatpak launcher): ~/.var/app/com.hypixel.HytaleLauncher/data/Hytale/install/release/package/game/latest/Server/
  • Java 25+
  • Gradle (wrapper included)

The build resolves the jar automatically per-platform via examples/hytale-paths.gradle.

Building

Each example can be built independently.

Windows:

cd examples\commands
build.bat        :: build
deploy.bat       :: build and deploy to the mods folder

Linux / macOS (use the Gradle wrapper directly — the .bat scripts are Windows-only):

cd examples/commands
./gradlew jar    # build (produces build/libs/*.jar)

Deployment

Copy the built JAR from build/libs/ to the mods folder:

  • Windows: %APPDATA%\Hytale\UserData\Mods\
  • Linux (Flatpak launcher): ~/.var/app/com.hypixel.HytaleLauncher/data/Hytale/UserData/Mods/

Maintenance

The maintenance/ directory holds maintainer-only tooling — a documentation regression checker and the asset baseline used to detect game-build drift. It is not needed to read the docs or build the examples; see maintenance/README.md if you're keeping the repo in sync with a new Hytale build.

License

MIT License - see LICENSE for details.

About

The Hytale Modding Handbook — a server-plugin & asset API reference with the descriptions, gotchas, and working examples.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages