Commands and cheats
Commands
Every command with its full syntax, arguments, permission level and examples to copy.
95 entries
| Summary | |
|---|---|
| Grants advancements to players or takes them away, either one at a time, a whole branch, or all of them. | |
| Reads or changes an attribute of a living entity, such as its maximum health, movement speed, or size. | |
| Bans one or more players from the server by adding them to the ban list. | |
| Bans an IP address from the server so that nobody can join from it. | |
| Shows the players and IP addresses that are banned from the server. | |
| Creates and controls custom boss bars shown at the top of players' screens. | |
| Removes items from players' inventories, or counts how many matching items they carry. | |
| Copies the blocks in a box-shaped area to another place, optionally in another dimension. | |
| Calculates a number from a number provider and reports it, so it can be read in chat or stored with /execute store. | |
| Deals a chosen amount of damage to an entity, optionally with a damage type and an attacker. | |
| Reads, changes, and removes the stored data (NBT) of block entities, entities, and command storage. | |
| Lists the world's data packs, turns them on or off, and can create a new empty one. | |
| Starts and stops a performance measurement of the game's ticks, or runs a function and writes down every command it executes. | |
| Sets the game mode that players get when they join the world for the first time. | |
| Takes operator status away from one or more players. | |
| Opens a dialog screen for players or closes the dialog they currently have open. | |
| Shows the world's difficulty or changes it. | |
| Gives status effects such as Speed or Regeneration to entities, or removes them. | |
| Adds an enchantment to the item that each target is holding in its main hand. | |
| Runs another command after changing who runs it, where it runs, or whether it runs at all, and can save the outcome of that command. | |
| Adds, sets or shows the experience points or levels of players. /xp is a second name for the same command. | |
| Looks up a player profile (name, id and skin) by name, by id or from an entity, and offers clickable actions for it. | |
| Fills a box-shaped area between two corners with one block. | |
| Changes the biome in a box-shaped area between two corners. | |
| Keeps chunks loaded all the time, stops keeping them loaded, or shows which chunks are kept loaded. | |
| Runs a function from a data pack, or every function in a function tag. | |
| Changes the game mode of players. | |
| Shows or changes the value of a game rule. | |
| Puts items into the inventory of players. | |
| Lists the commands you can use, or shows how one command is written. | |
| Puts items into chosen inventory slots of entities or container blocks, copies items between slots, or changes the items already there. | |
| Starts or stops a Java Flight Recorder performance recording of the game. | |
| Disconnects players from the server, with an optional reason shown to them. | |
| Kills entities: players, mobs and anything else, such as dropped items. | |
| Shows which players are online. | |
| Finds the nearest structure, biome or point of interest and shows its coordinates. | |
| Generates items from a loot table, a mob's drops, a block's drops or a fishing catch and puts them in a player's inventory, a container, an entity's slots or on the ground. | |
| Sends a chat message that describes an action, shown as "* <your name> <action>". | |
| Sends a private message to one or more players; /tell and /w are the same command. | |
| Makes one or more players server operators. | |
| Removes one or more players from the server's ban list. | |
| Removes an IP address from the server's IP ban list. | |
| Shows particles at a position to all players or to chosen players. | |
| Records the server's performance for 10 seconds and saves the measurements as a report file. | |
| Generates a feature, a whole structure, a jigsaw structure or a saved structure template at a position. | |
| Plays a sound to chosen players at a position, in a chosen sound category. | |
| Adds, removes, clears or lists screen effects that are applied to a player's whole view. | |
| Opens the current singleplayer world to other players on the local network. | |
| Draws a random whole number from a range, privately or announced to everyone, and resets the random sequences used by the world. | |
| Unlocks recipes in players' recipe books or takes them away. | |
| Reloads the world's data packs, including functions, loot tables, recipes, advancements and tags. | |
| Stops a function early and sets the value the function returns. | |
| Makes an entity start riding another entity or get off the one it is riding. | |
| Turns an entity to a given rotation or makes it face a position or another entity, without moving it. | |
| Saves all player data and the world to disk right now. | |
| Turns off automatic saving of the world. | |
Entries: 95 · Page 1 of 2