7mm

Skript: AnimA-PvP/Main

7mm
Mar 19th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /prefix <text>:
  2. permission: skript.admin
  3. trigger:
  4. set the player's prefix to arg 1
  5.  
  6. command /ss <integer> <player>:
  7. permission: skript.anima
  8. trigger:
  9. if arg 1 is 1:
  10. message "&7[Log] &c&lスロウ&dを発動しました" to arg 2
  11. loop all players in radius 5 of the arg 2:
  12. if loop-player's name is not arg 2:
  13. apply slowness tier 2 to loop-player for 2 seconds
  14. show cloud on loop-player in radius of 2
  15. message "&7[Log] &e&l%arg 2%&dの発動した&c&lスロウ&dの効果を受けてしまいました" to loop-player
  16. message "&7[Log] &e&l%loop-player%&dが&c&lスロウ&dの効果を受けました" to arg 2
  17. execute console command "/execute %loop-player% ~ ~ ~ playsound entity.generic.burn master @p"
  18. #play sound "entity.generic.burn" to loop-player
  19. if arg 1 is 2:
  20. message "&7[Log] &c&lグロー&dを発動しました" to arg 2
  21. set {ss.glow.%arg 2%} to true
  22. if arg 1 is 4:
  23. message "&7[Log] &c&lジャンプ&dを発動しました" to arg 2
  24. apply levitation tier 50 to arg 2 for 10 ticks
  25. wait 10 ticks
  26. apply levitation tier 30 to arg 2 for 6 ticks
  27. wait 6 ticks
  28. apply levitation tier 20 to arg 2 for 5 ticks
  29. wait 5 ticks
  30. apply levitation tier 10 to arg 2 for 4 ticks
  31. wait 4 ticks
  32. apply levitation tier 5 to arg 2 for 3 ticks
  33. wait 3 ticks
  34. apply levitation tier 3 to arg 2 for 3 ticks
  35. wait 3 ticks
  36. apply levitation tier 2 to arg 2 for 2 ticks
  37. wait 2 ticks
  38. apply levitation tier 1 to arg 2 for 2 ticks
  39. wait 2 ticks
  40. message "&7[Log] &c&lフライ&dの効果が切れました" to arg 2
  41. set {ss.fly.%arg 2%} to true
  42.  
  43. on damage:
  44. if attacker is player:
  45. if victim is player:
  46. if {ss.glow.%attacker%} is true:
  47. message "&7[Log] &e&l%attacker%&dの発動した&c&lグロー&dの効果を受けてしまいました" to victim
  48. message "&7[Log] &e&l%victim%&dが&c&lグロー&dの効果を受けました" to attacker
  49. show cloud on victim in radius of 2
  50. apply glowing to victim for 5 second
  51. set {ss.glow.%attacker%} to false
  52. message "&7[Log] &c&lグロー&dの効果が切れました" to attacker
  53. if damage was caused by fall:
  54. if {ss.fly.%victim%} is true:
  55. set {ss.fly.%victim%} to false
  56. cancel event
  57.  
  58. every minecraft tick:
  59. loop all players:
  60. if block under loop-player is not air:
  61. set {ss.fly.%loop-player%} to false
Add Comment
Please, Sign In to add comment