Server commands
This page lists the commands that the server registers today, their permission levels and their specifications. With the default locate feature enabled, the server registers 22 root commands, or 23 names including the alias tp. VanillaCommandsPlugin in crates/mcrs_minecraft_command_vanilla registers most of them, and WorldCommandsPlugin in crates/mcrs_minecraft_command_world registers the rest. The list was checked against both registration files and each command’s permission calls on commit 1cf84286c. Commands absent from the list, such as setblock, give, say and stop, are not registered.
The /swing specification exists, but neither plugin registers that command. The specification index includes behavior that has not been implemented.
Permission levels
Section titled “Permission levels”Every command needs a permission level. There are five levels and they are ordered, the same as in vanilla. Rule PERM-LEVEL-001 of the command-permissions spec defines them.
| Id | Name |
|---|---|
| 0 | all |
| 1 | moderators |
| 2 | gamemasters |
| 3 | admins |
| 4 | owners |
A player who is not an operator has level all. An operator has the level that ops.json gives, from 0 to 4, and the op command gives the default level, which is owners. In the server binary only ops.json and the op command make operators, as Who becomes an operator explains. list is available at level 0; the other commands in the next table require level 2 or 3.
Commands
Section titled “Commands”In the “Plugin” column, vanilla stands for VanillaCommandsPlugin and world for WorldCommandsPlugin. The last column links to the specification of the command in docs/spec/. When it says none, the command has no specification yet.
| Command | Level | Plugin | Specification |
|---|---|---|---|
execute |
gamemasters (2) | vanilla | command-execute.md |
gamemode |
gamemasters (2) | vanilla | command-gamemode.md |
teleport, alias tp |
gamemasters (2) | vanilla | command-teleport.md |
locate |
gamemasters (2) | vanilla, cargo feature locate, on by default |
command-locate.md |
summon |
gamemasters (2) | vanilla | none |
kill |
gamemasters (2) | vanilla | command-kill.md |
damage |
gamemasters (2) | vanilla | command-damage.md |
attribute (get, base get/set/reset) |
gamemasters (2) | vanilla | command-attribute.md |
data get entity/block (optional NBT path and numeric scale) |
gamemasters (2) | vanilla | command-data.md |
list, list uuids |
all (0) | vanilla | command-list.md |
time |
gamemasters (2) | vanilla | command-time.md |
ban, pardon, banlist |
admins (3) | vanilla | bans.md |
op, deop |
admins (3) | vanilla | none (see PERM-LEVEL-002 in command-permissions.md) |
whitelist (list, on, off, reload, add, remove) |
admins (3) | vanilla | whitelist.md |
fill |
gamemasters (2) | world | command-fill.md |
forceload |
gamemasters (2) | world | command-forceload.md |
gamerule |
gamemasters (2) | world | command-gamerule.md |
weather (clear only) |
gamemasters (2) | world | command-weather.md |
tick (query, rate, freeze, unfreeze, step [stop], sprint [stop]) |
admins (3) | world | command-tick.md |
The attribute command reads the effective or base value and sets or resets the base value of a player or mob attribute; modifier edits are not registered. data implements reads of entity or block-entity NBT, with an optional path and numeric scale. It has no storage, merge, modify or remove branch. list reports the online players across dimensions, the count and the player limit; uuids adds UUIDs.
tick rate accepts 1 through 10000 ticks per second. tick freeze freezes the server and informs clients, including players who join while frozen. step advances a frozen server by the requested game ticks, and sprint runs a requested number of ticks without the normal delay. These are game ticks; the MCP launcher and client-control tools have separate input and frame-wait requests.
Three more groups of specs cover what all commands share. Parsing is in command-parser.md, argument types are in the argument-*.md files, and the command tree that the server sends to the client is in commands-packet.md. The note docs/command-dimensions.md explains how a command finds players in every dimension.
Typing commands
Section titled “Typing commands”A player types commands in chat. The server also reads its standard input, and each line runs in the overworld as a command whose source is the server itself. When many lines arrive at once, the server spreads them over several app updates and sends at most 2000 lines per update. The answers go to the server log. The code is ConsolePlugin in crates/mcrs_minecraft_console.
For plugin authors
Section titled “For plugin authors”A command is ordinary Bevy plugin code. A plugin calls add_command with a build function and a run function, and both plugin.rs files show the pattern. A command can write effects that other systems apply, and commands also raise a CommandEvent that can be cancelled. A plugin must be compiled into the server, because there is no loader for other plugins and no decision about one yet. Commands for plugins has the details.
Footnotes
Section titled “Footnotes”Sources and verification
Verified: 26.4-snapshot-7, 1cf84286c, 2026-11-30
- crates/mcrs_minecraft_command_vanilla/src/plugin.rs
- crates/mcrs_minecraft_command_world/src/plugin.rs
- crates/mcrs_minecraft_command/src/permission.rs
- docs/spec/command-permissions.md
- docs/spec/command-swing.md
- crates/mcrs_minecraft_engine_server/src/loopback_ops.rs
- issue #285
- issue #667
- crates/mcrs_minecraft_command_vanilla/Cargo.toml
- crates/mcrs_minecraft_command_vanilla/src/ban.rs
- crates/mcrs_minecraft_command_vanilla/src/op.rs
- crates/mcrs_minecraft_command_vanilla/src/whitelist.rs
- crates/mcrs_minecraft_command_vanilla/src/damage.rs
- crates/mcrs_minecraft_command_vanilla/src/kill.rs
- crates/mcrs_minecraft_command_vanilla/src/execute.rs
- crates/mcrs_minecraft_command_vanilla/src/gamemode.rs
- crates/mcrs_minecraft_command_vanilla/src/teleport.rs
- crates/mcrs_minecraft_command_vanilla/src/locate.rs
- crates/mcrs_minecraft_command_vanilla/src/summon.rs
- crates/mcrs_minecraft_command_vanilla/src/data.rs
- crates/mcrs_minecraft_command_vanilla/src/time.rs
- crates/mcrs_minecraft_command_world/src/fill.rs
- crates/mcrs_minecraft_command_world/src/forceload.rs
- crates/mcrs_minecraft_command_world/src/gamerule.rs
- crates/mcrs_minecraft_command_world/src/weather.rs
- crates/mcrs_minecraft_command_world/src/tick.rs
- crates/mcrs_minecraft_console/src/console_plugin.rs
- crates/mcrs_minecraft_command_engine/src/pass.rs
- crates/mcrs_minecraft_command_engine/src/app_commands.rs
- crates/mcrs_minecraft_command_engine/src/command_tree.rs
- crates/mcrs_minecraft_command_engine/src/plugin.rs
- crates/mcrs_minecraft_server/tests/it/op_level.rs
- crates/mcrs_minecraft_engine_shared/src/ops.rs
- docs/spec/command-execute.md
- docs/spec/command-gamemode.md
- docs/spec/command-teleport.md
- docs/spec/command-locate.md
- docs/spec/command-kill.md
- docs/spec/command-damage.md
- docs/spec/command-time.md
- docs/spec/bans.md
- docs/spec/whitelist.md
- docs/spec/command-fill.md
- docs/spec/command-forceload.md
- docs/spec/command-gamerule.md
- docs/spec/command-weather.md
- docs/spec/command-tick.md
- docs/spec/command-parser.md
- docs/spec/commands-packet.md
- docs/command-dimensions.md
- crates/mcrs_minecraft_command_vanilla/src/attribute.rs
- crates/mcrs_minecraft_command_vanilla/src/list.rs
- docs/spec/command-attribute.md
- docs/spec/command-data.md
- docs/spec/command-list.md
- tools/mcrs_minecraft_mcp/README.md
Related open issues:
- #285 Partial Command tree with permission levels and the commands packet
- #667 WIP Command dialects and the Bedrock commands packet
- #908 WIP Batched /fill by section, plus /setblock and /clone
- #912 WIP Operator commands: kick, list, say, msg, stop, save-all, give and title
- #1072 Partial Implement the /swing command
- #1101 WIP Commands: follow-ups of tick, data, attribute and list