Back to mods
Cobblemon KubeJS project artwork

CurseForge · Minecraft mod

Cobblemon KubeJS

Cobblemon KubeJS exposes Cobblemon data and events to KubeJS scripts.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Cobblemon KubeJS release should I use?

Updated 2 months ago
Latest stable file cobblemon_kubejs-neoforge-1.0.2.jar
Game version 1.21.1
Loader NeoForge

Cobblemon KubeJS cobblemon_kubejs-neoforge-1.0.2.jar targets 1.21.1 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. All 5 required mods have matching files.

Where it goes

Is Cobblemon KubeJS required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Cobblemon KubeJS cobblemon_kubejs-neoforge-1.0.2.jar need?

cobblemon_kubejs-neoforge-1.0.2.jar. Change the file and its required mods may change too.

All 5 required mods have matching files

Install Cobblemon, KubeJS, Kotlin for Forge, Better Advanced Tooltips and 1 more first. We found matching files for this game-version and loader setup. 3 come through another mod in the chain.

2 listed on this file 3 pulled in by those mods
Cobblemon Needed by Cobblemon KubeJS cobblemon_kubejs-neoforge-1.0.2.jar
required
Matching file found Matched file: Cobblemon v1.8.4 ~ NeoForge
KubeJS Needed by Cobblemon KubeJS cobblemon_kubejs-neoforge-1.0.2.jar
required
Matching file found Matched file: KubeJS NeoForge 2101.7.2-build.381
Kotlin for Forge Needed by Cobblemon
pulled in
Matching file found Matched file: Kotlin for Forge 5.13.0
Better Advanced Tooltips Needed by KubeJS
pulled in
Matching file found Matched file: better-advanced-tooltips-2101.1.0-build.5.jar
Rhino Needed by KubeJS
pulled in
Matching file found Matched file: Rhino 2101.2.7-build.85

3 extra mods were pulled in by other dependencies. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Cobblemon KubeJS without breaking your instance.

Built for Cobblemon KubeJS cobblemon_kubejs-neoforge-1.0.2.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use cobblemon_kubejs-neoforge-1.0.2.jar. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Cobblemon, KubeJS, Kotlin for Forge, Better Advanced Tooltips and 1 more first. We found matching files for this game-version and loader setup. 3 come through another mod in the chain.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside cobblemon_kubejs-neoforge-1.0.2.jar. It opens that exact file at the source.

About this project

What does Cobblemon KubeJS add?

Cobblemon KubeJS Bridge

Bring Cobblemon data, events, storage queries, administrative utilities, and client-side Pokedex displays into KubeJS.

Cobblemon KubeJS Bridge lets modpack developers build custom progression, quests, rewards, commands, interfaces, battle systems, and server mechanics using JavaScript.

Features

Cobblemon events

Listen to server-side events such as:

  • Pokedex progress changes
  • Pokemon scans and captures
  • Pokemon sent, recalled, fainted, gained, healed, or released
  • Experience gain and level-up
  • Evolution completion
  • Battle victory and defeat
  • Battle escape and forfeit
CobblemonEvents.pokemonCaptured(event => {
  event.player.tell(
    `You caught ${event.species} at level ${event.level}!`
  )
})

Pokedex API

Query a player's Pokedex progress:

  • Check whether a species was seen or caught
  • Count total seen or caught species
  • Count progress by elemental type
  • Read individual species progress
var caughtFire = CobblemonJS.pokedex.countCaughtByType(
  player,
  'fire'
)

Species API

  • Validate species IDs
  • List implemented species
  • Read species types
  • Validate elemental types
  • Find all species of a type

Both short and namespaced IDs are supported:

CobblemonJS.species.exists('charizard')
CobblemonJS.species.exists('cobblemon:charizard')

Party and PC API

Read safe Pokemon snapshots from a player's party and PC:

  • Search Pokemon by UUID
  • Count Pokemon by species or type
  • Keep party, PC, box, and slot information
  • Read level, HP, nature, ability, moves, IVs, EVs, status, held item, and more
var party = CobblemonJS.pokemon.getParty(player)
var pokemon = CobblemonJS.pokemon.getByUuid(player, pokemonUuid)

Administrative utilities

Trusted server scripts can:

  • Give a Pokemon to a player
  • Heal a player's party
  • Spawn a Pokemon near a player
  • Spawn a Pokemon at explicit coordinates without assigning an owner
CobblemonJS.admin.givePokemon(
  player,
  'charizard level=50 shiny=true'
)

CobblemonJS.admin.spawnPokemon(
  player.serverLevel,
  'rayquaza level=70',
  100,
  80,
  -50
)

Client-side Pokedex synchronization

The server synchronizes a read-only Pokedex cache to the owning client. Client scripts can use it for live tooltips and other interfaces without requesting data from the server every frame.

CobblemonClientJS.pokedex.countSeen()
CobblemonClientJS.pokedex.countCaught()
CobblemonClientJS.pokedex.countCaughtByType('fire')

The included examples contain a tested dynamic spyglass tooltip.

Requirements

  • Cobblemon
  • KubeJS
  • Rhino, as required by KubeJS
  • Java 21

Install the bridge on both the client and server when using the synchronized client Pokedex API.

Loader support

NeoForge is currently supported.

Fabric support is not available yet. The Fabric module is only a compile-time stub and does not expose events, APIs, or client synchronization.

Documentation and examples

The project includes:

  • Complete API documentation
  • Every function's parameters and return values
  • Full event field reference
  • Pokemon and move data model reference
  • Server and client script examples
  • Troubleshooting instructions

Links

Notes

  • Pokemon snapshots returned to scripts are read-only.
  • Administrative methods mutate gameplay state and should only be exposed through trusted scripts with appropriate permission checks.
  • Pokedex counts represent unique implemented species, not duplicate captures.
  • Unknown species, types, malformed UUIDs, and invalid spawn properties produce descriptive script errors.
  • Replacing the mod jar or networking code requires a full restart.

Project description from CurseForge.

Pick your setup

Cobblemon KubeJS by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Cobblemon KubeJS versions and loaders

3 of 3 releases match

Looking for an older file? The official CurseForge project page is in Resources.