All the Mods Factory Guide
Cobblemon for server admins

Cobblemon for server admins

What All the Mons changes in Cobblemon's config, the settings worth knowing, commands and permissions, and where Pokémon are saved.

Applies to: All the Mons 2.2.0

Defaults are from Cobblemon 1.8.4’s config class. The pack’s values are from its config/cobblemon/main.json.

What the pack changes#

Only two settings differ from Cobblemon’s defaults: measured

KeyDefaultAll the Mons
defaultBoxCount40100
pastureMaxWanderDistance3264

Everything else, including experienceMultiplier (2.0), pokemonPerChunk (1.0) and shinyRate (8192), is the default. defaultBoxCount only applies when a player’s PC is first created. Use /boxcount for players who already have one. read

Settings worth knowing#

Reload them with /cobblemonconfig reload. read

AreaKeys
Spawning on and offenableSpawning; worldSpawningBlocklist lists dimensions with no spawns
Spawn densitypokemonPerChunk (1), maximumSpawnsPerPass (8), ticksBetweenSpawnAttempts (20)
Spawn rangeminimumSpawningZoneDistanceFromPlayer / maximum… (16 / 64), spawningZoneDiameter (8: bigger is more reliable, but slower)
DespawningdespawnerNearDistance / FarDistance (32 / 96), despawnerMinAgeTicks / MaxAgeTicks (600 / 3600)
ExperienceexperienceMultiplier, experienceShareMultiplier (0.5), luckyEggMultiplier (1.5), allowExperienceFromPvP
BattlesdefaultFleeDistance (32; −1 means no fleeing), allowSpectating, autoUpdateShowdown
HealingmaxHealerCharge (6), secondsToChargeHealingMachine (900), infiniteHealerCharge
PasturesdefaultPasturedPokemonLimit (16), pastureMaxPerChunk (4)
StoragestorageFormat (nbt), pokemonSaveIntervalSeconds (30), MongoDB connection keys

Commands#

All need cheats or the op level shown. Each also has a permission node, cobblemon.command.…, for permission mods. (Commands, permissions) read

CommandDoesOp level
/givepokemon <spec> (/pokegive), /givepokemonother <player> <spec>Give a Pokémon2
/spawnpokemon <spec> (/pokespawn), /spawnpokemonat <x y z> <spec>Spawn one2
/checkspawn <rarity>Show what can spawn here2
/healpokemon [player] (/pokeheal)Heal a party2
/pc [box]Open your PC anywhere2
/boxcount query|add|remove|set <player> [n]Change a player’s box count2
/stopbattle <player>End a stuck battle2
/openstarterscreen <player>Let a player choose a starter again2
/pokemonedit, /teach, /levelup, /held_itemEdit a Pokémon2
/reloadshowdownReload the battle engine4

Where Pokémon are saved#

With storageFormat: nbt (the pack’s setting), parties and PCs are files under <world>/pokemon/, in playerpartystore/ and pcstore/, one .dat file per player. Cobblemon writes through a temporary file and keeps a .old copy. If a save is corrupt, it loads the .old one and logs “Loading old Pokémon save file”. Back up <world>/pokemon/ with the world. Saves happen every 30 seconds and when the server stops. (store adapter) read

MongoDB storage needs the MongoDB driver added separately, or Cobblemon stops with “MongoDB driver not found”.

2 min readLicence