Minecraft Blogs / Article

Grappling Hook in Vanilla Minecraft

  • 12,398 views, 4 today
  • 19
  • 11
  • 39
MCmaster23's Avatar MCmaster23
Level 51 : Grandmaster Blob
47
So... this week Minecraft's dev. version 14w02a came out with some really interesting things. I was able to figure out how make it so you can use a fishing rod as a grappling hook, as well as integrate a cooldown. So lets see how it works...

Here is the Setup:
OdLkLpng

It's a little complicated. And remember that you must be using at least Minecraft 12w04a. You can edit your version in the Version Editor section of the launcher.



So, in the top-left corner is a very rapid clock. You can create it by:
1. Placing two repeaters next to eachother, facing opposing directions
2. Place a piece of redstone on both sides of each repeater (4 in total)
3. Place a redstone torch next to any redstone dust, and break it
4. Now, holding a piece of redstone, break any placed redstone and place it back very quickly
5. If done correctly, the clock should flicker on and off


But that's just the clock. As you can see by the image, the clock is connected to a command block. That command block's syntax is:

/testfor @e[name=unknown] {inGround:1b}

Let's back up a bit. When you cast a fishing rod, the little red bobber on the end is an entity with the name "unknown." So basically, this command block searches for any entity with the name "unknown." Since it is highly unlikely that another entity in the world will be named "unknown", we do not need to specify the entity type. And we must use the inGround variable, otherwise it will search for ANY "unknown" entity, even if it has not hit the ground yet.

Next, we have a comparator, which is the output of the command block. The comparator will only turn on if there in fact IS an "unknown" entity that is in the ground. The comparator then goes into a repeater, whose purpose is to extend the signal. The repeater then goes into a stone block, which is significant in the cooldown, which I will explain later.

As you can see by the image, there are 5 command blocks at the bottom of the screen. For now, ignore the command block that I have put a blue circle around. The other 4 command blocks all have different commands, and can be in any order you would like. I will show you them one by one:

/tp @p @e[name=unknown]

This teleports the closest player to the "unknown" entity, which is the fishing rod bobber.

/kill @e[name=unknown]

This kills the fishing rod bobber.

/playsound mob.horse.leather @p ~ ~ ~ 10

This plays a "whooshing" sound to the player.

/tellraw @p {text:"You have used Grappling Hook",color:red}

This tells the player when they have used the grappling hook. This one is optional, and you can modify the text and the text color if you would like.
__________________________________

Ok, now lets move on to the cooldown. The 5th command block, the one which I have labeled with a blue circle has this syntax:

/setblock 166 56 764 minecraft:air 0 replace

What this does it it sets an air block at the position of the stone block. (The coordinates may need to be modified). What this does is if you try to use the grappling hook now, the signal will not pass through the stone block because, well, it doesn't exist. Then the signal travels through some repeaters. I only used a few, but adding more will increase the cooldown, while deleting them with decrease it.

Ok, now when the redstone signal finishes traveling through the repeaters, it hits 2 command blocks. They are:

/setblock 166 56 764 minecraft:stone 0 replace

This sets a stone block back at the position so the signal can now travel through. And:

/tellraw @p {text:"Grappling Hook is ready",color:red}

Which lets the player know that they can use the grappling hook again.

____________________________________________________

This mechanic does not work well in multiplayer, since it is impossible to track the owner of a bobber. I think...
____________________________________________________

I will have many more of these 1.8 tutorials, so don't forgot to Diamond, Favorite and Subscribe!!
CreditDragnoz
Tags

Create an account or sign in to comment.

1
02/21/2019 9:49 am
Level 30 : Artisan Toast
mouse36
mouse36's Avatar
This is cool. I kind of want to edit it (in a downloaded world) so that a slime comes out when you right click. Then right click again, and the slime bounces toward that direction. Before you craft the grappling hook, you need a pet tiny slime. Although I'm very bad at commands. But it's cool. I like the texture.
1
09/30/2015 9:00 am
Level 1 : New Miner
wpq409
wpq409's Avatar

There is a way to tack them(sort of). Create an objective called Ghook as type (stat.useItem.minecraft.fishing.rod). Then, have the hook teleport (@p[score_Ghook_min=1]) Have the hook reset Ghook for the all players in a radius of five and then kill it. 

1
10/01/2015 9:31 pm
Level 51 : Grandmaster Blob
MCmaster23
MCmaster23's Avatar
Yeah, that would definitely work. I think I made this post before tracking stats was added
1
12/12/2014 12:02 pm
Level 1 : New Explorer
Xeod
Xeod's Avatar
Which command block has the blue circle around it?
1
12/13/2014 11:04 pm
Level 51 : Grandmaster Blob
MCmaster23
MCmaster23's Avatar
The one that I forgot to put a blue circle around :P
I think its the upper-left command block out of those 4.
1
04/29/2014 9:28 pm
Level 15 : Journeyman Geek
GamerGeeked
GamerGeeked's Avatar
do you have a download?
1
04/30/2014 6:48 pm
Level 51 : Grandmaster Blob
MCmaster23
MCmaster23's Avatar
Yeah, do you want a schematic or the world, which has a bunch of other stuff in it?
1
04/30/2014 7:06 pm
Level 15 : Journeyman Geek
GamerGeeked
GamerGeeked's Avatar
ummm...just a world?
1
01/14/2014 5:06 am
Level 38 : Artisan Engineer
Nilstyle
Nilstyle's Avatar
I love how you barely did a thing XD Most of the work was Dragnoz's! I mean,I know you credited him in the well,credit but many people don't even THINK about looking there.You should put it somewhere more noticeable.I saw someone asking "WOW how did you think of this???" When the main idea really isn't yours...I like it that people get the words out though the real creator should really get more credits than just simply being put in the credits...Maybe link his vid or something.
1
01/13/2014 4:10 pm
Level 32 : Artisan Dragonborn
porkchopper28
porkchopper28's Avatar
Hmm I tried to make this and copeid the commands exactly but the testfor doesnt work for me..
but nice Idea!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome