- Jan 29, 2020 Minecraft commands and cheats every player should know By Wesley Copeland 29 January 2020 Minecraft commands and cheats that will be useful if you're looking to get the most out of the game.
- While playing the game in Single Player mode, press C or T to display the 'Commands' bar. Then, type one of the following codes and press Enter to activate the corresponding cheat function. Note: The 'Allow Cheats' option must be set to 'On' when creating a new world for these codes to work.
While playing the game, hold F3. Show current lag. While playing the game, hold F6. While playing the game in Survival mode, press F5 to switch to third person view. While playing the game in Creative mode, press F5 to make it rain. Instant village seed.
This Minecraft tutorial explains how to use the /give command with screenshots and step-by-step instructions.
You can give a player any item whenever you want using the /give command in Minecraft. Let's explore how to use this cheat (game command).
Supported Platforms
The /give command is available in the following versions of Minecraft:
Platform | Supported (Version*) |
---|---|
Java Edition (PC/Mac) | Yes (1.3.1) |
Pocket Edition (PE) | Yes (0.16.0) |
Xbox 360 | No |
Xbox One | Yes (1.2) |
PS3 | No |
PS4 | Yes (1.14.0) |
Wii U | No |
Nintendo Switch | Yes (1.5.0) |
Windows 10 Edition | Yes (0.16.0) |
Education Edition | Yes |
* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
Requirements
To run game commands in Minecraft, you have to turn cheats on in your world.
Give Command
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Give Command in Minecraft Java Edition (PC/Mac)
In Minecraft Java Edition (PC/Mac) 1.13, 1.14 and 1.15, the syntax to give a player an item is:
In Minecraft Java Edition (PC/Mac) 1.8, 1.9, 1.10, 1.11 and 1.12, the syntax to give a player an item is:
Definitions
- targets or player is the name of the player (or a target selector) to give the item to.
- item is the name of the item to give (See Minecraft Item Names).
- amount is optional. It is the amount of the item that you want to give. If you don't specify an amount, the player will be given 1 of the item.
- data is optional. It identifies the variation of the block if more than one type exists for that Item ID (See Minecraft Data Values). Use a value of 0 if no data value exists for the item.
- dataTag is optional. It is the data tag that you want to set for the item being given. It is a compound NBT tag such as {Potion:harming} or {EntityTag:{id:Creeper}}.
Give Command in Minecraft Pocket Edition (PE)
In Minecraft Pocket Edition (PE), the syntax to give a player an item is:
Definitions
- player is the name of the player (or a target selector) to give the item to.
- itemName is the name of the item to give (See Minecraft Item Names).
- amount is optional. It is the amount of the item that you want to give. If you don't specify an amount, the player will be given 1 of the item.
- data is optional. It identifies the variation of the block if more than one type exists for that Item ID (See Minecraft Data Values). Use a value of 0 if no data value exists for the item.
- components is optional json.
Give Command in Minecraft Xbox One Edition
In Minecraft Xbox One Edition, the syntax to give a player an item is:
Definitions
- player is the name of the player (or a target selector) to give the item to.
- itemName is the name of the item to give (See Minecraft Item Names).
- amount is optional. It is the amount of the item that you want to give. If you don't specify an amount, the player will be given 1 of the item.
- data is optional. It identifies the variation of the block if more than one type exists for that Item ID (See Minecraft Data Values). Use a value of 0 if no data value exists for the item.
- components is optional json.
Give Command in Minecraft PS4 Edition
In Minecraft PS4 Edition, the syntax to give a player an item is:
Definitions
- player is the name of the player (or a target selector) to give the item to.
- itemName is the name of the item to give (See Minecraft Item Names).
- amount is optional. It is the amount of the item that you want to give. If you don't specify an amount, the player will be given 1 of the item.
- data is optional. It identifies the variation of the block if more than one type exists for that Item ID (See Minecraft Data Values). Use a value of 0 if no data value exists for the item.
- components is optional json.
Give Command in Minecraft Nintendo Switch Edition
In Minecraft Nintendo Switch Edition, the syntax to give a player an item is:
Definitions
- player is the name of the player (or a target selector) to give the item to.
- itemName is the name of the item to give (See Minecraft Item Names).
- amount is optional. It is the amount of the item that you want to give. If you don't specify an amount, the player will be given 1 of the item.
- data is optional. It identifies the variation of the block if more than one type exists for that Item ID (See Minecraft Data Values). Use a value of 0 if no data value exists for the item.
- components is optional json.
Give Command in Minecraft Windows 10 Edition
In Minecraft Windows 10 Edition, the syntax to give a player an item is:
Definitions
- player is the name of the player (or a target selector) to give the item to.
- itemName is the name of the item to give (See Minecraft Item Names).
- amount is optional. It is the amount of the item that you want to give. If you don't specify an amount, the player will be given 1 of the item.
- data is optional. It identifies the variation of the block if more than one type exists for that Item ID (See Minecraft Data Values). Use a value of 0 if no data value exists for the item.
- components is optional json.
Give Command in Minecraft Education Edition
In Minecraft Education Edition, the syntax to give a player an item is:
Definitions
- player is the name of the player (or a target selector) to give the item to.
- itemName is the name of the item to give (See Minecraft Item Names).
- amount is optional. It is the amount of the item that you want to give. If you don't specify an amount, the player will be given 1 of the item.
- data is optional. It identifies the variation of the block if more than one type exists for that Item ID (See Minecraft Data Values). Use a value of 0 if no data value exists for the item.
- components is optional json.
Examples
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Example in Java Edition (PC/Mac) 1.13, 1.14 and 1.15
To give 1 block of gold to the player named DigMinecraft in Minecraft 1.13, 1.14 and 1.15:
To give 4 blocks of gold to the player named DigMinecraft:
To give 2 jungle wood planks to the nearest player:
Example in Java Edition (PC/Mac) 1.11 and 1.12
To give 2 jungle wood planks to the nearest player in Minecraft 1.11 and 1.12:
Example in Pocket Edition (PE)
To give 1 enchanted golden apple to the player named DigMinecraft in Minecraft PE:
To give 25 enchanted golden apples to the player named DigMinecraft:
To give 64 magenta wool to the nearest player:
Example in Xbox One Edition
To give 1 apple to the player named DigMinecraft in Minecraft Xbox One Edition:
To give 10 apples to the player named DigMinecraft:
To give 64 iron ingot to a random player:
Example in PS4 Edition
To give 1 cake to the player named DigMinecraft in Minecraft PS4 Edition:
To give 10 cakes to the player named DigMinecraft:
To give 64 gold blocks to the nearest player:
Example in Nintendo Switch Edition
To give 1 cookie to the player named DigMinecraft in Minecraft Nintendo Switch Edition:
To give 4 cookies to the player named DigMinecraft:
To give 64 diamonds to the nearest player:
Example in Windows 10 Edition
To give 1 golden apple to the player named DigMinecraft in Minecraft Windows 10 Edition:
To give 8 golden apples to the player named DigMinecraft:
To give 64 magenta wool to the nearest player:
Example in Education Edition
To give 1 saddle to the player named DigMinecraft in Minecraft Education Edition:
To give 3 saddles to the player named DigMinecraft:
To give 64 purple dye to the nearest player:
How to Enter the Command
1. Open the Chat Window
The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:
- For Java Edition (PC/Mac), press the T key to open the chat window.
- For Pocket Edition (PE), tap on the chat button at the top of the screen.
- For Xbox One, press the D-Pad (right) on the controller.
- For PS4, press the D-Pad (right) on the controller.
- For Nintendo Switch, press the right arrow button on the controller.
- For Windows 10 Edition, press the T key to open the chat window.
- For Education Edition, press the T key to open the chat window.
2. Type the Command
We will cover examples of how to use the /give command to give an item to a player as well as more than one item to a player at a time. We will also explore how to use the DataValue parameter in the /give command to specify a variation of a block.
Give an Item
In the first example, we want to give the player named DigMinecraft a block of gold with the following command:
Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.
Once the cheat has been entered, the gold block will be added to the player's inventory.
You will see the message 'Given [Block of Gold] x 1 to DigMinecraft' appear in the lower left corner of the game window. You have now given 1 block of gold to the player called DigMinecraft.
Give Multiples of Item
In the first example, we did not enter the Amount parameter so only one gold block was given. If want to give multiple blocks at once, you need to specify an Amount in the /give command. The amount goes after the Item that you are giving.
For example, you can give DigMinecraft 4 blocks of gold with the following command:
Type the command in the chat window and press the Enter key to run the command.
In this example, you have specified an amount of 4 in the /give command.
You will see the message 'Given [Block of Gold] x 4 to DigMinecraft' appear in the lower left corner of the game window. Now DigMinecraft will be given 4 blocks of gold that is added to the player's inventory.
Give Variation of an Item
The last example that we want to cover is how to give an item to player when the minecraft name refers to more than one variation of the block. For example, planks
is the name assigned to all 6 types of wood planks (oak, acacia, birch, dark oak, jungle, and spruce). If you just specify planks
in the /give command, you will always be given an oak plank.
But how can you give a player jungle wood planks instead of oak planks? Easy enough, just add a DataValue to the end of the /give command. Sometimes, people will refer to the DataValue as damage value or data value.
For example, you can give 2 jungle wood planks to the nearest player with the following command:
Type the command in the chat window and press the Enter key to run the command.
Turn Off Hints Minecraft
In this example, we have used a DataValue of 3 to specify the variation of plank that we want to give (ie. 3=Jungle Wood Plank). See a complete list of Minecraft IDs that is interactive and searchable.
Item | Description (Minecraft ID Name) | Minecraft Data Value |
---|---|---|
Oak Wood Plank (planks) | 0 | |
Spruce Wood Plank (planks) | 1 | |
Birch Wood Plank (planks) | 2 | |
Jungle Wood Plank (planks) | 3 | |
Acacia Wood Plank (planks) | 4 | |
Dark Oak Wood Plank (planks) | 5 |
You will see the message 'Given [Jungle Wood Planks] x 2 to DigMinecraft' appear in the lower left corner of the game window. Now the nearest player (DigMinecraft) will be given 2 jungle wood planks that are added to the player's inventory.
Congratulations, you have learned how to use the /give command in Minecraft.
Other Give Commands
You can use other give commands in Minecraft such as:
Items
Command Generators
If you need help with /give commands, you can use these tools to automatically generate commands in Minecraft:
Other Game Commands
You can use other commands and cheats in Minecraft such as:
This Minecraft tutorial explains how to use the /xp command to increase your experience points with screenshots and step-by-step instructions.
If you want a quick way to gain experience points or even experience levels in the game, you can use the /xp command to add as much experience as you need (see also the /experience command). Let's explore how to use this cheat (game command).
Supported Platforms
The /xp command is available in the following versions of Minecraft:
Platform | Supported (Version*) |
---|---|
Java Edition (PC/Mac) | Yes (1.3.1) |
Pocket Edition (PE) | Yes (0.16.0) |
Xbox 360 | No |
Xbox One | Yes (1.2) |
PS3 | No |
PS4 | Yes (1.14.0) |
Wii U | No |
Nintendo Switch | Yes (1.5.0) |
Windows 10 Edition | Yes (0.16.0) |
Education Edition | Yes |
* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
Requirements
To run game commands in Minecraft, you have to turn cheats on in your world.
Xp Command
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Xp Command in Minecraft Java Edition (PC/Mac)
In Minecraft Java Edition (PC/Mac) 1.13, 1.14 and 1.15, there are different syntaxes depending on whether you would like to add, query or set the experience of a player.
To add experience to a player:
To query the experience of a player:
To set the experience of a player:
In Minecraft Java Edition (PC/Mac) 1.8, 1.9, 1.10, 1.11 and 1.12, there are different syntaxes depending on how much experience you would like to add.
To add experience points to a player:
To add experience levels to a player:
Definitions
- targets or player is the name of the player (or a target selector) that you wish to target.
- amount is the amount of experience. If you specify
levels
orL
after the amount (depending on your version of Minecraft), you will add experience levels. Otherwise, you will only add experience points. You can remove experience by entering a negative amount when adding experience to a player. - levels is used to indicate experience levels.
- points is used to indicate experience points.
Xp Command in Minecraft Pocket Edition (PE)
In Minecraft Pocket Edition (PE), there are different syntaxes depending on how much experience you would like to add.
To add experience points to a player:
To add experience levels to a player:
Definitions
- amount is the amount of experience to add to the player. If you specify
L
after the amount, you will add experience levels. Otherwise, you will only add experience points. You can remove experience by entering a negative amount. - player is the name of the player (or a target selector) that you wish to give the experience to.
Xp Command in Minecraft Xbox One Edition
In Minecraft Xbox One Edition, there are different syntaxes depending on how much experience you would like to add.
To add experience points to a player:
To add experience levels to a player:
Definitions
- amount is the amount of experience to add to the player. If you specify
L
after the amount, you will add experience levels. Otherwise, you will only add experience points. You can remove experience by entering a negative amount. - player is the name of the player (or a target selector) that you wish to give the experience to.
Xp Command in Minecraft PS4 Edition
In Minecraft PS4 Edition, there are different syntaxes depending on how much experience you would like to add.
To add experience points to a player:
To add experience levels to a player:
Definitions
- amount is the amount of experience to add to the player. If you specify
L
after the amount, you will add experience levels. Otherwise, you will only add experience points. You can remove experience by entering a negative amount. - player is the name of the player (or a target selector) that you wish to give the experience to.
Xp Command in Minecraft Nintendo Switch Edition
In Minecraft Nintendo Switch Edition, there are different syntaxes depending on how much experience you would like to add.
To add experience points to a player:
To add experience levels to a player:
Definitions
- amount is the amount of experience to add to the player. If you specify
L
after the amount, you will add experience levels. Otherwise, you will only add experience points. You can remove experience by entering a negative amount. - player is the name of the player (or a target selector) that you wish to give the experience to.
Xp Command in Minecraft Windows 10 Edition
In Minecraft Windows 10 Edition, there are different syntaxes depending on how much experience you would like to add.
To add experience points to a player:
To add experience levels to a player:
Definitions
- amount is the amount of experience to add to the player. If you specify
L
after the amount, you will add experience levels. Otherwise, you will only add experience points. You can remove experience by entering a negative amount. - player is the name of the player (or a target selector) that you wish to give the experience to.
Xp Command in Minecraft Education Edition
Minecraft Hints And Tips
In Minecraft Education Edition, there are different syntaxes depending on how much experience you would like to add.
To add experience points to a player:
To add experience levels to a player:
Definitions
- amount is the amount of experience to add to the player. If you specify
L
after the amount, you will add experience levels. Otherwise, you will only add experience points. You can remove experience by entering a negative amount. - player is the name of the player (or a target selector) that you wish to give the experience to.
Examples
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Example in Java Edition (PC/Mac) 1.13, 1.14 and 1.15
To give 20 experience levels to the player called DigMinecraft in Minecraft 1.13, 1.14 and 1.15:
To give 8 experience points to the nearest player:
To remove 3 experience points from all players:
To set the experience levels of a random player to 50:
To query the experience levels of the nearest player (you can only query one player at a time):
Example in Java Edition (PC/Mac) 1.11 and 1.12
To give 3 experience points to the player called DigMinecraft in Minecraft 1.11 and 1.12:
To give 7 experience points to a random player:
To give 5 experience levels to the player called DigMinecraft:
To give 12 experience levels to all players:
To take away 3 experience levels from a random player:
Example in Pocket Edition (PE)
To give 6 experience points to the player called Axe2Grind in Minecraft PE:
To give 25 experience levels to all players:
To take away 2 experience levels from the nearest player:
Example in Xbox One Edition
To give 5 experience points to the player called TheEarthMover in Minecraft Xbox One Edition:
To give 30 experience levels to all players:
To take away 7 experience levels from a random player:
Example in PS4 Edition
To give 3 experience points to the player called DigMinecraft in Minecraft PS4 Edition:
To give 25 experience levels to all players:
To take away 2 experience levels from the nearest player:
Example in Nintendo Switch Edition
To give 9 experience points to the player called DigMinecraft in Minecraft Nintendo Switch Edition:
To give 18 experience levels to all players:
To take away 4 experience levels from all players:
Example in Windows 10 Edition
To give 15 experience points to the player called TheExcavator in Minecraft Windows 10 Edition:
To give 8 experience levels to the nearest player:
To take away 5 experience points from a random player:
Example in Education Edition
To give 4 experience points to the player called TheEarthMover in Minecraft Education Edition:
To give 30 experience levels to a random player:
To take away 4 experience levels from all players:
How to Enter the Command
1. Open the Chat Window
The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:
- For Java Edition (PC/Mac), press the T key to open the chat window.
- For Pocket Edition (PE), tap on the chat button at the top of the screen.
- For Xbox One, press the D-Pad (right) on the controller.
- For PS4, press the D-Pad (right) on the controller.
- For Nintendo Switch, press the right arrow button on the controller.
- For Windows 10 Edition, press the T key to open the chat window.
- For Education Edition, press the T key to open the chat window.
2. Type the Command
We will cover examples of how to use the /xp command to add experience points to a player as well as experience levels.
Add Experience Points
Let's start by showing how to add experience points to a player.
For example, you could add 3 experience points to the player called DigMinecraft with the following command:
Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.
Once the cheat has been entered, the experience points will be added to the player's experience bar.
Remove Game Hints Tips Mac Minecraft 1
You will see the message 'Given 3 experience to DigMinecraft' appear in the lower left corner of the game window.
You have now given 3 experience points to the player called DigMinecraft.
Add Experience Levels
In the first example, we added experience points. Now let's show you how to add experience levels using the /xp command.
When you use the L
attribute with the /xp command, you add experience levels to a player. An experience level is one entire bar filled. When you add an experience level, you will see the experience level counter for the player increase.
For example, you could add 5 levels of experience to the player called DigMinecraft with the following command:
Type the command in the chat window and press the Enter key to run the command.
Before the /xp command is entered, the player is at experience level 2.
Once the cheat has been entered, you will see the message 'Given 5 levels to DigMinecraft' appear in the lower left corner of the game window.
Now the experience counter for DigMinecraft has increased from 2 to 7 because you have given 5 experience levels to this player.
Congratulations, you just learned how to use the /xp command in Minecraft!
Other Experience Information
Other Game Commands
You can use other commands and cheats in Minecraft such as: