
Hey everybody, I’m UnderMyCap, and welcome back to another video. Today, I’m showing you how to use the replace item command in Bedrock Edition. If you are on Java Edition, make sure to check out that video, as this one will not work for you due to the uniquely different command structure called slash item in Java. Now, let’s get straight into it. As you can see, I am in Bedrock Edition, and from this inventory, you can tell it is Bedrock. To bring up the command, let’s open the command terminal. Unlike Java Edition where it’s now slash item, it’s still replace item in Bedrock Edition. If I type replace item, you’ll see that I didn’t enable cheats. This is probably a good time to mention that you need to activate cheats for the world to work. So, as you can see, the replace item command is now functional. It also pops up with what we’ll be covering in this video: the position, type of container, slot, slot ID, and the name. I’m going to do entity, and I will also show you how to replace both entities and blocks with chests. Now, let’s type in “UnderMyCap,” and we will change the slot ID to slot armor because, for now, I’m going to try to make myself into an astronaut with glass on my head. As you can see, once I typed in slot armor, a whole bunch of other options pop up. We have slot armor feet, chest, head, and legs. For now, since I want to put a glass block on my head, I’m going to type in armor.head and then set the slot ID to 0, which is currently empty. Now, here comes the interesting part. I want to type in what I want to put on my head, and you can see that everything pops up. I’m going to simply type in glass. I’m pretty sure that’s all you do. Yep, and then you can put in your amount. I’m going to set it to 1, and that’s the basic command. If I hit enter, you’ll notice it says it replaced the armor with glass. If I go into my inventory, I now have glass on my head. Now, something I thought would happen is that my player would show up with glass on their head, but for some reason, that hasn’t happened. That’s odd. You can see that I can’t actually put the glass on. When I put it on, the glass appears there, but I can’t take it back off. The same goes for other slots as well; they all pop up, which is really useful. For inventory, you can type in slot.inventory, and this is where you input your slot ID. This is where it actually counts; it goes from zero being the first slot to however many slots there are. So, let’s say I want to put an item in slot number five. I’ll just say redstone and hit enter with an amount of 1. You’ll see that it actually puts redstone dust in that slot, which is pretty cool. Now, if you want to put something in a chest, here’s how it works: make sure your cursor, or the little cross if you’re playing with a cursor, is pointing above the chest. If you’re playing on a mobile device, just ensure your circle is on top of the chest before you do anything. Then, you simply want to type in the command. So, replace item – we’re going to use block this time, not entity – and you’ll need the coordinates as they pop up. You can see the 77 is where I’m looking, so if I type in 77, 71, and negative 46, that indicates the chest’s location. You can see it’s going to use slot.container because a chest doesn’t have armor. If we select that, we’ll set the slot ID to 5. I’ll put bamboo in there, so let’s say I want to place 10 bamboo, and you’ll see that when I open this chest, there are 10 bamboo in it. Now, I find it interesting to note that I can’t do a ridiculously high number, but I can fill the slot with bamboo. I can also specify slot 10, and unsurprisingly, it will be in slot number 10. This also works for double chests, so if I had a combined chest, the slots would extend accordingly. Now, that’s about it. I’ve tried to make this video as short as possible so you can get the information you need. Again, if you are on Java Edition, please make sure to check out the Java Edition video. I’ve seen many people commenting that it isn’t working, so if you are on Java, please check out that video. It would really mean a lot if you could leave a like and subscribe. Thank you so much for watching, and I can’t wait to see you in the next video. See ya!
This post has used AI to generate and enhance content