search
Minecraft Wiki

Minecraft Wiki

869 pages 4156 edits Updated: Nov 28
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]





Popular In Minecraft Wiki

Comments

Latest Wiki Pages

Minecraft Witches

Minecraft Witches

Minecraft Wiki 4 d
Achievements Minecraft

Achievements Minecraft

Minecraft Wiki 4 d
Shulker bullet in Minecraft

Shulker bullet in Minecraft

Minecraft Wiki 7 d
Brain Coral in Minecraft

Brain Coral in Minecraft

Minecraft Wiki 8 d
Llama Spit in Minecraft

Llama Spit in Minecraft

Minecraft Wiki 8 d
Minecraft Color Codes

Minecraft Color Codes

Minecraft Wiki 8 d
How to Tame a Dog in Minecraft

How to Tame a Dog in Minecraft

Minecraft Wiki 11 d
Players in Minecraft

Players in Minecraft

Minecraft Wiki 16 d
Ice Bomb‌ in Minecraft

Ice Bomb‌ in Minecraft

Minecraft Wiki 21 d
Spawner in Minecraft

Spawner in Minecraft

Minecraft Wiki 22 d
Camera in Minecraft

Camera in Minecraft

Minecraft Wiki 23 d
Pillars in Minecraft

Pillars in Minecraft

Minecraft Wiki 25 d
Melon Stem in Minecraft

Melon Stem in Minecraft

Minecraft Wiki 27 d
Experience Orbs in Minecraft

Experience Orbs in Minecraft

Minecraft Wiki 28 d
Old Growth Spruce Taiga in Minecraft

Old Growth Spruce Taiga in Minecraft

Minecraft Wiki 29 d
Old Growth Pine Taiga in Minecraft

Old Growth Pine Taiga in Minecraft

Minecraft Wiki 1 mn
Old Growth Birch Forest in Minecraft

Old Growth Birch Forest in Minecraft

Minecraft Wiki 1 mn 2 d
Warm Ocean in Minecraft

Warm Ocean in Minecraft

Minecraft Wiki 1 mn 2 d
Mushroom Island in Minecraft

Mushroom Island in Minecraft

Minecraft Wiki 1 mn 4 d
Sparse Jungle in Minecraft

Sparse Jungle in Minecraft

Minecraft Wiki 1 mn 4 d