search
Minecraft Wiki

Minecraft Wiki

936 pages 4388 edits Updated: Mar 13
Wiki BG

Commands


Minecraft Commands are advanced features activated by typing certain strings of text. It is also known as console commands. In the client, commands are entered via chat window. Commands in command blocks can be preceded by a forward-slash, but it is not required.


Commands may also be entered in a multiplayer server's console, but are not preceded by a / when entered this way. A server owner running commands in this way is often referred to as ghosting.


Commands can be executed in the following ways;


  1. Entered by a player in the chat window.
  2. Executed by a command block or Minecart with command block.
  3. In functions or scripts, as part of a data pack or add-on.
  4. In a multiplayer server, entered in the console.
  5. Click a Json text that has "run_command" action.‌(Java Edition only)
  6. Executed with a WebSocket server.‌(Bedrock Edition only)
  7. Executed by a Non Playable Character (NPC).


Syntax


Java Edition


  1. give <target> <item> [<count>]


Bedrock Edition


  1. give <player: target> <itemName: Item> [amount: int] [data: int] [components: json]





This functionality is open only to Wiki Admins

Popular In Minecraft Wiki

Comments

Latest Wiki Pages

Sportskeeda logo
Close menu
bell-icon Manage notifications