Advertisement
fleft17

Untitled

Jul 21st, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. command /dolphins <text>:
  2. permission: skript.op
  3. trigger:
  4. if arg is "on" or "enable" or "true":
  5. set {dolphins} to true
  6. broadcast "&9[Dolphins]&a Enabled by %command sender%!"
  7. loop all players:
  8. execute console command "/playsound random.splash %loop-player% ~ ~ ~ 1 1 1"
  9. apply water breathing to the loop-player for 999 days
  10. if arg is "off" or "disable" or "false":
  11. set {dolphins} to false
  12. broadcast "&9[Dolphins]&a Disabled by %command sender%!"
  13. loop all players:
  14. execute console command "/playsound random.splash %loop-player% ~ ~ ~ 1 1 1"
  15. remove water breathing from the loop-player
  16. if arg is "toggle" or "switch" or "change":
  17. {dolphins} is true:
  18. set {dolphins} to false
  19. broadcast "&9[Dolphins]&a Disabled by %command sender%!"
  20. loop all players:
  21. execute console command "/playsound random.splash %loop-player% ~ ~ ~ 1 1 1"
  22. remove water breathing from the loop-player
  23. stop trigger
  24. {dolphins} is false:
  25. set {dolphins} to true
  26. broadcast "&9[Dolphins]&a Enabled by %command sender%!"
  27. loop all players:
  28. execute console command "/playsound random.splash %loop-player% ~ ~ ~ 1 1 1"
  29. apply water breathing to the loop-player for 999 days
  30. stop trigger
  31.  
  32. loop all players:
  33. execute console command "/playsound random.splash %loop-player% ~ ~ ~ 1 1 1"
  34. if arg is "apply" or "effects":
  35. loop all players:
  36. apply water breathing to the loop-player for 999 days
  37.  
  38.  
  39. on walk on water:
  40. {dolphins} is true:
  41. push the player forwards with force 0.25
  42. block below the player is water:
  43. player is sneaking:
  44. push the player upwards with force 0.25
  45. chance of 0.5%:
  46. give player 1 raw fish
  47.  
  48.  
  49. on damage:
  50. damage was caused by fall:
  51. {dolphins} is true:
  52. cancel the event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement