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