1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved How can I make a Grappling Hook with skript?

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

Tags:
Thread Status:
Not open for further replies.
  1. Gorilla

    Gorilla Member

    Joined:
    Jul 22, 2019
    Messages:
    4
    Likes Received:
    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?
     
    • Agree Agree x 1
  2. Best Answer:
    Post #2 by LukynkaCZE, Jul 22, 2019
  3. LukynkaCZE

    LukynkaCZE Active Member

    Joined:
    May 12, 2019
    Messages:
    26
    Likes Received:
    0
    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
     
  4. Gorilla

    Gorilla Member

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

    Azternaut Member

    Joined:
    Feb 3, 2017
    Messages:
    15
    Likes Received:
    2
    Try morkazsk
     
Thread Status:
Not open for further replies.
Loading...