# Solved How can I make a Grappling Hook with skript?

Discussion in 'Skript' started by Gorilla, Jul 22, 2019.

Tags:
Not open for further replies.
1. ### Gorilla Member

Joined:
Jul 22, 2019
Messages:
4
0
Hi, how can i make a Grappling Hook with skript?
--- Double Post Merged, Jul 22, 2019, Original Post Date: Jul 22, 2019 ---
or how can i make shoot a fishing hook?

#1
Post #2 by LukynkaCZE, Jul 22, 2019
3. ### LukynkaCZE Member

Joined:
May 12, 2019
Messages:
26
2
Hi, of course!

Try this:

Code (Text):
1. on fishing:
2.     if "%fishing state%" is "failed attempt" or "in ground":
3.         if block below hook is not air:
4.             if block below hook is not water or lava:
5.                 push player (direction from player to hook) at speed (distance between hook and player/3)
6.                 if (y coordinate of hook-1) > (y coordinate of player):
7.                     push player upward at speed ((0.07000000000000001)*(difference between y coordinate of hook and y coordinate of player))
8.                 play raw sound "mob.zombie.infect" at player with pitch 2 volume 1
9.         else if block at hook is not air:
10.             push player (direction from player to hook) at speed (distance between hook and player/3)
11.             if (y coordinate of hook-1) > (y coordinate of player):
12.                 push player upward at speed ((0.07000000000000001)*(difference between y coordinate of hook and y coordinate of player))
13.             play raw sound "mob.zombie.infect" at player with pitch 2 volume 1
14.         else if block below hook is air:
15.             if block below block below hook is not air or water or lava:
16.                 push player (direction from player to hook) at speed (distance between hook and player/3)
17.                 if (y coordinate of hook-1) > (y coordinate of player):
18.                     push player upward at speed ((0.07000000000000001)*(difference between y coordinate of hook and y coordinate of player))
19.                 play raw sound "mob.zombie.infect" at player with pitch 2 volume 1
20.
21.             else if "%fishing state%" = "failed attempt":
22.                 message "&cUnable to grapple"
23.
24. on damage:
25.     if damage cause is fall:
26.         set damage to damage / 2
27.     if attacker's tool is a fishing rod named "&6Grapple":
28.         cancel event
29. on tool change:
30.     if player's tool is a fishing rod named "&6Grapple":
31.         message "&6Grapple detached"
32.         play raw sound "note.hat" at player with pitch 1 volume 1

#2
PolduZ and acai like this.
4. ### Gorilla Member

Joined:
Jul 22, 2019
Messages:
4
0
Thanks.
--- Double Post Merged, Jul 25, 2019, Original Post Date: Jul 25, 2019 ---
Hi, what is the addons? Can you help me?

#3
5. ### Azternaut Member

Joined:
Feb 3, 2017
Messages:
15
2
Try morkazsk

#4
Not open for further replies.