List and summary of commands:
Command | Description | Required Permission Level | Requires Cheats Enabled |
---|---|---|---|
/allowlist |
Manages the server allowlist. | Owner | Yes |
/camera |
[Experimental feature.] Transforms the camera for the selected player to a different perspective. | Game Directors | Yes |
/camerashake |
Applies shaking to the players' camera with specified intensity and duration. Parameters: 'stop' or 'add' the effect, specify player (target), intensity (float, min 0.0 to max 4.0), seconds(float, min 0.01), and shakeType (positional or rotational). Must have `Allow Camera Shake` option turned on in user settings. | Game Directors | Yes |
/changesetting |
Changes a setting on the dedicated server while it's running. | Owner | Yes |
/clear |
Clears items from player inventory. | Game Directors | Yes |
/clearspawnpoint |
Removes the spawn point for a player. | Game Directors | Yes |
/clone |
Clones a set of blocks from one region to another. | Game Directors | Yes |
/damage |
Apply damage to the specified entities. See more in the Damage Command documentation. | Game Directors | Yes |
/daylock |
Locks and unlocks the day-night cycle. | Game Directors | Yes |
/deop |
Revokes operator status from a player. | Admin | No |
/dialogue |
Opens NPC dialogue for a player. See the page on the Dialogue documentation for more information. | Game Directors | Yes |
/difficulty |
Sets the difficulty level (Peaceful, Easy, Normal, Hard) using difficulty enum or integer. | Game Directors | Yes |
/effect |
Add or clear status effects. | Game Directors | Yes |
/enchant |
Adds an enchantment to a player's selected item. | Game Directors | Yes |
/event |
Triggers an event for the specified entity or entities. | Game Directors | Yes |
/execute |
Executes a command on behalf of one or more entities. See more information in the Popular Commands page and the New Execute Syntax page. | Game Directors | Yes |
/fill |
Fills all or parts of a region with a specific block. | Game Directors | Yes |
/fog |
Add or remove fog settings file. | Game Directors | Yes |
/function |
Runs commands found in the corresponding function file. | Game Directors | Yes |
/gamemode |
Sets a player's game mode. See more in the Popular Commands documentation. | Game Directors | Yes |
/gamerule |
Sets or queries a game rule value. See more in the Popular Commands documentation. | Game Directors | No |
/gametest |
[Requires the Beta APIs experiment]. Configures various parameters for managing built-in or custom gametest framework tests. | Game Directors | Yes |
/give |
Gives an item to a player. | Game Directors | Yes |
/help |
Running `/help` in the chat by itself will list every command you can run. However, since there are so many, they have been divided up into several pages, where you are shown only one page at a time. Supplying a page number will change which page of commands to show.Whenever you want to know the usage and all of the syntaxes of a command, you can use /help followed by the name of the command. This can be helpful if you want an overview of the command.See more in the Popular Commands documentation. | Any | No |
/hud |
Configures whether elements of the on-screen display (alternately known as the 'heads up display', or 'HUD') are visible on the screen. | Game Directors | Yes |
/inputpermission |
Optionally enables or disables input permissions for a player. | Game Directors | Yes |
/kick |
Kicks a player from the server. | Game Directors | No |
/kill |
Kills entities like players and mobs. | Game Directors | Yes |
/list |
Lists players on the server. | Any | No |
/locate |
Finds the nearest specified biome or structure if it exists in the current dimension. Prints an error if it does not. See more in the Popular Commands documentation. | Game Directors | Yes |
/loot |
Drops the given loot table into the specified inventory or into the world. | Game Directors | Yes |
/me |
Displays a message about yourself. | Any | No |
/mobevent |
Controls what mob events are allowed to run. | Game Directors | Yes |
/music |
Allows you to control playing music tracks. | Game Directors | Yes |
/op |
Grants operator status to a player. | Admin | No |
/particle |
Creates a particle emitter | Game Directors | Yes |
/permission |
Reloads and applies permissions. This command is for use on a dedicated server only. | Owner | Yes |
/playanimation |
Makes one or more entities play a one-off animation. | Game Directors | Yes |
/playsound |
Plays a sound. | Game Directors | Yes |
/project |
This command contains additional tools for managing an Editor project. This command is available in Editor mode only. | Game Directors | No |
/recipe |
Supports unlocking of built-in (vanilla) recipes that a particular player can craft with. | Game Directors | Yes |
/reload |
Reloads all function and script files from all behavior packs. | Admin | Yes |
/reloadconfig |
Reloads configuration files relating to variables, secrets, permissions, etc. | Owner | Yes |
/replaceitem |
Replaces items in inventories. | Game Directors | Yes |
/ride |
Makes entities ride other entities, stops entities from riding, makes rides evict their riders, or summons rides or riders. | Game Directors | Yes |
/save |
Control or check how the game saves data to disk. This command is for use on a dedicated server only. | Owner | Yes |
/say |
Sends a message in the chat to other players. | Game Directors | No |
/schedule |
Schedules an action to be executed once an area is loaded, or after a certain amount of time. | Game Directors | Yes |
/scoreboard |
Tracks and displays scores for various objectives. See more information about its use in the Scoreboards Objectives Commands documentation page. | Game Directors | Yes |
/script |
Debugging options for script within Minecraft. | Admin | Yes |
/scriptevent |
Causes an event to fire within script with the specified message ID and payload. This can be used to connect scripting with any location where commands are used. | Game Directors | Yes |
/setblock |
Changes a block to another block. | Game Directors | Yes |
/setmaxplayers |
Sets the maximum number of players for this game session. | Host | Yes |
/setworldspawn |
Sets the location where new players or players who die will spawn in the world. | Game Directors | Yes |
/spawnpoint |
Sets the spawn point for a player. | Game Directors | Yes |
/spreadplayers |
Teleports entities to random locations. | Game Directors | Yes |
/stop |
Stops the server. This command is for use on a dedicated server only. | Owner | Yes |
/stopsound |
Stops a sound. | Game Directors | Yes |
/structure |
Saves or loads a structure in the world. See examples of this command in use in the Structure Blocks documentation. | Game Directors | Yes |
/summon |
Summons an entity. | Game Directors | Yes |
/tag |
Manages tags stored in entities. | Game Directors | Yes |
/teleport |
Teleports entities to specific locations. Can also be written as `/tp`. | Game Directors | Yes |
/tell |
Sends a private message to one or more players. | Any | No |
/tellraw |
Sends a JSON message to players. | Game Directors | No |
/testfor |
Counts entities (players, mobs, items, etc.) matching specified conditions. | Game Directors | Yes |
/testforblock |
Tests whether a certain block is in a specific location. | Game Directors | Yes |
/testforblocks |
Tests whether the blocks in two regions match. | Game Directors | Yes |
/tickingarea |
Add, remove, or list ticking areas. See more information in the Ticking Area documentation. | Game Directors | Yes |
/time |
Changes or queries the world's game time. See more in the Popular Commands documentation. | Game Directors | Yes |
/title |
Controls screen titles. | Game Directors | Yes |
/titleraw |
Controls screen titles with JSON messages. | Game Directors | Yes |
/toggledownfall |
Toggles the weather. | Game Directors | Yes |
/transfer |
Transfers a player to another server. | Owner | Yes |
/volumearea |
[Experimental Command]. Manages a set of named volumes. | Game Directors | Yes |
/weather |
Sets the weather in the environment. See more in the Popular Commands documentation. | Game Directors | Yes |
/wsserver |
Attempts to connect to the websocket server on the provided URL. | Admin | Yes |
/xp |
Adds or removes player experience. | Game Directors | Yes |
List and summary of command argument types and enums:
Type | Description | Is Enum? | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
block properties | ||||||||||||||||||||||||||||||||
command | A command | |||||||||||||||||||||||||||||||
compareoperator | ||||||||||||||||||||||||||||||||
executechainedoption_0 | ||||||||||||||||||||||||||||||||
filepath | A `filepath` of this format: `/path/to/file`. | |||||||||||||||||||||||||||||||
float | Must be a floating point number. | |||||||||||||||||||||||||||||||
fullintegerrange | ||||||||||||||||||||||||||||||||
int | A 32-bit `integer`. | |||||||||||||||||||||||||||||||
json | A JSON object. | |||||||||||||||||||||||||||||||
message | A plain text `string` that can include spaces and target selects, which are formatted into the entities names. | |||||||||||||||||||||||||||||||
operator | An `operator` for scoreboard. See more in the Scoreboard documentation. | |||||||||||||||||||||||||||||||
position | A `vector` made up of `x`, `y` and `z` coordinates. | |||||||||||||||||||||||||||||||
rotation | An `enum` of the rotation when loading in a structure. Must be one of `0_degrees`, `90_degrees`, `180_degrees`, or `270_degrees`.,Default: `0_degrees`. | |||||||||||||||||||||||||||||||
string | A `string` that is either one word or a quoted `string` with a space. | |||||||||||||||||||||||||||||||
target | A `string` or `target selector` to identify which player is targeted. | |||||||||||||||||||||||||||||||
targets | An `array` of `string` or `target selector` to identify which player is targeted. | |||||||||||||||||||||||||||||||
text | A `string` . | |||||||||||||||||||||||||||||||
wildcard int | A 32-bit `integer` or an asterisk `*` for a wildcard. | |||||||||||||||||||||||||||||||
Block |
Minecraft block | Yes | ||||||||||||||||||||||||||||||
Boolean |
Boolean value | Yes | ||||||||||||||||||||||||||||||
Difficulty |
The game difficulty., | Difficulty | Enum | Abbreviation | Integer | , | ----- | ------ | ----- | ---- | , | Peaceful | `peaceful` | p | 0 | , | Easy | `easy` | e | 1 | , | Normal | `normal` | n | 2 | , | Hard | `hard` | h | 3 | Yes | |
EntityEquipmentSlot |
Entity equipment slot | Yes | ||||||||||||||||||||||||||||||
EntityEvents |
Must be one of the default entity events found in an entity's behavior JSON file. | Yes | ||||||||||||||||||||||||||||||
EntityType |
Specifies entity type within a world. | Yes | ||||||||||||||||||||||||||||||
Item |
One of the Minecraft Items available on this page. | Yes |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for