Cobblemon KubeJS

Cobblemon KubeJS

Cobblemon KubeJS exposes Cobblemon data and events to KubeJS scripts.

von
2 Downloads
neoforgegame-mechanics
Server mit dieser Mod mieten

Screenshots

Cobblemon KubeJS Screenshot 1

Über diese Mod

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.

Verfügbare Versionen

Cobblemon KubeJS 1.0.1release
MC 1.21.1neoforge
30. Juni 2026
Cobblemon KubeJS 1.0.0release
MC 1.21.1neoforge
25. Juni 2026

Cobblemon KubeJS auf dem Server installieren

1

Server bestellen

Bestelle einen Minecraft Java Server mit mindestens 3 GB RAM (4 GB empfohlen).

2

neoforge Loader setzen

Wähle im Panel unter "Egg" den neoforge-Loader und die passende Minecraft-Version (1.21.1).

3

Mod installieren

Öffne den Mod-Browser im Dashboard und suche nach "Cobblemon KubeJS". Klicke "Installieren" – fertig! Alternativ: Lade die .jar via SFTP in den /mods Ordner.

Kompatibilität

Mod-Loader

neoforge

Minecraft-Versionen

1.21.1

Server-seitig

Erforderlich

Empfohlener RAM

4 GB(min. 3 GB)

Häufige Fragen

Cobblemon KubeJS Server crasht beim Start – was tun?

Häufigste Ursache: falsche neoforge-Version oder zu wenig RAM. Prüfe im Server-Log (latest.log), ob ein "OutOfMemoryError" oder "Mixin"-Fehler auftritt. Bei Mado Hosting: Stelle sicher, dass mindestens 3 GB RAM zugewiesen sind und der Loader zur Mod-Version passt (1.21.1). Über das Panel kannst du den Loader mit einem Klick wechseln.

Ist Cobblemon KubeJS mit neoforge kompatibel?

Cobblemon KubeJS unterstützt offiziell neoforge für Minecraft 1.21.1. Im Mado Dashboard werden inkompatible Loader-Kombinationen automatisch erkannt.

Server laggt mit Cobblemon KubeJS – wie optimiere ich die Performance?

Empfohlener RAM: 4 GB (+1 GB pro 8 Spieler). Prüfe mit /spark profiler, ob Cobblemon KubeJS den meisten Tick-Time verbraucht. Häufige Fixes: Server-View-Distance auf 8-10 reduzieren, bei Forge "performant" oder "starlight" als Zusatz-Mod installieren. Bei Mado Hosting läuft dein Server auf NVMe-SSDs mit dedizierten CPU-Kernen für minimale Latenz.

Modded Server mieten

Installiere Cobblemon KubeJS mit nur einem Klick auf deinem Server.

Empfohlener RAM
4 GBab €8/Monat
Min. 3 GB | +1 GB pro 8 Spieler
Jetzt Server erstellen
1-Klick Mod Installation
NVMe SSD Speicher
DDoS-Schutz inklusive

Details

Lizenz
MIT License
Server-seitig
Erforderlich

Unterstützte Versionen

1.21.1