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
| Key | Default | All the Mons |
|---|---|---|
defaultBoxCount | 40 | 100 |
pastureMaxWanderDistance | 32 | 64 |
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
| Area | Keys |
|---|---|
| Spawning on and off | enableSpawning; worldSpawningBlocklist lists dimensions with no spawns |
| Spawn density | pokemonPerChunk (1), maximumSpawnsPerPass (8), ticksBetweenSpawnAttempts (20) |
| Spawn range | minimumSpawningZoneDistanceFromPlayer / maximum… (16 / 64), spawningZoneDiameter (8: bigger is more reliable, but slower) |
| Despawning | despawnerNearDistance / FarDistance (32 / 96), despawnerMinAgeTicks / MaxAgeTicks (600 / 3600) |
| Experience | experienceMultiplier, experienceShareMultiplier (0.5), luckyEggMultiplier (1.5), allowExperienceFromPvP |
| Battles | defaultFleeDistance (32; −1 means no fleeing), allowSpectating, autoUpdateShowdown |
| Healing | maxHealerCharge (6), secondsToChargeHealingMachine (900), infiniteHealerCharge |
| Pastures | defaultPasturedPokemonLimit (16), pastureMaxPerChunk (4) |
| Storage | storageFormat (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
| Command | Does | Op level |
|---|---|---|
/givepokemon <spec> (/pokegive), /givepokemonother <player> <spec> | Give a Pokémon | 2 |
/spawnpokemon <spec> (/pokespawn), /spawnpokemonat <x y z> <spec> | Spawn one | 2 |
/checkspawn <rarity> | Show what can spawn here | 2 |
/healpokemon [player] (/pokeheal) | Heal a party | 2 |
/pc [box] | Open your PC anywhere | 2 |
/boxcount query|add|remove|set <player> [n] | Change a player’s box count | 2 |
/stopbattle <player> | End a stuck battle | 2 |
/openstarterscreen <player> | Let a player choose a starter again | 2 |
/pokemonedit, /teach, /levelup, /held_item | Edit a Pokémon | 2 |
/reloadshowdown | Reload the battle engine | 4 |
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”.