
[Music] As you saw just then, I’m going to show you how to use the /playsound command in Minecraft Java Edition. So without further ado, let’s get straight into this. As you can see, I’ve already given myself a command block, and I’m going to show you how I did the sound at the very start of the video. First of all, what you want to do is click on the command block. Now you’re greeted with the normal command block console, and in here, you just want to simply type in `/playsound`, and you’ll be able to tab it in. The /playsound command, as you saw before, allows you to play a sound in Minecraft, and I’m going to guide you through this. First of all, once we type this in, you want to hit space, and you’ll see a lot of options pop up. Now this is where you can input the sound you want to play. Minecraft has a lot of sounds; you can see there are many to choose from. I’m going to choose the entity player burp, but you can select any other sound, and it will work completely fine for you. Once you’ve done this, you want to move on to the next step. This is where the sound will play from. You can see Minecraft has a whole bunch of ways that sounds can be played to a player. I like to use ‘ambient’ because it’s kind of like a random noise that plays. You can choose the other ones depending on your needs. After this, you want to select where you want your sound to be played or where you want your sound to be heard. I’m going to select ‘all players.’ If you want yourself specifically, you can type your name if you are running the command through your console and not through the command block; you can do @s to hear the sound, but it’s not too useful. Then, using ‘random’, you can make it play a sound randomly at any player on a server or yourself if it’s just you. For now, I’m going to just do ‘@a’ and type in coordinates. Instead of typing in exact coordinates, I’m going to use three tildes. For some reason, my keyboard is a little bit dodgy, so you want to make sure that there is a space between each one of these. This represents the relative position of the command block, so the sound will play at this command block. If we want it to play five blocks above the command block, simply put a 5 in this space here. Basically, these represent each coordinate: your X coordinate, your Y coordinate, and your Z coordinate. If you want the sound to follow a player, I’ll show you how to do this in the next command I’m about to show you. But once you’ve done this, you just want to select the volume. I’m going to set it to 10. The pitch can also be adjusted. You can speed up or slow down the sound; hence, it makes the pitch sound higher if it’s faster or lower if it’s slower. So let’s set it to 0.5 just because I want to hear what it sounds like, and we’ll do a minimum volume of 0.5 because I don’t want it to get any quieter. And that is it. Now, once we do this, I’m going to simply hit ‘done.’ Let’s just get a wooden button. When we play the sound, you can hear it—it sounds like a crunch. Now that we’ve got the basic command, let’s do a more advanced one that allows you to make a sound follow a player. First of all, what we want to do—and yes, I did build this house very quickly—is open up the command block and keep the command that we’ve just done. I’m going to go all the way to the very start and remove this slash. Now what we want to do is type in ‘execute.’ Right, we’re going to make it an execute command, and we want to do ‘execute at.’ I’m going to type ‘UnderMyCap’ just because I want the sound to play for that player. So to show you, we’ll write ‘execute at UnderMyCap,’ then we’ll do ‘run,’ and that is it. Now, once we’ve done this, the command will actually follow the player. So what I’m going to do is quickly go to the very end of this command and make the sound play at me. Let’s set it to repeat. Now, I warn you, this might be a bit loud. If I fly away from the command block, it will still follow me. As you can see, I’ve flown away, and it is burping. I’m going to turn that off. As you can see, it was following me around the world, and I’m sure you can do this with a whole bunch of other things. I mean, if you really wanted to, you could make the sound play at a bee or… I guess there are only bees in this world, but you get the point. You can play the sound anywhere. If you did enjoy the video, don’t forget to leave a like and subscribe to UnderMyCap. I can’t wait to see you in the next video. See you!
This post has used AI to generate and enhance content and uses ads to maintain funding for the site