Advertisement
Svely

Scout

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