OreGenerator is a data-driven ore generation framework for Hytale with per-zone and per-biome overrides. Add custom ores via JSON packs or Java plugins.
OreGenerator is a data-driven framework that lets you customize ore generation in Hytale. Whether you want to tweak existing ore distributions or add entirely new ores, this framework makes it possible through simple JSON configuration.
What Does This Mod Do?
OreGenerator provides a flexible system for controlling how ores spawn in your world. It supports per-zone and per-biome overrides, letting you fine-tune ore distribution for different areas of the map.
How It Works
- The framework loads every
Server/OreGeneration/*.jsonit finds in mods/packs - Each config maps replaceable rock blocks to ore variants
- Zone/biome keys must match engine names (use
/player zoneto check)
Adding Ores via Pack (JSON Only)
- Create a pack with
Server/OreGeneration/your_ore.json - Drop the pack into
mods/and restart - The framework auto-loads all configs from packs at startup
Adding Ores via Plugin (Java + JSON)
- Add the framework as a dependency in your plugin manifest:
"LYIVX:OreGenerator": "*" - Bundle your configs in
src/main/resources/Server/OreGeneration/ - Optional: use
config/OreGenerator/*.jsonto override configs at runtime
Configuration Example
{
"defaults": {
"surface": {
"height": { "min": 60, "max": 120 },
"veinsPerChunk": 2,
"veinSize": { "min": 5, "max": 10 },
"spawnChance": 0.8
},
"cave": {
"height": { "min": 10, "max": 60 },
"repeat": { "min": 15, "max": 20 },
"veinSize": { "min": 5, "max": 10 },
"spawnChance": 1.0
}
},
"oreByBlock": {
"Rock_Stone": "Ore_Coal_Stone",
"Rock_Sandstone": "Ore_Coal_Sandstone"
}
}
Height Distribution
heightcontrols the min/max Y rangeheightExponentcontrols vertical bias:1.0is uniform,> 1.0skews lower,< 1.0skews higher
Surface vs Cave Blocks
surfaceis the biome/overground pass (lower density, biome-tuned)caveis the cave pass (repeat-style attempts, denser underground)
Who Is This Mod For?
OreGenerator is ideal for:
- Mod developers adding custom ores to Hytale
- Server admins wanting to adjust ore distribution
- Pack creators building custom gameplay experiences