Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on fishing:
- if "%fishing state%" is "failed attempt" or "in ground":
- if block below hook is not air:
- if block below hook is not water or lava:
- push player (direction from player to hook) at speed (distance between hook and player/3)
- if (y coordinate of hook-1) > (y coordinate of player):
- push player upward at speed ((0.07000000000000001)*(difference between y coordinate of hook and y coordinate of player))
- play raw sound "mob.zombie.infect" at player with pitch 2 volume 1
- else if block at hook is not air:
- push player (direction from player to hook) at speed (distance between hook and player/3)
- if (y coordinate of hook-1) > (y coordinate of player):
- push player upward at speed ((0.07000000000000001)*(difference between y coordinate of hook and y coordinate of player))
- play raw sound "mob.zombie.infect" at player with pitch 2 volume 1
- else if block below hook is air:
- if block below block below hook is not air or water or lava:
- push player (direction from player to hook) at speed (distance between hook and player/3)
- if (y coordinate of hook-1) > (y coordinate of player):
- push player upward at speed ((0.07000000000000001)*(difference between y coordinate of hook and y coordinate of player))
- play raw sound "mob.zombie.infect" at player with pitch 2 volume 1
- else if "%fishing state%" = "failed attempt":
- message "&cUnable to grapple"
- on damage:
- if damage cause is fall:
- set damage to damage / 2
- if attacker's tool is a fishing rod named "&6Grapple":
- cancel event
- on tool change:
- if player's tool is a fishing rod named "&6Grapple":
- message "&6Grapple detached"
- play raw sound "note.hat" at player with pitch 1 volume 1
Advertisement
Add Comment
Please, Sign In to add comment