kazuken0814

Untitled

Jun 28th, 2018
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.08 KB | None | 0 0
  1. command /grapple:
  2.     permission: skript.admin
  3.     trigger:
  4.        give a fishing rod named "&eGrapple" with lore "&6Class Item" to player
  5.  
  6. fishing:
  7.     if player is holding fishing rod named "&eGrapple" with lore "&6Class Item":
  8.         if fishing state is in ground:
  9.            if "%block below hook%" is not "air" or "water":
  10.                push player upwards at speed 0.2
  11.                 push player (direction from player to hook) at speed (distance between hook and player/3)
  12.                 play raw sound "mob.zombie.infect" at player with pitch 2 volume 1
  13.                 damage player's tool by -1
  14.         else if fishing state is failed attempt:
  15.            if "%block below hook%" is not "air" or "water":
  16.                push player upwards at speed 0.2
  17.                 push player (direction from player to hook) at speed (distance between hook and player/3)
  18.                 play raw sound "mob.zombie.infect" at player with pitch 2 volume 1
  19.                 damage player's tool by -1
  20.             else if "%block at hook%" is not "air" or "water":
  21.                push player upwards at speed 0.2
  22.                 push player (direction from player to hook) at speed (distance between hook and player/3)
  23.                 play raw sound "mob.zombie.infect" at player with pitch 2 volume 1
  24.                 damage player's tool by -1
  25.             else:
  26.                send "&cUnable to grapple"
  27. on damage:
  28.     if victim is holding fishing rod named "&eGrapple" with lore "&6Class Item":
  29.         if damage cause is fall:
  30.            set damage to damage / 5
  31.     if attacker's tool is a fishing rod named "&eGrapple":
  32.        cancel event
  33.  
  34. on any movement:
  35.    if {Kit.%player%} is "Scout":
  36.         if player's helmet is air or leather helmet:
  37.             if player's chestplate is air or leather chestplate:
  38.                 if player's leggings is air or leather leggings:
  39.                     if player's boots is air or leather boots:
  40.                         if event-player doesn't have speed:
  41.                            apply potion of speed of tier 1 to player for 999 days
Add Comment
Please, Sign In to add comment