Creators
Details
Licensed MIT
Published 8 months ago
Updated 8 months ago
All versions
1.1.1
Release
CRZ:CobblemonFieldMoves 1.1.18 months ago 101
Compatibility
Minecraft: Java Edition
1.21.1
Platform
Fabric
Supported environments
Server-side
Singleplayer
Changes
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).
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:mMymctME:sM12HqoG"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:mMymctME:sM12HqoG"
}

