Minecraft / Blogs

Grappling Hook in Vanilla Minecraft

  • 19
  • 11
  • comment39
  • playlist_add
  • share
  • more_horiz
avatar MCmaster23
Level 49 : Master Blob
45
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

Comments : 39

star Login or register to post a comment.

Show Comments

1 - 39 of 39

  • mouse36
  • Level 20
  • Expert Toast
  • February 21, 2019, 4:49 am
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.
  • wpq409
  • Level 1
  • New Miner
  • September 30, 2015, 5:00 am
[h2]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. [/h2]
  • MCmaster23
  • Level 49
  • Master Blob
  • October 1, 2015, 5:31 pm
Yeah, that would definitely work. I think I made this post before tracking stats was added
  • Xeod
  • Level 1
  • New Explorer
  • December 12, 2014, 7:02 am
Which command block has the blue circle around it?
  • MCmaster23
  • Level 49
  • Master Blob
  • December 13, 2014, 6:04 pm
The one that I forgot to put a blue circle around :P
I think its the upper-left command block out of those 4.
do you have a download?
  • MCmaster23
  • Level 49
  • Master Blob
  • April 30, 2014, 2:48 pm
Yeah, do you want a schematic or the world, which has a bunch of other stuff in it?
ummm...just a world?
  • nepew0_new
  • Level 32
  • Artisan Engineer
  • January 14, 2014, 12:06 am
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.
  • porkchopper28
  • Level 30
  • Artisan Dragonborn
  • January 13, 2014, 11:10 am
Hmm I tried to make this and copeid the commands exactly but the testfor doesnt work for me..
but nice Idea!
  • MCmaster23
  • Level 49
  • Master Blob
  • January 13, 2014, 3:32 pm
Yeah i've had other people saying that it doesn't work but I can't seem to figure out the problem
  • Xeod
  • Level 1
  • New Explorer
  • December 12, 2014, 7:01 am
They may have been typing /testfor @e[name=uknown] {inGround:1} instead of {inGround:1b}
I did that :/
Go celebrate, you reached the pop reel! Congratz
[deleted]
  • Purpaw
  • Level 38
  • Artisan Dragonborn
  • January 12, 2014, 11:39 pm
This deserves way more attention.
  • MkJake65
  • Level 47
  • Master Artist
  • January 12, 2014, 7:11 pm
This is the better way of doing this (in my opinion)

www.youtube.com/watch?v=9StUwrTpS4Q
  • MkJake65
  • Level 47
  • Master Artist
  • January 12, 2014, 7:12 pm
Also more compact
  • MCmaster23
  • Level 49
  • Master Blob
  • January 13, 2014, 3:31 pm
the reason mine isn't so compact is 1) it's harder to explain when its compact and 2) dragnoz didn't use the cooldown
  • MkJake65
  • Level 47
  • Master Artist
  • January 13, 2014, 3:46 pm
kk
  • Tykinator
  • Level 25
  • Expert Nerd
  • January 12, 2014, 3:17 pm
Wow! How did You figure this out??? Very good job diamond!
  • MCmaster23
  • Level 49
  • Master Blob
  • January 12, 2014, 3:51 pm
Thank you!
  • Tykinator
  • Level 25
  • Expert Nerd
  • January 12, 2014, 4:51 pm
You are very welcome!
  • Fangride
  • Level 25
  • Expert Scribe
  • January 12, 2014, 3:11 pm
Was chatting about this design with a friend earlier! Fantastic tutorial here!
  • MCmaster23
  • Level 49
  • Master Blob
  • January 12, 2014, 3:52 pm
:D the only thing I don't like is you're facing upwards after you use it and there isn't much a fix for that, but this is the best that I can do for now
  • joepoop218
  • Level 1
  • New Miner
  • October 28, 2014, 12:56 pm
I'm new here, and this is my first post!
Actually, I heard you could do this:
/tp @p @e[name=unknown] ~ 0 ~
the 2 (~) and the 0 would be some kind of rotation. the 0 would probably make you face straight ahead(X,Y,Z). ignore the other 2, as these wouldn't do anything but turn you...
haven't tested this, give it a shot!
  • MCmaster23
  • Level 49
  • Master Blob
  • October 28, 2014, 5:43 pm
Yeah that would work very well. I just posted this before you could change rotation and I never updated it lol
  • Fangride
  • Level 25
  • Expert Scribe
  • January 12, 2014, 5:07 pm
The friend and I were working out some specifics, so I'll ask him if he's got any little tweaks for that. We managed to puzzle out a Multiplayer way to do it, though it's a unique item then.
  • Repson
  • Level 45
  • Master Sweetheart
  • January 12, 2014, 2:54 pm
This was already done by Sethbling in 1.6 or 1.7 i dont quite remember
  • MCmaster23
  • Level 49
  • Master Blob
  • January 12, 2014, 2:57 pm
not the same way that I did it. and mine can be done anywhere, but he had to do a separate circuit for each block you could grapple on to
  • MkJake65
  • Level 47
  • Master Artist
  • January 12, 2014, 7:11 pm
This is the better way of doing this (in my opinion)

www.youtube.com/watch?v=9StUwrTpS4Q
do you have to add a cooldown sequence?
  • MCmaster23
  • Level 49
  • Master Blob
  • January 12, 2014, 2:11 pm
No you don't you can just remove everything related to the cooldown (5th command block, repeaters, etc.)
oh so the name of the fishing bobber entity is "unknown"? i was always wondering what is was called ill make some thing with this now:)
  • Maxo11x
  • Level 6
  • Apprentice Engineer
  • January 12, 2014, 12:58 pm
great idea, love the idea
  • Platydroid
  • Level 27
  • Expert Dragon
  • January 12, 2014, 12:56 pm
Or you can have a wooden pressure plate attached to a command block that either gives you mega jump or teleports you to that spot. It doesn't have to be this complicated. Plus a wooden pressure plate allows you to know exactly where to use the fishing rod. I think that the point of this is that it just teleports you to where the bobber lands, correct?

My Version:http://www.planetminecraft.com/project/grapple-challenge-minigame/
  • DaHooplerzMan
  • Level 75
  • Legendary Creator
  • January 12, 2014, 11:06 am
Lemme guess: you watch Dragnoz on YouTube?
  • Smorez
  • Level 63
  • High Grandmaster Wizard
  • January 12, 2014, 12:25 pm
Me too! XD
  • MCmaster23
  • Level 49
  • Master Blob
  • January 12, 2014, 12:19 pm
Yes.
  • rthryjhtyt08
  • Level 26
  • Expert Dragonborn
  • January 12, 2014, 10:26 am
Another nice 14w02a guide *diamonds

1 - 39 of 39

Show Comments

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome