search
Minecraft Wiki

Minecraft Wiki

685 pages Updated: Aug 15
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

What are Ochre Froglight‌ in Minecraft

What are Ochre Froglight‌ in Minecraft

Minecraft Wiki 8 hr
What are Obsidian Blocks in Minecraft

What are Obsidian Blocks in Minecraft

Minecraft Wiki 8 hr
What are Oak Wood in Minecraft

What are Oak Wood in Minecraft

Minecraft Wiki 8 hr
What are Oak Logs in Minecraft

What are Oak Logs in Minecraft

Minecraft Wiki 8 hr
What are Netherite Blocks in Minecraft

What are Netherite Blocks in Minecraft

Minecraft Wiki 8 hr
What is Netherrack Block in Minecraft?

What is Netherrack Block in Minecraft?

Minecraft Wiki 8 hr
Nether Wart in Minecraft

Nether Wart in Minecraft

Minecraft Wiki 3 d
Nether Bricks in Minecraft

Nether Bricks in Minecraft

Minecraft Wiki 3 d
Nether Brick Wall in Minecraft

Nether Brick Wall in Minecraft

Minecraft Wiki 3 d
Nether Brick Stairs in Minecraft

Nether Brick Stairs in Minecraft

Minecraft Wiki 3 d
Nether Brick Slab in Minecraft

Nether Brick Slab in Minecraft

Minecraft Wiki 3 d
Mycelium in Minecraft

Mycelium in Minecraft

Minecraft Wiki 3 d
Other Mobs

Other Mobs

Minecraft Wiki 4 d
Boss Mobs

Boss Mobs

Minecraft Wiki 4 d
Hostile Mobs

Hostile Mobs

Minecraft Wiki 4 d
Neutral Mobs

Neutral Mobs

Minecraft Wiki 4 d
Passive Mobs

Passive Mobs

Minecraft Wiki 4 d
Mushroom Block in Minecraft

Mushroom Block in Minecraft

Minecraft Wiki 4 d
Mushroom in Minecraft

Mushroom in Minecraft

Minecraft Wiki 4 d
Moss Block in Minecraft

Moss Block in Minecraft

Minecraft Wiki 4 d