Cobblemon commands
Every command Cobblemon registers, with its real arguments, aliases, permission node and op level. Generated straight from the Cobblemon 1.7.3 source, so what is listed here is what the mod actually registers.
Read from gitlab.com/cable-mc/cobblemon @ 1.7.3.
63 commands, 113 argument forms,
13 aliases and 55 permission nodes.
Cobblemon is not hosted on GitHub: the canonical repository is GitLab.
How Cobblemon permissions work
Every command here is gated twice. It checks a permission node such as
command.spawnpokemon, and if no permissions plugin answers that check it falls back to a
vanilla op level. That means two different ways to grant a command:
- With LuckPerms or any permissions plugin, grant the node. The player does not need op, which is what you want for a staff rank or a donor perk.
- With no plugin, the op level applies. Level 2 is a normal op, level 4 is console and owner territory.
| Level | Means |
|---|---|
| Level 0 | Anyone can run it. No op and no permission node needed. |
| Level 1 | Spawn protection bypass. |
| Level 2 | Standard op. This is what most Cobblemon commands need, and what a staff rank normally gets. |
| Level 3 | Multiplayer management. |
| Level 4 | Full operator or console. Reserve these for owners. |
A command that shows no permission node is gated by op level alone, which in practice means the debug and callback commands at the bottom of this page.
Every command
Spawning Pokemon
Put a Pokemon into the world, or find out what the spawner would put there on its own.
/checkspawn
op 2
Lists what could spawn where you are standing in a given rarity bucket, with the odds. If your custom spawns are not appearing, this tells you whether the game can see them at all.
/checkspawn <bucket>
Permission:
command.checkspawns
/spawnallpokemon
op 4
Spawns every implemented species, optionally within a Pokedex number range. A test command, not something to run on a live world.
/spawnallpokemon/spawnallpokemon <min>/spawnallpokemon <min> <max>
Permission:
command.spawnallpokemon
/spawnpokemon
op 2
/pokespawn
Spawns a Pokemon at your feet from a properties string, so /spawnpokemon pikachu shiny level=30 works exactly as written.
/spawnpokemon <properties>
Permission:
command.spawnpokemon
/spawnpokemonat
op 2
/pokespawnat
Same as /spawnpokemon but at coordinates you give, which makes it the one that works from a command block or a console.
/spawnpokemonat <pos> <properties>
Permission:
command.spawnpokemon
/spawnpokemonfrompool
op 2
/forcespawn
Runs the real spawn logic where you are standing and spawns whatever it picks. The single best way to test a spawn datapack, because it uses the same weighting the game does.
/spawnpokemonfrompool/spawnpokemonfrompool <amount>
Permission:
command.spawnpokemon
Giving and taking Pokemon
Add a Pokemon straight to a party or PC, or remove one. These write to storage rather than spawning an entity.
/giveallpokemon
op 4
Fills a player's PC with every implemented species, optionally limited to a Pokedex number range.
/giveallpokemon/giveallpokemon <min>/giveallpokemon <min> <max>
Permission:
command.giveallpokemon
/givepokemon
op 2
/pokegive
Adds a Pokemon to your own party from a properties string. Overflow goes to your PC.
/givepokemon <properties>
Permission:
command.givepokemon.self
/givepokemonother
op 2
/pokegiveother
Adds a Pokemon to another player's party. The usual way staff hand out an event reward.
/givepokemonother <player> <properties>
Permission:
command.givepokemon.other
/pctake
op 2
Removes a Pokemon from a specific box and slot of a player's PC.
/pctake <player> <box> <slot>
Permission:
command.takepokemon
/takepokemon
op 2
Removes the Pokemon in a party slot from a player.
/takepokemon <player> <slot>
Permission:
command.takepokemon
Editing a Pokemon
Change a Pokemon that already exists: level, moves, held item, friendship.
/freezepokemon
op 2
Freezes the animation of the Pokemon you are looking at, at a frame you choose. Built for screenshots.
/freezepokemon/freezepokemon <seconds>
Permission:
command.freezepokemon
/friendship
op 2
Opens friendship editing for a party slot, which matters for the evolutions that need it.
/friendship <slot>
Permission:
command.friendship
/healpokemon
op 2
/pokeheal
Fully heals a party, yours or another player's. Common as a console command on a timer or tied to a healer NPC.
/healpokemon/healpokemon <player>
Permissions:
command.healpokemon.self command.healpokemon.other
/held_item
op 2
Sets the held item on a party Pokemon. Note the underscore: it is /held_item, not /helditem.
/held_item <target> <slot> <item>
Permission:
command.helditem
/levelup
op 2
Levels a party Pokemon up by one, awarding exactly the experience needed. Runs the real level-up path, so evolutions and move learning still fire.
/levelup <player> <slot>/levelup <slot>
Permissions:
command.levelup.self command.levelup.other
/pokemonedit
op 2
/pokeedit
Applies a properties string to one of your own party slots, so you can change nature, ability, IVs, shiny state and more on a Pokemon you already own.
/pokemonedit <slot> <properties>
Permission:
command.pokemonedit.self
/pokemoneditother
op 2
/pokeeditother
The same edit against another player's party slot.
/pokemoneditother <player> <slot> <properties>
Permission:
command.pokemonedit.other
/querylearnset
op 2
Reports whether a party Pokemon can learn a given move. Useful before handing out a TM on an event server.
/querylearnset <player> <slot> <move>
Permission:
command.querylearnset
/teach
op 2
Teaches a move to a party Pokemon. Whether it can learn moves outside its learnset depends on a second permission, command.teach.bypass.
/teach <player> <slot> <move>
Permission:
command.teach.base
Party, PC and player data
Open and manage the PC, move Pokemon between party and boxes, and reset a player back to the starter screen.
/boxcount
op 2
Queries, sets, adds or removes PC boxes for a player. This is the command behind selling extra box space as a rank perk.
/boxcount query <player>/boxcount add <player> <amount>/boxcount remove <player> <amount>/boxcount set <player> <amount>
Permission:
command.boxcount
/changewallpaper
op 2
Sets the wallpaper on one of a player's PC boxes.
/changewallpaper <player> <box> <wallpaper>
Permission:
command.changewallpaper
/clearparty
op 2
Removes every Pokemon from a player's party. There is no confirmation step.
/clearparty <player>
Permission:
command.clearparty
/clearpc
op 2
Empties a player's entire PC. Irreversible, so treat it as a last-resort support command.
/clearpc <player>
Permission:
command.clearpc
/openstarterscreen
op 2
Forces the starter selection screen open for a player. Handy when a join event was missed and someone never got a starter.
/openstarterscreen <player>
Permission:
command.openstarterscreen
/pc
op 2
Opens your PC, optionally straight to a box number.
/pc/pc <box>
Permission:
command.pc
/pcsearch
op 2
Searches a PC by properties string, so you can find every shiny or every Pokemon of one species without clicking through boxes.
/pcsearch <properties>/pcsearch other <other> <properties>
Permission:
command.pcsearch
/pokebox
op 2
Moves a Pokemon from a party slot into the PC, optionally into a chosen box.
/pokebox <player> <slot>/pokebox <player> <slot> <box>
Permission:
command.pokebox
/pokeboxall
op 2
Moves a player's whole party into the PC in one go.
/pokeboxall <player>/pokeboxall <player> <box>
Permission:
command.pokebox
/pokemonrestart
op 2
/pokerestart
Wipes your own Cobblemon data and sends you back to the starter screen, optionally resetting starters too.
/pokemonrestart <reset_starters>/pokemonrestart
Permission:
command.pokemonedit.self
/pokemonrestartother
op 2
/pokerestartother
The same reset against another player. Reach for it when a player asks to start over rather than when you want to punish one.
/pokemonrestartother <player> <reset_starters>/pokemonrestartother <player>
Permission:
command.pokemonedit.other
/renamebox
op 2
Renames one of a player's PC boxes.
/renamebox <player> <box> <name>
Permission:
command.renamebox
/unlockpcboxwallpaper
op 2
Unlocks a wallpaper for a player, optionally without the unlock sound. The usual way to make a wallpaper a reward.
/unlockpcboxwallpaper <player> <wallpaper>/unlockpcboxwallpaper <player> <wallpaper> <playsSound>
Permission:
command.unlockpcboxwallpaper
Battles
End a battle that will not end on its own, spectate one, or drop out of a multi-battle team.
/abandonmultiteam
op 0
/abandonmultibattleteam
Leaves the multi-battle team you have joined. The only command here every player can run by default.
/abandonmultiteam
Permission:
command.abandonmultiteam
/spectateBattle
op 4
Spectates another player's battle. Note the capital B in the command name.
/spectateBattle <player>
Permission:
command.spectatebattle
/stopbattle
op 2
Force-ends the battle a player is in. The fix for a battle that has hung, which is the single most common Cobblemon support ticket.
/stopbattle <player>
Permission:
command.stopbattle
Pokedex
Grant or revoke Pokedex entries, which is how you seed a dex on a new server or fix a broken one.
/pokedex
op 2
Grants or revokes Pokedex entries for a player, either a whole dex or one species and form. Also prints the calculations behind a player's dex progress.
/pokedex grant <player> all <dex>/pokedex grant <player> only <species> <form>/pokedex revoke <player> all <dex>/pokedex revoke <player> only <species> <form>/pokedex printcalculations <player>/pokedex printcalculations <player> all/pokedex printcalculations <player> <dex>
Permission:
command.pokedex
Marks
Give and take the marks a Pokemon can carry.
/giveallmarks
op 2
Gives every mark in the game to one Pokemon.
/giveallmarks <player> <slot>
Permission:
command.changemark
/givemark
op 2
Gives a mark to a Pokemon in a player's party slot.
/givemark <player> <slot> <mark>
Permission:
command.changemark
/takemark
op 2
Removes a mark from a Pokemon in a player's party slot.
/takemark <player> <slot> <mark>
Permission:
command.changemark
NPCs and dialogue
Place, edit and delete Cobblemon NPCs, and open a dialogue for a player.
/behaviouredit
op 2
Opens the behaviour editor for the scriptable entity you are looking at.
/behaviouredit
Permission:
command.behaviouredit
/npcdelete
op 2
Deletes the NPC you are looking at, or a targeted one.
/npcdelete/npcdelete <target>
Permission:
command.npcdelete
/npcedit
op 2
Opens the editor for the NPC you are looking at. Takes no arguments because it works off your crosshair.
/npcedit
Permission:
command.npcedit
/opendialogue
op 2
Opens a dialogue for a player by id. This is how a datapack quest step gets triggered from outside an NPC.
/opendialogue <dialogue> <player>
Permission:
command.opendialogue
/spawnnpc
op 2
/npcspawn
Spawns an NPC of a given class where you are standing, optionally at a set level.
/spawnnpc <class>/spawnnpc <class> <level>
Permission:
command.spawnnpc
/spawnnpcat
op 2
/npcspawnat
Spawns an NPC at coordinates, which is what you want from a command block when building a gym or a shop.
/spawnnpcat <pos> <class>/spawnnpcat <pos> <class> <level>
Permission:
command.spawnnpc
Models, animation and particles
Resource pack and model work. These change how a Pokemon renders on the client rather than anything saved on the server.
/applyplayertexture
op 2
Applies a player skin as a texture. A cosmetic and development tool.
/applyplayertexture <player>
Permission:
command.applyplayertexture
/bedrockparticle
op 2
Plays a Bedrock-format particle effect on an entity, at a locator on a model, or at a position in a world. The way to preview a particle before wiring it into an animation.
/bedrockparticle <effect> <target>/bedrockparticle <effect> <target> <locator>/bedrockparticle <effect> <world> <pos>
Permission:
command.bedrockparticle
/calculateseatpositions
op 2
Prints seat positions for a rideable species in a given pose. Needed when adding riding support to a custom species.
/calculateseatpositions <species> <aspects> <pose>
Permission:
command.calculateseatpositions
/changeeyeheight
op 4
Overrides the eye height of a Pokemon per pose, standing, flying or swimming. A model authoring tool.
/changeeyeheight <pokemon> standing <height>/changeeyeheight <pokemon> flying <height>/changeeyeheight <pokemon> swimming <height>
Permission:
command.changeeyeheight
/changescaleandsize
op 4
Overrides scale and hitbox width and height on a Pokemon, or prints the current values with no arguments.
/changescaleandsize <pokemon>/changescaleandsize <pokemon> <scale> <width> <height>
Permission:
command.changescaleandsize
/changewalkspeed
op 4
Overrides the walk speed of a Pokemon so an animation can be matched to it.
/changewalkspeed/changewalkspeed <pokemon> <walkSpeed>
Permission:
command.changewalkspeed
/transformmodelpart
op 4
Moves or rotates a single part of a Pokemon model live, for lining up an animation without a resource pack reload.
/transformmodelpart <transform>/transformmodelpart <transform> <part>/transformmodelpart <transform> <part> <x> <y> <z>
Permission:
command.transformmodelpart
MoLang scripting
Run MoLang against a player, an NPC or a Pokemon. This is the scripting layer NPC behaviours are written in.
/runmolang
op 2
Runs a MoLang expression, optionally in the context of a player, an NPC or a Pokemon. The fastest way to test an expression before putting it in a behaviour file.
/runmolang <molang>/runmolang <molang> <player>/runmolang <molang> <player> <npc>/runmolang <molang> <player> <npc> <pokemon>/runmolang <molang> <player> <pokemon>/runmolang <molang> <npc>/runmolang <molang> <npc> <pokemon>/runmolang <molang> <pokemon>
Permission:
command.runmolang
/runmolangscript
op 2
Runs a registered MoLang script by id, in the same optional contexts as /runmolang.
/runmolangscript <script>/runmolangscript <script> <player>/runmolangscript <script> <player> <npc>/runmolangscript <script> <player> <npc> <pokemon>/runmolangscript <script> <player> <pokemon>/runmolangscript <script> <npc>/runmolangscript <script> <npc> <pokemon>/runmolangscript <script> <pokemon>
Permission:
command.runmolangscript
Server, config and debug
Version information, config reloads and the test commands the developers use.
/cobblemon
Prints Cobblemon version and build information. Worth having when a bug report needs a version number.
/cobblemon info
/cobblemonconfig
op 2
Reloads the Cobblemon config without a restart. Not everything in the config is safe to change live, so restart if a value does not take.
/cobblemonconfig/cobblemonconfig reload
Permission:
command.cobblemonconfig.reload
/getnbt
op 4
Prints the NBT of the item in your hand. Largely stubbed out in current builds.
/getnbt
Permission:
command.getnbt
/reloadshowdown
Reloads the Showdown battle engine. The thing to try when battles start failing after a datapack change.
/reloadshowdown
/testcommand
A developer scratch command. Its behaviour changes between builds, so do not depend on it.
/testcommand
/testpartyslot
op 2
Tests a properties string against a party slot and reports whether it matches. Useful for debugging a properties filter before relying on it.
/testpartyslot <player> <slot> <properties>
Permission:
command.testpartyslot
/testpcslot
op 2
The same properties test against a PC box and slot.
/testpcslot <player> <box> <slot> <properties>
Permission:
command.testpcslot
/teststore
op 2
Tests a properties string against a whole store.
/teststore <player> <store> <properties>
Permission:
command.teststore
Internal callbacks
Not meant to be typed. The mod fires these itself, usually from clickable chat text. Listed so you can recognise them in a log.
/cobblemonclicktext
Fired by the mod when a player clicks generated chat text. Not meant to be typed.
/cobblemonclicktext <callback>
Cobblemon commands FAQ
How many commands does Cobblemon add?
Cobblemon 1.7.3 registers 63 commands with 113 distinct argument forms between them, and 55 permission nodes. This page is generated from the mod source, so the count is what the mod actually registers rather than what the docs remember.
Which Cobblemon commands can normal players use?
/abandonmultiteam needs no permission at all. Everything else defaults to op level 2 or higher, so on a server players get access only if you grant the matching permission node through a permissions plugin.
Do Cobblemon commands work with LuckPerms?
Yes. Every command checks a permission node such as command.spawnpokemon, so granting that node in LuckPerms is enough and the player does not need op. The op level shown here is only the fallback used when no permission plugin is installed.
What is the difference between /spawnpokemon and /givepokemon?
/spawnpokemon puts a Pokemon into the world as an entity you still have to catch. /givepokemon writes it straight into your party, and sends it to your PC if the party is full.
How do I check why my custom spawns are not working?
Stand where you expect the spawn and run /checkspawn with a rarity bucket. It lists what the game can currently pick there and at what odds, which separates a datapack that failed to load from one that loaded with conditions you did not intend. /spawnpokemonfrompool then rolls the real spawn logic on the spot.
Do these commands have shorter aliases?
/abandonmultiteam is also /abandonmultibattleteam, /givepokemon is also /pokegive, /givepokemonother is also /pokegiveother, /healpokemon is also /pokeheal, /pokemonedit is also /pokeedit, /pokemoneditother is also /pokeeditother, and 7 more listed above.