Building from Source
Requirements
- JDK 25 (the server's class version).
- Maven — the build runs offline once dependencies are cached.
- Python 3 — only to regenerate game data (bosses, items, loot tables).
- The game's
Assets.zip— only for the Python generators, which read the vanilla assets they build on.
Build
export JAVA_HOME="/path/to/jdk-25"
mvn -o clean package
The jar lands in target/Chambers-<version>.jar. The build runs the unit tests (24), among them LayoutGeneratorTest, which builds 300 dungeons of every tier with the pieces in the jar.
GroupManager is compiled against libs/groupmanager-3.3.1-beta.jar and never packaged.
Project Layout
| Path | Contents |
|---|---|
src/main/java/com/chambers/ | The plugin: run (instances, HUD, lives, gates), layout (dungeon generator), boss / kyros / varyn (boss fights), items (weapon and rune abilities), entrance, portal, party (GroupManager bridge), progress, systems (ECS systems), config, command. |
src/main/resources/ | The asset pack shipped in the jar: Server/ (prefabs, NPC roles, items, interactions, effects, drops, particles, sounds, world generation) and Common/ (models, textures, icons, UI). |
src/main/resources/chambers/catalog.json | Shapes of the jar's pieces larger than one cell. |
prefabs/src/ | The generators of the game data and the scripts of every room. |
art/ | The art pipeline (models, animations, particles, icons). Maintained separately. |
chambers-docs/ | This documentation site (Docusaurus, its own repository). |
Game Data Generators
The NPCs, items, loot tables and effects in src/main/resources/Server/ are written by Python scripts in prefabs/src/, not edited by hand. Edit the script and run it again:
python -I prefabs/src/<script>.py <path to Assets.zip>
| Script | Writes |
|---|---|
drops.py | The loot tables of every tier (Server/Drops/Chambers/). |
boss_guardian.py, boss_warchief.py, boss_sand_empress.py, boss_shadow_knight.py, boss_kyros.py, boss_varyn.py | Each boss: roles, combat evaluator, attacks, effects and sounds. |
minibosses.py | The tier 2, 4 and 5 mini-bosses and their runes. |
scaraks.py, patrols.py | Hive enemies; patrol variants and markers. |
item_*.py | The boss weapons, armour sets and runes. |
make_theme_kits.py --all | The infernal and outlander theme kits and their rooms, from the troll theme's. |
Room Scripts
Each theme has a folder in prefabs/src/<theme>/ with its kit.js. A room is built from prefabs/src/core.js (geometry, patrols, arenas, chests) plus the kit plus the room's script, through the PrefabMcp server (an MCP server that builds and stages Hytale prefabs). The built prefabs are copied into src/main/resources/Server/Prefabs/Chambers/Pieces/.