motan1205

Untitled

Dec 1st, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. variables:
  2. {grapple.name} = "&bGrappling Hook" #The name it gives the grapple on spawn
  3. {use.permissions} = "true" #Whether it uses the permissions
  4. on place of tripwire hook:
  5. player is holding tripwire hook named "%{grapple.name}%":
  6. cancel event
  7. on drop of tripwire hook:
  8. cancel event
  9. on click:
  10. if player is holding tripwire hook:
  11. if {use.permissions} is "false":
  12. if {grapple.%player%.used} is "false":
  13. if distance between player and targeted block is smaller than 35:
  14. make the player shoot an snowball
  15. set {grapple.%player%.used} to "true"
  16. if {use.permissions} is "true":
  17. if {grapple.%player%.used} is "false":
  18. if player has permission "batman.use":
  19. if distance between player and targeted block is smaller than 35:
  20. make the player shoot an snowball
  21. set {grapple.%player%.used} to "true"
  22. on projectile hit:
  23. if {grapple.%shooter%.used} is "true":
  24. if projectile is an snowball:
  25. if shooter is holding tripwire hook:
  26. push the shooter forwards at speed 5
  27. wait 3 second
  28. set {grapple.%shooter%.used} to "false"
  29. delete projectile
Add Comment
Please, Sign In to add comment