How To Use The Minecraft Replace Item Command In Bedrock MCPE! (Updated)
Video Summary
In this video I show how to use the /replaceitem command in Minecraft Bedrock/MCPE (note: Java uses a different /item command). I explain that you must enable cheats, then demonstrate replacing items on an entity by putting glass in my helmet slot and placing items into specific inventory slots. After that, I walk through replacing items in a chest by using the block’s coordinates, slot.container, and a slot ID to insert items like bamboo. I wrap up by reminding Java players to watch the Java-specific tutorial and asking you to like and subscribe.
Formatted Transcript
Hey everyone, I’m UnderMyCap, and welcome back. Today I’m going to show you how to use the /replaceitem command in Minecraft Bedrock Edition.
If you’re on Java Edition, this won’t work the same way. Java now uses a different command structure (it’s /item), so make sure you follow a Java-specific tutorial instead.
Before You Start: Enable Cheats
First, make sure cheats are enabled in your world. If cheats aren’t enabled, the command won’t run. Once cheats are on, you’ll be able to use /replaceitem normally.
How the /replaceitem Command Works (Bedrock)
In Bedrock, the command is still /replaceitem. When you start typing it, the game will prompt you with the parts of the command you can fill in, such as:
Entity or block, position, container type, slot, slot ID, and the item name.
Replacing an Item on an Entity (Example: Put Glass on Your Head)
Let’s start by replacing an item on an entity—in this case, the player. I’m going to use my own player name (UnderMyCap) and replace my helmet slot with glass to make it look like an astronaut helmet.
Use the command for an entity, then choose the armor slot:
Once you type slot.armor, you’ll see options like:
slot.armor.feet, slot.armor.chest, slot.armor.head, slot.armor.legs
Because I want glass on my head, I use:
slot.armor.head
Then set the slot ID (for armor, this is typically 0), choose the item, and optionally include an amount. For example, one glass:
After running the command, you’ll see a confirmation message, and when you open your inventory, you’ll have a glass block in your helmet slot.
One thing I expected was for the player model to visually show the glass on the head, but it didn’t update the way I thought it would. Also, the placed item behaves differently than normal armor—you may not be able to freely move it around like a regular item.
Replacing an Item in Your Inventory (Example: Put Redstone in Slot 5)
You can also replace items in inventory slots. Use:
slot.inventory
This is where the slot ID matters more. The slot ID starts at 0 for the first inventory slot and increases from there.
For example, if you want to place redstone into slot 5 with an amount of 1, run the command and it will insert redstone dust into that specific inventory slot.
Replacing an Item in a Chest (Block Example)
Now let’s replace items inside a chest. For this, you’ll use block instead of entity.
Make sure you’re pointing your crosshair at the chest so you can identify its coordinates easily. Once you have the chest’s position, you’ll enter the coordinates into the command.
For a chest, the slot type will be slot.container (since a chest doesn’t have armor slots). Then you provide the slot ID you want to edit (for example, 5), followed by the item and the amount.
Example: placing 10 bamboo into chest slot 5 will result in that chest slot filling with 10 bamboo when you open it.
You can also target other chest slots the same way. For example, using slot ID 10 will place the item into slot 10.
This also works with double chests as well, which means you can target a larger range of container slots.
Wrapping Up
That’s basically it. I tried to keep this as short and practical as possible so you can quickly get what you need and start using the command.
Again, if you’re on Java Edition, this is not the right command format—make sure you find the Java version using /item. A lot of people run into issues because they’re using the Bedrock command on Java.
Thanks for watching, and I’ll see you in the next one.
Video Thumbnail
Recommended Items Based On Post
Advertisment



![Minecraft – Disaster Strikes [5] Minecraft – Disaster Strikes [5]](https://i0.wp.com/img.youtube.com/vi/cI6T6qTsvsw/maxresdefault.jpg?fit=1024%2C1024&ssl=1)
