Project icon LevelingCore
LevelingCore

A modern, flexible leveling system for Hytale

339
6 days ago
Game MechanicsAdventureUtility

Mob Leveling Modes

Updated Aug 25, 2026

Mob Leveling Modes define how a mob's level is dynamically calculated. These modes allow server owners to tailor difficulty based on players, geography, or instances.

The active mode is controlled via the LevelModeArray configuration value.

Behavior

  • Explicit NPC and boss overrides take priority.
  • A matching INSTANCE mapping takes priority when INSTANCE is enabled and is not included in the weighted average.
  • Remaining enabled modes with positive results are weighted
    • ZONE -> 0.60
    • NEARBY_PLAYERS_MEAN -> 0.10
    • BIOME -> 0.40
    • ENVIRONMENT -> 0.50
    • SPAWN_ONLY -> 0.20
  • Duplicate modes are ignored; missing mappings are skipped.
  • If no enabled mode returns a positive level, FallbackMobLevel is used (default 1).
  • Calculated base levels are randomized with LevelVariance and subject to the normal mob level cap.

SPAWN_ONLY

Description:
Uses a deterministic spawn base level derived from the NPC UUID.

Behavior:

  • Uses a UUID-seeded base level between 1 and 10, plus configured variance.
  • Does not depend on player location or world geography.
  • When combined with other modes, the final level can still change.
  • Ideal for static or RPG-style worlds

Use Cases:

  • Fixed difficulty zones
  • Hand-balanced encounters

NEARBY_PLAYERS_MEAN

Description:
Mob level is based on the average level of nearby players.

Behavior:

  • Detects players within a 40-block radius
  • Computes the mean player level
  • Rounds to the nearest whole number
  • Falls back to level 5 if no players are nearby

Use Cases:

  • Dynamic overworld scaling
  • Co-op friendly encounters
  • Prevents over- or under-leveled mobs

BIOME

Description:
Mob level is determined by the biome they are currently in.

Behavior:

  • Resolves the biome at the NPC’s actual X/Z coordinates using Hytale’s V1 world generator.
  • Uses case-insensitive biome-to-level mappings.
  • Skips this mode when the biome cannot be resolved or has no positive mapping.
  • Supports custom V1 biomes such as BetterBiomes and Acid Grounds without additional integrations.

Use Cases:

  • Thematic biome difficulty
  • Progressive exploration

Config Location:

mods/com.azuredoom_levelingcore/data/config/mobbiomemapping.csv

Config Example:

biome,lvl
River_Plains_Smooth,5

ZONE

Description:
Mob level is based on the current world zone.

Behavior:

  • Resolves the zone at the NPC’s actual X/Z coordinates using Hytale’s V1 world generator.
  • Uses the zone discovery name (not the region name) and case-insensitive zone mappings.
  • Skips this mode if the zone or a positive mapping is unavailable.

Use Cases:

  • MMO-style regions
  • Structured progression maps

Config Location:

mods/com.azuredoom_levelingcore/data/config/mobzonemapping.csv

Config Example:

zone,lvl
Emerald_Wilds,5

INSTANCE

Description:
Mob level is based on the current world instance.

Behavior:

  • Uses the instance/world name
  • Reads from instance-to-level mappings
  • Overrides other configured modes only when INSTANCE is enabled and a positive mapping matches.
  • Unmatched worlds continue through the remaining enabled modes.
  • Supports wildcard world-name patterns; avoid broad patterns that accidentally match the overworld.

Use Cases:

  • Dungeons
  • Raids
  • Scaled private instances

Config Location:

mods/com.azuredoom_levelingcore/data/config/mobinstancemapping.csv

Config Example:

instance,lvl
default,5

ENVIRONMENT

Description:
Mob level is based on the mob’s current environment ID at its world position. The system reads the environment from the chunk the mob is in and maps it to a configured level value.

Behavior:

  • Retrieves the mob’s world position
  • Determines the chunk at that position
  • Reads the environment ID from the chunk
  • Resolves the environment asset name from the registry
  • Skips this mode if:
    • The chunk does not exist
    • The environment asset cannot be resolved
    • No mapping exists for the environment name
  • Logs a warning when:
    • The chunk is missing
    • The environment asset is invalid or not found

Use Cases:

  • Dungeons with fixed difficulty
  • Raid environments
  • Private or instanced content
  • Custom world regions with defined difficulty tiers

Config Location:

mods/com.azuredoom_levelingcore/data/config/mobenvironmentmapping.csv

Config Example:

env,lvl
env_zone1_plains,5

Invalid or Unknown Modes

Unknown and empty modes are ignored. If no configured mode produces a positive base level, the system uses FallbackMobLevel (default 1). Nearby player scaling is never an implicit fallback.

Custom Biomes and Geographic Progression

For fixed geographic difficulty with optional instance overrides, use:

{
  "LevelModeArray": ["BIOME", "INSTANCE"],
  "FallbackMobLevel": 1,
  "LevelVariance": 0
}

Example mobbiomemapping.csv:

biome,lvl
BetterBiomes_Meadow,5
BetterBiomes_Brimstone_Flats,95
AG_Acid_Plains,85

The levels above are examples. Use the actual runtime biome names from your world generator. Mapping keys are trimmed and matched without regard to capitalization.

Test newly spawned, unlocked mobs with zero variance before restoring your preferred variance. Unlocked mobs can change level as they move across biome or zone boundaries. Existing locked mobs are not recalculated.

[!NOTE] BIOME and ZONE require the V1 world generator. For V2 worlds, use ENVIRONMENT with appropriate environment asset mappings where available. Environment IDs are not necessarily the same as biome names.

Powered byHytaleModding