
Hey everybody, it’s Under My Cap, and welcome back to another video! Today, I’m going to show you how to create a very cool and fast elevator for your Minecraft world using commands. Now, if you look behind me, you can see two platforms. I’m going to explain how to make the command for the elevator. The command blocks in the background are the two necessary ones: one for going up and one for going down. So without further ado, let’s get straight into this. As you can see, this is the elevator itself. There are two pieces of wood and the rest is stone. You can change these blocks to whatever you like, as I will show you in the tutorial, but for demonstration purposes and to make it stand out, I will use this setup. When I stand on the platform and jump, I get teleported up, and you can see that the command has been executed. To get down, I use the darker block of wood and jump, which teleports me back down. This is really cool! You can use this elevator as much as you like, and it works for multiple stories. Although I haven’t added another story here, if I jump, it teleports me as expected. It does glitch a bit because I didn’t land on anything, so you can see it teleports me twice. However, it still works really well. Let’s get straight into the command now. There is essentially just one command, and once you finish that command, it can be altered in as many ways as you like. Let me clear this so you can see it more clearly. It starts with the execute command, and we are executing it as everyone but to ourselves. This means that you can play with this on a multiplayer server, and only your unique player who stands on the block will be teleported. So, basically, what you want to type is `/execute` followed by `as @a`. This tells the command block to run the command at each player. Next, you want to type `run execute at @s`. This allows it to run a command for each player and then run it specifically for the player. We want to test if there is a specific block underneath the player. In this example, we will use stone. If the block is indeed stone, we then want to run a teleport command with three squiggly lines. This is important because depending on where you want to be teleported, you will change those three coordinates. For our situation, we are only going to change the Y-axis, which is the second coordinate. Let’s say you wanted to teleport up seven blocks. You would change the middle number to 7, and then you’re done. I made a mistake earlier; I accidentally entered negative one. To test for a block beneath you, it’s better to test two blocks beneath so that when you jump, you get teleported correctly. I recommend this because on a server, if others don’t want to be constantly teleported or have to walk around a block, they can freely walk around without any issues. But as soon as they jump, the command activates. To show that this is flexible, I can change the number to 9 and the block to a stone brick slab. As you can see, if I jump over it now, it works. I keep getting teleported just because there is nothing beneath me. Now, for the going down part, you just want to copy the command block using Control + middle click, and all you need to do is invert the number to negative. Be sure to change the block to a different one just to avoid mixed commands. For example, I will use wool. Now, if I stand on the wool and jump, I will get teleported down, which is really cool. That’s about it! This video is quite fast, and I think a subscriber actually suggested this idea, so thank you for your contribution! If you have any other ideas for future videos, please leave them in the comments below. Don’t forget to leave a like and subscribe to my channel for more Minecraft content. My social links are also in the description, so make sure to check them out. I can’t wait to see you in the next video. See ya!
This post has used AI to generate and enhance content