Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /grapple:
- permission: anni.admin
- trigger:
- give a fishing rod named "&eGrapple" with lore "&6Class Item" to player
- fishing:
- if {anni.class.scout.%player%} is true:
- if player is holding fishing rod named "&eGrapple":
- if fishing state is in ground:
- if "%block below hook%" is not "air" or "water":
- push player upwards at speed 0.2
- push player (direction from player to hook) at speed (distance between hook and player/3)
- execute console command "playsound entity.zombie.infect hostile %player% ~ ~ ~ 1 2 1"
- add 1 to data value of player's tool
- else if fishing state is failed attempt:
- if "%block below hook%" is not "air" or "water":
- push player upwards at speed 0.2
- push player (direction from player to hook) at speed (distance between hook and player/3)
- execute console command "playsound entity.zombie.infect hostile %player% ~ ~ ~ 1 2 1"
- add 1 to data value of player's tool
- else if "%block at hook%" is not "air" or "water":
- push player upwards at speed 0.2
- push player (direction from player to hook) at speed (distance between hook and player/3)
- execute console command "playsound entity.zombie.infect hostile %player% ~ ~ ~ 1 2 1"
- add 1 to data value of player's tool
- else:
- send "&cUnable to grapple"
- on damage:
- if victim is holding fishing rod named "&eGrapple":
- if damage cause is fall:
- set damage to damage / 5
- if attacker's tool is a fishing rod named "&eGrapple":
- cancel event
- on any movement:
- if {anni.class.scout.%player%} is true:
- if player's helmet is air or leather helmet:
- if player's chestplate is air or leather chestplate:
- if player's leggings is air or leather leggings:
- if player's boots is air or leather boots:
- if event-player doesn't have speed:
- apply potion of speed of tier 1 to player for 999 days
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement