promotional bannermobile promotional banner

RegionSpawnMobs

Take full control of how mobs spawn in your world. Define where they appear, how many, when, and under what conditions.
Back to Files

RegionSpawnMobs-2.0.2.jar

File nameRegionSpawnMobs-2.0.2.jar
Uploader
MATIASTGMMATIASTGM
Uploaded
Aug 7, 2026
Downloads
43
Size
706.8 KB
File ID
8596016
Type
R
Release
Supported game versions
  • 0.5

What's new

RegionSpawnMobs 2.0.2

Version 2.0.2 adds safe zone inheritance between related regions, per-mob light-level spawn control, and important fixes to the Region and Zone configuration interfaces.

Zone Inheritance

  • Zones in a child region can now select a zone from the parent region as their parentArea.
  • Inheritance is restricted to a zone belonging to the child's direct parent region in the same world.
  • The UI displays the parent zone name while storing and using its UUID, preventing conflicts between duplicate names.
  • When a child zone has no local entities, it automatically uses the entities and settings from the selected parent zone.
  • Adding entities directly to the child zone creates a local override, so the inherited list is not used while the local list is non-empty.
  • Spawning, maxAlive limits, and reconciliation now correctly recognize inherited zone settings.
  • A zone referenced as a parent by a child region cannot be removed accidentally.
  • Legacy references that use a zone name remain supported for compatibility.

Per-Mob Light Condition

  • Added maximumLightLevel to each mob's SpawnConditions in Regions, Zones, and Markers.
  • The value can be configured from 0 to 15:
    • 0 allows only complete darkness.
    • Intermediate values accept lighting up to the selected level.
    • 15 is the default and does not restrict spawning by light.
  • The condition is evaluated at the candidate position before the mob is spawned.
  • Light is averaged over an 8 x 4 x 8 volume, matching Hytale's local spawner behavior instead of reading a single block.
  • Solid blocks are excluded from the average.
  • Added a heightmap-based fallback to correctly recognize skylight in chunks where lighting data is not yet available or is incorrect.
  • A missing valid light reading safely blocks mobs that have an active light restriction.
  • Added detailed SPAWN_VERBOSE light diagnostics, including the average, configured maximum, sample count, and skylight corrections.

Dynamic Light Reconciliation

  • Added the Region option dynamicLightReconcile (Sync Mobs with Light Level).
  • When enabled, tracked mobs are checked again at their current position instead of only at their original spawn position.
  • Mobs whose current light exceeds their maximumLightLevel are removed by the reconciler.
  • When disabled, light controls spawning only and does not remove living mobs after environmental changes such as placing a torch.
  • Light reconciliation remains separate from time, weather, and other dynamic-condition reconciliation.

Region, Zone, and Mob UI

  • Added a mob-target dropdown that selects the Region itself or one of its Zones.
  • Fixed target selection incorrectly returning to the Region after choosing a Zone.
  • Adding, editing, and removing mobs now operates on the selected target correctly.
  • The Region list in the Zones screen is now sorted by distance from the player, with the nearest regions shown first.
  • Adjusted the Region dropdown to use a large fixed width, improving usability with many regions or long names.
  • Added a parent-zone dropdown with an explicit apply action to child zones.
  • Fixed parent-zone dropdown value submission and the resolution between the displayed name and stored UUID.
  • Improved validation messages for missing, invalid, or out-of-scope parent-zone references.

Entity IDs and Compatibility

  • Removed lowercase normalization from Zone mob IDs.
  • Entity IDs now preserve the exact letter casing supplied by Hytale, matching existing Region behavior.
  • Saving an entity again migrates legacy lowercase keys to the exact ID without creating duplicates.
  • Mob removal retains a compatibility lookup for older configurations that still contain normalized IDs.
  • Existing configurations remain compatible; new fields use safe defaults when absent.

Fixes

  • Fixed inherited entities not spawning inside child zones.
  • Fixed maxAlive calculation and entity-config resolution during inherited-zone reconciliation.
  • Fixed light readings for flying mobs in open air during daytime.
  • Fixed incomplete chunk lighting data being incorrectly interpreted as light level 0.
  • Improved spawn and reconciliation diagnostics for rejected light conditions.

Verification

  • Full project build completed successfully.

Version: 2.0.2

This mod has no additional files