
This is a fishing rod, and this is also a fishing rod, except it has a grappling hook ability. Hey everyone, it’s Under My Cat, and today I’m going to show you how to convert a fishing rod into a grappling hook. I’m also going to show you the alternative for Bedrock players because this command only works for Java at the moment. However, the alternative kind of works. Now, unlike all the other tutorials where there are seven command blocks and such, I’ve managed to limit it down to only three. Additionally, two of them are optional, so we only need one command, which is really good. In this tutorial, I’m going to leave a whole bunch of links to all the other tutorials I’ve done. For example, I use the particle command and the execute command in this video, and I’ll leave those links in the description in case you want to check them out and learn something new. First of all, you want to get a command block. Type in `/give @s command_block`, and once you do that, you will receive the command block. Now, I’m going to quickly turn off all of these just to ensure that the command is not running. As you can see, when I get the fishing rod, nothing happens. Just to show you, I’m not doing any magic or using any data packs—it’s nothing like that. So what we want to do is place the command block down. I’m going to place the command block here and start with the first command. The first command is the main command, and it involves the execute command. So we want to type in `/execute @e[type=fishing_bobber]`. Basically, this command will execute at the fishing bobber. If you didn’t already know, the fishing bobber is an actual separate entity. That thing right there is an actual entity, and this allows us to execute commands at it, making it easier for us. The next part is the if statement, which tests something before executing the command. This command will only execute if that condition is true. We will test for the block underneath, so everything around you is air, and that is actually considered a block. You can’t be given a block, but you can imagine that there are a whole bunch of blocks of air, and that’s what we are testing for here. So we will only execute it if the block beneath the fishing rod is air. Once we’ve done this, we need to add `run` followed by our teleport command. We’re going to do `/tp @p[distance=..10]` now. That might not make any sense to you, but it’s straightforward. It will teleport the nearest player within a distance of 10 blocks or less to the fishing bobber. The two dots indicate 10 or lower. If I wanted to set it to 10 or higher, I would remove the two dots and put them on the other side. Now, before we finish, we just need to add three squiggly lines because that’s where we are going to be teleported to. Now it should work. I want to warn you that the next part may be a bit flashy, so just a heads-up—the screen might glitch a bit, but I’ll show you how to stop that. As you can see now, when I throw the hook, I go with it. It’s a bit flickery; you can see it’s not a smooth transition. You can only move around very slowly, and you kind of flicker up and down. To stop that, we can use my two optional command blocks. The first one is to apply a levitation effect. You might be wondering why we need to do this, but the idea is to make the levitation effect keep you in the air without actually moving you up or down. It probably sounds confusing now but it’ll make sense soon. What you want to do is copy your original command. If you’re on Windows, you would do `Control + A` and then `Control + C`. I’m going to go over here and hit `Control + V`, and you can see it has copied the whole command. The only part we want to keep is the execute part, so we can remove all of the `run` command here. Once we’ve kept this part, we want to add the effect command to it. Just so you know, all the links are in the description below. What you want to do is type in `run effect @a[distance=..10] levitation 1 255 true`. The most important part here is setting the duration to one second with an amplifier of 255. When we run this command, you will notice that we stay smoother, and we also get a smooth effect that eliminates that weird glitchy feeling. Now, as you can see in the top right corner, we can see the effect and a bunch of swirls on our character. If you don’t want that, all we have to do is go back into the command and type in `true`, and as you can see, we won’t get that effect, so it looks very smooth. If you want to add an optional cool trail, all you need to do is copy the command block by holding ‘Control’ and clicking your pick button. We are simply going to remove this command here to add the particle. We can do `particles smoke ~ ~ ~ 0 0 1 force`. The particle command is a little more advanced than this, so if you want to figure it out for Bedrock and Java, I have numerous tutorials in the description that you can view. Once you have done this, hit done. Now when we activate this command, you can see a cool smoke effect, which gives the illusion that something is happening. One last thing before we move to the Bedrock alternative—there’s a command block over here that you might not have seen earlier. When you have all these commands running, the chat becomes very cluttered with executed commands. To remove that, just type this command into your console or a command block; it doesn’t really matter. Just get a lever or set it to ‘always active’ and set the command block output to `false`. This will stop the output of the command. Now, I’ve loaded up Bedrock, and as you can see, it looks completely different. Well, to some, it might look the same, but it’s entirely different. My alternative is okay, so now the execute command and all those commands in Bedrock are completely different from Java. I don’t know why; they just are, and you can also see that my crouching is very different. If we look at the command block, my alternative is just `execute @a ~ ~ ~ tp @e[type=fishing_rod_hook]`. The one thing I did notice about this command is that it doesn’t point you in the direction you want. You can go in the direction you wish, but your character’s face turns the other way for some reason. So if we go this way, we’ll get teleported the way we want, which is really cool, but if we go this way, we did end up going there, but for some reason, our character turned the other way. So yeah, that’s about it. If you enjoyed the video, please leave a like. Also, don’t forget to subscribe to the channel if you’re new. I like to create a bunch of command tutorials. If you want to leave a comment with video suggestions, I will read through them and check them out. Thank you so much for watching, and I can’t wait to see you in the next video!
This post has used AI to generate and enhance content