OS Cobblemon Library 1.4.0
Curse Maven Snippet
What's new
1.4.0 - Entity proximity and ambient battle weather updates (2026-10-25)
Added
- Added
PokemonEntities.nearestPlayerDistanceSquared, a server-thread-only query that caches each Pokémon's squared distance to its nearest player for the current tick. - Added
BattleWeatherController.queueAmbientWeatherandAmbientBattleWeatherfor version-gated weather updates in an active Cobblemon 1.8.2 battle. - Ambient weather changes now produce normal Showdown weather records and are ignored while a move- or ability-controlled battle weather is active.
- Initial ambient weather is marked separately so it can be updated or cleared as the sampled world weather changes.
Compatibility
- The active-battle bridge is verified only for Cobblemon
1.8.2+1.21.1; other versions fail closed.
This mod has no additional files

