That means most commands are available in the singleplayer world only if cheats is enable, and available in multiplayer server only if they are ops. Most commands require the executor have a high enough permission level. Click a Json text that has "run_command" action..In a multiplayer server, entered in the console.In functions or scripts, as part of a data pack or add-on.Executed by a command block or Minecart with command block.Entered by a player in the chat window.A server owner running commands in this way is often referred to as "ghosting".Ĭommands in command blocks can be preceded by a slash, but it is not required.Ĭommands can be executed in the following ways
If the argument is already containing some characters, the list displays only those values containing the typed command/text.Ĭommands may also be entered in a multiplayer server's console, but are not preceded by a / when entered this way. When the cursor is at a location corresponding to some types of argument (such as an ID), a list of applicable values appears above the text box.
Pressing Tab ↹ while entering commands cycles through possible commands or arguments, and can be used to auto-enter the coordinates of the block looked at before entering the chat. The ↑ and ↓ keys can be used to view previously entered text, including all previously executed commands. Using the / key also enters the forward-slash that commands require as a prefix, so it is a useful shortcut. In the client, commands are entered via the chat window, which is displayed by pressing the T / / , or, / key.