Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
Commands and cheats

Commands

Every command with its full syntax, arguments, permission level and examples to copy.

95 entries
NameSummary
/advancementPlayersGrants advancements to players or takes them away, either one at a time, a whole branch, or all of them.
/attributeEntitiesReads or changes an attribute of a living entity, such as its maximum health, movement speed, or size.
/banServerBans one or more players from the server by adding them to the ban list.
/ban-ipServerBans an IP address from the server so that nobody can join from it.
/banlistServerShows the players and IP addresses that are banned from the server.
/bossbarChat and displayCreates and controls custom boss bars shown at the top of players' screens.
/clearItemsRemoves items from players' inventories, or counts how many matching items they carry.
/cloneBlocks and worldCopies the blocks in a box-shaped area to another place, optionally in another dimension.
/computeDebugging and developmentCalculates a number from a number provider and reports it, so it can be read in chat or stored with /execute store.
/damageEntitiesDeals a chosen amount of damage to an entity, optionally with a damage type and an attacker.
/dataScoreboard and dataReads, changes, and removes the stored data (NBT) of block entities, entities, and command storage.
/datapackServerLists the world's data packs, turns them on or off, and can create a new empty one.
/debugDebugging and developmentStarts and stops a performance measurement of the game's ticks, or runs a function and writes down every command it executes.
/defaultgamemodePlayersSets the game mode that players get when they join the world for the first time.
/deopServerTakes operator status away from one or more players.
/dialogChat and displayOpens a dialog screen for players or closes the dialog they currently have open.
/difficultyBlocks and worldShows the world's difficulty or changes it.
/effectEntitiesGives status effects such as Speed or Regeneration to entities, or removes them.
/enchantItemsAdds an enchantment to the item that each target is holding in its main hand.
/executeScoreboard and dataRuns another command after changing who runs it, where it runs, or whether it runs at all, and can save the outcome of that command.
/experiencePlayersAdds, sets or shows the experience points or levels of players. /xp is a second name for the same command.
/fetchprofilePlayersLooks up a player profile (name, id and skin) by name, by id or from an entity, and offers clickable actions for it.
/fillBlocks and worldFills a box-shaped area between two corners with one block.
/fillbiomeBlocks and worldChanges the biome in a box-shaped area between two corners.
/forceloadBlocks and worldKeeps chunks loaded all the time, stops keeping them loaded, or shows which chunks are kept loaded.
/functionDebugging and developmentRuns a function from a data pack, or every function in a function tag.
/gamemodePlayersChanges the game mode of players.
/gameruleBlocks and worldShows or changes the value of a game rule.
/giveItemsPuts items into the inventory of players.
/helpChat and displayLists the commands you can use, or shows how one command is written.
/itemItemsPuts items into chosen inventory slots of entities or container blocks, copies items between slots, or changes the items already there.
/jfrDebugging and developmentStarts or stops a Java Flight Recorder performance recording of the game.
/kickServerDisconnects players from the server, with an optional reason shown to them.
/killEntitiesKills entities: players, mobs and anything else, such as dropped items.
/listServerShows which players are online.
/locateBlocks and worldFinds the nearest structure, biome or point of interest and shows its coordinates.
/lootItemsGenerates 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 displaySends a chat message that describes an action, shown as "* <your name> <action>".
/msgChat and displaySends a private message to one or more players; /tell and /w are the same command.
/opServerMakes one or more players server operators.
/pardonServerRemoves one or more players from the server's ban list.
/pardon-ipServerRemoves an IP address from the server's IP ban list.
/particleChat and displayShows particles at a position to all players or to chosen players.
/perfDebugging and developmentRecords the server's performance for 10 seconds and saves the measurements as a report file.
/placeBlocks and worldGenerates a feature, a whole structure, a jigsaw structure or a saved structure template at a position.
/playsoundChat and displayPlays a sound to chosen players at a position, in a chosen sound category.
/posteffectChat and displayAdds, removes, clears or lists screen effects that are applied to a player's whole view.
/publishServerOpens the current singleplayer world to other players on the local network.
/randomScoreboard and dataDraws a random whole number from a range, privately or announced to everyone, and resets the random sequences used by the world.
/recipePlayersUnlocks recipes in players' recipe books or takes them away.
/reloadServerReloads the world's data packs, including functions, loot tables, recipes, advancements and tags.
/returnDebugging and developmentStops a function early and sets the value the function returns.
/rideEntitiesMakes an entity start riding another entity or get off the one it is riding.
/rotateEntitiesTurns an entity to a given rotation or makes it face a position or another entity, without moving it.
/save-allServerSaves all player data and the world to disk right now.
/save-offServerTurns off automatic saving of the world.
Entries: 95 · Page 1 of 2
Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)