CobblemonNPCSPRO banner
CobblemonNPCSPRO icon

CobblemonNPCSPRO

A server-side addon for Cobblemon where we can easily create battle NPCs. The idea is simple: we will create NPCs that are: invulnerable, persistent, and...

00
cobblemon-fabricServer1.21.1mod

CobblemonNPCSPRO adds a server-side helper for spawning protected Cobblemon battle NPCs.

Features:

  • /battlenpc create <name> <npc_level> <pokemon_specs> (alias /cobbnpc) spawns an NPC a short distance in front of the caller; add ai_skill before pokemon_specs to override the default AI skill of 3.
  • pokemon_specs are semicolon-separated Cobblemon property strings (example: pikachu level=30; charizard nature=bold level=50); unspecified levels default to the provided npc_level.
  • Spawned NPCs are tagged (cobblemonnpcspro:battle_npc), invulnerable, projectile-immune, non-leashable, and flagged to persist so they will not despawn or die.
  • Right-clicking the NPC with an empty hand (or anything except the NPC Editor while in creative) immediately starts a singles battle against its stored party; the NPC heals its party before each fight.
  • NPC parties are saved to the world with the NPC’s name set as the original trainer for its Pokémon.

Notes and limitations:

  • Battles always use a singles format and the player’s active party; there is no removal/edit command for existing NPCs beyond standard entity management.
  • Spawn positioning is simple (just ahead of the player) and the NPC uses the dummy appearance unless further customized with other tools.