sora200507

Untitled

Mar 24th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment