Commands and cheats
Commands
Every command with its full syntax, arguments, permission level and examples to copy.
95 entries
| Summary | |
|---|---|
| Turns automatic saving of the world back on. | |
| Sends a chat message to every player, shown with the sender's name in square brackets. | |
| Runs a function, or all functions in a function tag, after a delay, or cancels a scheduled function. | |
| Creates and manages scoreboard objectives, sets where they are shown, and reads or changes the scores of players and other entities. | |
| Shows the seed of the world. | |
| Places a block at a position, replacing whatever is there. | |
| Sets how many minutes a player may stay idle before the server kicks them. | |
| Sets the world spawn point, where new players appear and where players respawn when they have no spawn point of their own. | |
| Sets the personal spawn point of one or more players. | |
| Makes a player in Spectator mode view the world through another entity, or stops doing so. | |
| Teleports entities to random surface positions spread out around a center point. | |
| Shuts down the server. | |
| Stops sounds that are currently playing for the chosen players. | |
| Creates, reads, restarts and removes named stopwatches that measure real time. | |
| Creates a new entity, such as a mob, at a position. | |
| Makes entities play their arm swing animation. | |
| Adds, removes or lists the custom tags stored on entities, which selectors can then match with tag=. | |
| Creates and removes teams, moves players and other entities in and out of them, and changes team options such as color, friendly fire and name tag visibility. | |
| Sends a chat message that only the members of your own team can see. /tm is a shorter name for the same command. | |
| Moves entities to a position or to another entity, optionally setting where they look. /tp is a shorter name for the same command. | |
| Sends a message written as a text component to players, with full control over color, style, and click and hover actions. | |
| Creates, finds, runs, resets and clears game tests, the automated test structures used by developers and data pack makers. | |
| Controls how fast the game runs: changes the tick rate, freezes the game, steps it forward tick by tick, or runs ticks as fast as possible. | |
| Changes or reads the time of a world clock, such as the day and night cycle, and can pause it or change how fast it runs. | |
| Shows a large title, a subtitle or an action bar message on the screens of players, and controls how long titles stay. | |
| Sends players from this server to another server. | |
| Lets a player change their own score in a scoreboard objective of the trigger type, which map makers use to let players without operator rights send input. | |
| Closes a singleplayer world that was opened to other players, so it is singleplayer again. | |
| Shows the version details of the game the server is running. | |
| Lists the waypoints in the current dimension and changes the color or icon style of the waypoint that an entity shows on the locator bar. | |
| Sets the weather to clear, rain or thunderstorm, optionally for a chosen length of time. | |
| Manages the server whitelist, the list of players who are allowed to join when the whitelist is turned on. | |
| Shows or changes the world border: its width, center, the damage it deals and the warning shown to players near it. | |
| Blocks in commands are written as an id, optional states in square brackets and optional block data in braces. Commands that test blocks also accept block tags. | |
| Positions in commands are written as numbers separated by spaces. A number can be absolute, relative to the current position with ~, or relative to the facing direction with ^. | |
| Game rules switch parts of the game on or off or set a number. Minecraft Java Edition has 58 of them, changed with /gamerule, plus 1 that only exists with an experiment switched on. | |
| Items in commands are written as an id followed by components in square brackets. Components hold everything special about an item, such as its name, enchantments and durability. | |
| A target selector picks the players or entities a command acts on. It starts with @ and a letter and can be narrowed down with filters in square brackets. | |
| Text components are the formatted text used by /tellraw, /title, signs, item names and entity names. A component is a quoted string, an object in braces with content and styling fields, or a list of components. | |
Entries: 95 · Page 2 of 2