
CRZ:CobblemonFieldMoves
Server-side Fabric mod for Minecraft 1.21.1 + Cobblemon. Use your Pokemon's moves in the overworld while riding them.
1.1K
6
1.1K
6
Список изменений
Fix 1: Multi-Pokemon Chat Spam (CobblemonFieldMod.kt)
- Problem: registerMountDetection() ran every tick and picked the closest Pokemon. With 2+ Pokemon sent out, the "closest" one kept changing as they walked around, triggering 5-8 chat messages each time it switched.
- Fix:
- Stable UUID tracking: Once a sent-out Pokemon is detected, it stays tracked until it's recalled, dies, or goes out of range (64 blocks). No more flickering between Pokemon.
- Riding check stays every tick (O(1), just checks player.vehicle)
- Sent-out Pokemon check throttled to every 20 ticks (1 second) instead of every tick
- Only searches for a new Pokemon when the currently tracked one becomes invalid
Fix 2: Logger Spam Reduction
- CobblemonFieldMod.kt: Changed LOGGER.info() to LOGGER.debug() for per-action logs (move cycling, attack detection). Reduced init logging from ~15 messages to 2.
- FieldMoveHandler.kt: Changed LOGGER.info() to LOGGER.debug() for "executing move", "cancelled by event", "executed successfully".
- MoveExecutor.kt: Changed LOGGER.info() to LOGGER.debug() for move execution, ActionEffect execution, ranged hit damage, and melee hit damage logs.
- FieldMoveConfig.kt: Reduced config init from ~20 verbose log lines to 2 essential messages (loaded/created).
Файлы
CobblemonFieldMoves-1.0.0.jar(146.99 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.1.1
Загрузчики
Fabric
Версии игры
1.21.1
Загрузок
78
Дата публикации
2 мес. назад