Advertisement
yozora_1202

Untitled

Jun 28th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. on rightclick holding gold sword:
  2. name of player's tool is "&e&l雷剣"
  3. player is sneaking
  4. if level of player is more than 9:
  5. set {_cooldown} to difference between {AOELightning.%player%.lastused} and now
  6. wait 1 tick
  7. if {_cooldown} is less than 20 seconds:
  8. play "entity_ghast_shoot" to player at volume 10
  9. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  10. message "<pink>%difference between 20 seconds and {_cooldown}% <white>後に使用可能"
  11. wait 20 tick
  12. stop effect "Failed"
  13. stop
  14. reduce level progress
  15. reduce level progress of player by 10
  16. set {AOELightning.%player%.lastused} to now
  17. loop all entities in radius 50 around the player:
  18. loop-entity is not the player
  19. chance of 80%:
  20. strike lightning effect at the loop-entity
  21. damage loop-entity by 4 hearts
  22. wait 20 tick
  23. loop all entities in radius 30 around the player:
  24. loop-entity is not the player
  25. chance of 90%:
  26. strike lightning effect at the loop-entity
  27. damage loop-entity by 4 hearts
  28. wait 20 tick
  29. loop all entities in radius 10 around the player:
  30. loop-entity is not the player
  31. strike lightning effect at the loop-entity
  32. damage loop-entity by 5 hearts
  33. else:
  34. play "entity_ghast_shoot" to player at volume 10
  35. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  36. message "<pink>疾雷スキルには10Lv以上のXPが必要です!"
  37. damage the player by 2 hearts
  38. wait 20 tick
  39. stop effect "Failed"
  40.  
  41. on leftclick holding gold sword:
  42. player's tool is enchanted with fortune
  43. player is sneaking
  44. if level of player is more than 3:
  45. set {_cooldown} to difference between {LightningShot.%player%.lastused} and now
  46. if {_cooldown} is less than 5 seconds:
  47. stop
  48. reduce level progress of player by 4
  49. shoot a snowball at speed 5
  50. set {Lightning.%player%.lastused} to now
  51. else:
  52. play "entity_ghast_shoot" to player at volume 10
  53. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  54. message "<pink>雷鳴スキルには4Lv以上のXPが必要です!"
  55. wait 20 tick
  56. stop effect "Failed"
  57.  
  58. on damage:
  59. projectile is snowball
  60. attacker's tool is gold sword
  61. attacker's tool is enchanted with fortune
  62. strike lightning at the victim
  63. if victim is a player:
  64. apply speed 2 to the attacker for 10 seconds
  65. apply strength 5 to the attacker for 10 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement