Links
Tags
Creators
Details
1.0.0
Compatibility
Required content
Changes
Cobblemon Environment Interactions
Turn your Cobblemon partners into useful field companions.
Cobblemon Environment Interactions adds Pokemon-powered mining while riding a Cobblemon Pokemon or commanding one nearby companion Pokemon.
Supported stack:
- Minecraft
1.21.1 - Fabric Loader
0.18.4+ - Fabric API
0.116.11+1.21.1 - Cobblemon
1.7.3+1.21.1 - Java
21
Gameplay
Pokemon mining is disabled by default to prevent accidental world damage.
Press V to toggle Pokemon mining on or off. When enabled:
- Left click while riding a Cobblemon Pokemon to mine with that Pokemon.
- Sneak-left-click while exactly one owned Pokemon is out within
12blocks to command that companion Pokemon. - If more than one owned Pokemon is out nearby, companion mining is refused until only one is out.
Mining uses the acting Pokemon's stats:
- Attack controls impact radius.
- Special Attack controls range and helps projectile speed.
- Speed lowers cooldown and helps projectile speed.
- The detected primary type controls the configured visual flavor.
- Dual-type Pokemon with Normal plus another type prefer the non-Normal type.
The projectile is aimed from the Pokemon to the block or point under the player's cursor. Blocks are broken only on impact. Bedrock, unbreakable blocks, and wither-immune blocks are skipped. The mod also calls Fabric's block-break event before breaking blocks so other mods have a chance to veto mining.
Visual Config
On first launch, the mod creates:
config/cobblemon-environment-interactions.json
Each Pokemon type has:
mode:cobblemon,vanilla, orbothmove: Cobblemon action-effect move nameparticle: vanilla particle idblock: block id used whenparticleisminecraft:blocksound: vanilla sound event idsoundCooldownTicks: minimum ticks before the same fallback sound can restart
Example:
"rock": {
"mode": "cobblemon",
"move": "rockthrow",
"particle": "minecraft:block",
"block": "minecraft:stone",
"sound": "minecraft:block.tuff_bricks.break",
"soundCooldownTicks": 12
}
Default Cobblemon move mapping:
- Normal:
quickattack - Fire:
flamethrower - Water:
watergun - Electric:
thunderbolt - Grass:
razorleaf - Ice:
icebeam - Fighting:
closecombat - Poison:
sludgebomb - Ground:
mudbomb - Flying:
aerialace - Psychic:
psybeam - Bug:
leechlife - Rock:
rockthrow - Ghost:
shadowball - Dragon:
willowisp - Dark:
scaryface - Steel:
flashcannon - Fairy:
moonblast
Available Cobblemon action-effect move names in Cobblemon 1.7.3+1.21.1:
absorb, acid, acidspray, aerialace, amnesia, aurorabeam, bite, bodyslam, bubble, bubblebeam, bulldoze, bulletpunch, closecombat, confusion, cottonguard, crunch, doubleteam, dragonclaw, eggbomb, ember, eruption, explosion, fireblast, firepunch, firespin, flameburst, flamecharge, flamethrower, flamewheel, frostbreath, frustration, generic/physical_normal, generic_move, gigadrain, growl, haze, hiddenpower, hornattack, hyperfang, hypnosis, icebeam, icepunch, iceshard, icywind, infestation, kinesis, lavaplume, leechlife, leechseed, leer, lick, magicalleaf, megadrain, minimize, mist, mudbomb, mudsport, mysticalfire, nastyplot, oldscratch, poisonfang, poisongas, poisonpowder, pound, powder, powdersnow, present, protect, psybeam, psychic, pursuit, quickattack, ragepowder, razorleaf, return, rockthrow, sandattack, scaryface, scratch, seedbomb, seismictoss, selfdestruct, shadowball, shadowclaw, sing, sleeppowder, sludge, sludgebomb, smokescreen, spore, stomp, stringshot, stunspore, superfang, swordsdance, tackle, tailwhip, thunder, thunderbolt, thunderpunch, thundershock, thunderwave, toxic, watergun, waterpulse, watersport, willowisp, withdraw.
If a configured move has no Cobblemon action effect, the mod falls back to Cobblemon's generic_move when available and vanilla particles/sounds when needed.
Multiplayer
Install the same jar on the client and server.
The server validates that the player is riding a Cobblemon Pokemon or has exactly one owned companion Pokemon nearby. The client toggle only controls whether the local player intercepts left click for Pokemon mining.
Test Checklist
- Start Minecraft with Fabric API, Cobblemon, and this mod.
- Enter a world.
- Press
Vand confirm the action bar says Pokemon mining is enabled. - Ride a Cobblemon Pokemon and left click toward blocks.
- Send out exactly one owned Pokemon, stand within
12blocks, sneak-left-click toward blocks. - Confirm blocks break on impact and the configured visuals play.
- Press
Vagain and confirm normal mining is no longer intercepted.
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:Gso5otOx:hH6y2jyM"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:Gso5otOx:hH6y2jyM"
}

