To give yourself items in Minecraft, you must enable cheats in your world settings and use the /give command in the chat console. This process allows you to bypass traditional survival gameplay to instantly obtain any block, tool, weapon, or resource available in the game's database. Whether you are building a massive structure and need infinite stone or you want to test out high-level enchanted gear, the command system is the most direct method.

What You'll Need

  • A Minecraft world where 'Cheats' are enabled (or 'Allow Cheats' is toggled on).
  • Access to the in-game chat interface (usually the 'T' key on PC or the D-pad/Select button on consoles).
  • Knowledge of the specific item ID or name you wish to summon.

Step-by-Step

  1. Check Cheat Status: Before attempting to use commands, ensure your world allows them. If you are in a single-player world and forgot to enable cheats during creation, you can often enable them temporarily on Java Edition by pressing the Esc key, selecting 'Open to LAN', and toggling 'Allow Cheats: ON'. On Bedrock Edition (consoles, mobile, and Windows 10/11), cheats must be enabled in the world settings menu before you load the save. Note that enabling cheats in a Bedrock world will permanently disable the ability to earn Achievements in that specific world.
  2. Open the Chat Console: Once cheats are active, bring up the command input field. On a PC, press the 'T' key or '/' key. On PlayStation, press the Right D-pad. On Xbox, press the D-pad Right. On Nintendo Switch, press the Right D-pad. On mobile devices, tap the chat icon at the top of the screen.
  3. Enter the Command Syntax: Type the base command followed by the player name and the item identifier. The standard format is /give [player] [item] [amount]. If you want to give the item to yourself, you can simply type your username, or more easily, use @s, which is a selector that represents 'self'.
  4. Identify the Item ID: You cannot simply type "Diamond Sword" in some versions; you must use the technical ID. For example, to get a diamond, you would type /give @s diamond. To get a stack of 64 diamonds, you would type /give @s diamond 64. If you are unsure of an ID, start typing the name and use the 'Tab' key on PC to auto-complete the name, or look at the suggestion box that appears above the chat bar.
  5. Execute the Command: After typing the full string, press 'Enter' on your keyboard or the corresponding 'Confirm' button on your controller. If successful, the item will appear immediately in your inventory or your active hotbar.

Common Mistakes

One of the most frequent errors is a syntax error. This occurs when a space is missing between the command, the player name, and the item name. For instance, typing /give@sstone will fail; it must be /give @s stone. Another common mistake is using the wrong name for an item. Minecraft uses specific internal names (IDs) that may differ from the display name you see in the creative inventory. For example, a 'Golden Apple' might require the ID golden_apple. If you type the name with spaces, such as /give @s golden apple, the game will return an error because it interprets 'apple' as the quantity rather than part of the item name. Always use underscores (_) instead of spaces for multi-word items.

Another error involves attempting to use commands in a world where cheats are disabled. In Survival mode on a standard server or a private world without permissions, the command will simply not execute, and you may see a message stating "Unknown or incomplete command" or "You do not have permission to use this command." Always verify your cheat status first to avoid frustration.

Tips

To make item acquisition faster, learn the use of selectors. While @s is the easiest for giving items to yourself, @p targets the nearest player, which is useful if you are helping a friend nearby. If you are an administrator on a server, you can use @a to give an item to every single player on the server simultaneously—be careful with this, as giving a heavy item to 50 players at once can cause a momentary lag spike.

If you want to find specific items quickly, use the Tab key on a keyboard. As you type /give @s dia, pressing Tab will cycle through suggestions like diamond, diamond_axe, and diamond_boots. This prevents typos and saves significant time. Additionally, if you are looking for a specific enchanted item, you can often use more complex NBT tags in the Java Edition to specify the enchantment level directly within the command, though this requires a much more advanced command string.

Troubleshooting

If you type the command and nothing happens, check the following in order:

  1. Verify Cheat Activation: Check your world settings. If you are on a server, ensure you have 'Operator' (OP) status. If you are in single-player, ensure you have opened the world to LAN with cheats enabled.
  2. Check for Typos: Look closely at your command. Did you include the forward slash (/) at the beginning? Did you use underscores instead of spaces? Did you spell the item ID correctly?
  3. Check the Error Message: Minecraft usually provides a red error message in the chat if a command fails. "Player not found" means your username or selector is wrong. "Unknown item" means the ID you entered does not exist in the game's code.
  4. Check Inventory Space: If the command executes successfully but you don't see the item, check your inventory. If your inventory is completely full, the items may have been dropped on the ground at your feet.

Frequently Asked Questions

Can I give myself items in Survival mode?

Yes, but only if you have enabled cheats in the world settings. Enabling cheats will prevent you from earning achievements or trophies in that world on Bedrock Edition.

How do I get items if I forgot to turn on cheats?

On Java Edition, you can press Esc, select 'Open to LAN', and toggle 'Allow Cheats' to 'ON'. On Bedrock Edition, you must create a new world with cheats enabled or use a third-party world editor, as the setting cannot be toggled once the world is created.

What is the difference between @s and my username?

Both work to target yourself. Using your exact username is specific, while @s is a shorthand selector that automatically identifies the person typing the command as the target.

Why does the command say 'Unknown item'?

This happens when the ID you typed is incorrect. Minecraft uses technical names like cobblestone instead of "cobble" or "stone blocks." Always check the exact ID used by the game.

Can I give myself multiple items at once?

You can give yourself a large quantity of a single item by adding a number at the end of the command, such as /give @s iron_ingot 64. However, you cannot give yourself different types of items (like a sword and a pickaxe) in a single command string.