Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for hafiy_dev

Mobs Aren't Dumb Anymore. Every Mob Thinks Smarter.

Report SentientMobs?

Release
2.2.6

hafiy_dev released SentientMobs version 2.2.6 on July 2, 2026

SentientMobs v2.2.6

Teaching AI a Bit of Common Sense.

Before we begin, do consider joining our Discord server. It's where bug reports, feature suggestions, development updates, and the occasional sensible conversation tend to occur. Considerably more productive than arguing with the AI, as it happens.

This release is all about stability, reliability, and resilience. No flashy new features, just a rather large number of improvements designed to make the AI considerably less likely to trip over itself.

Improvements

Core AI

  • Improved overall null safety across multiple AI systems.
  • Added additional validation to prevent edge-case failures during behaviour updates.
  • Improved behaviour context validation and lifecycle management.
  • Enhanced herd behaviour updates after animals are attacked.

Herd AI

  • Improved leader detection reliability.
  • Added validation for predicted target locations.
  • Improved safety checks for personalities, behaviour contexts, and attack cooldowns.
  • Integrated the required SquadManager dependency.
  • Minor code clean-up for improved code consistency.

Iron Golem AI

  • Improved defend and punish behaviour validation.
  • Added additional target safety checks.
  • Fixed potential crashes related to strike tracking.
  • Added proper cleanup for temporary punish memories after behaviours finish.

Village AI

  • Improved null safety within Villager Panic Behaviour.
  • Cached Iron Golem locations to prevent issues if the entity is removed during execution.
  • Reduced redundant location lookups.
  • Fixed an edge case affecting village escort behaviour around community chests.

🐞 Bug Fixes

  • Fixed a cross-dimension AI issue where entities attempted to calculate distances between different worlds (e.g. Overworld <-> Nether), which could generate repeated IllegalArgumentExceptions and, under certain circumstances, affect server stability.
  • BaseBehavior.distanceTo() now validates world equality before performing distance calculations.
  • Cross-dimension distance checks now safely return Double.MAX_VALUE.
  • SmartSkeletonBehavior.findNearestTarget() now ignores entities located in different dimensions.
  • AI will now gracefully abandon targets that wander into another dimension instead of attempting the computational equivalent of measuring the distance to yesterday.

My Note

No shiny new features this time, just a great many AI behaviours learning not to panic, not to trip over null, and, perhaps most importantly, not to measure the distance between entirely different dimensions.

Servers should now enjoy cleaner logs, fewer exceptions, and AI with considerably better judgement than before.

Special thanks to Schasch for reporting the cross-dimension issue.

Information

Published onJuly 2, 2026
Downloads2

Platforms

Paper Paper (1.20-26.2)