How to Give Yourself Items with a Command

Learn how to use the /give command in Minecraft Java and Bedrock editions to add any item directly to your inventory.

BothEasy3 minutes

Need items fast without grinding for resources? The /give command is a powerful tool that allows you to spawn any item straight into your inventory. Before you begin, make sure cheats are enabled in your world. If you are new to using in-game commands, check out our guide on how to use commands for a quick overview.

Cheats must be turned on in your world settings for the /give command to work. In worlds where cheats are disabled, the command will fail and display an error message in chat.

1. Open Your Chat Window

Press the T key on Java Edition, tap the chat icon at the top of the screen on Bedrock mobile devices, or press right on the D-pad on consoles to open the chat window. This is where you will type out your command.

2. Type the Base Give Command

Start by typing the basic syntax for the command, which begins with /give. You can target yourself by typing @s or your exact player username right after the command.

3. Select the Item You Want

Type a space after your target name and begin typing the name of the item you want to spawn. Modern versions of Minecraft feature auto-completion, which will suggest valid item names (such as minecraft:diamond or minecraft:iron_sword) as you type.

4. Optional: Add a Quantity

If you want more than a single item, type a space after the item name and enter the desired number. For example, typing 64 will give you a full stack of that item. If you leave this blank, the game will default to giving you one.

5. Execute the Command

Press the Enter key or tap the send button to run the command. The item will instantly appear in your active inventory slots or drop at your feet if your inventory is completely full.

Frequently Asked Questions

Can I use the /give command on other players?

Yes! Instead of using your own name or @s, you can type another player's exact username or use target selectors like @p for the nearest player or @a for all players.

Why is my command not working?

Double-check that cheats are enabled in your world. Also ensure that you spelled the item name correctly and included the minecraft: namespace prefix if the game fails to recognize the item.

You May Also Like