CREAMPAN0408

Untitled

Jan 15th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. #アイスショット
  2. on rightclick holding diamond hoe:
  3. player's tool is enchanted with unbreaking 1
  4. if level of player is more than 0:
  5. set {_cooldown} to difference between {IceShot.%player%.lastused} and now
  6. if {_cooldown} is less than 0.5 seconds:
  7. stop
  8. play "block_glass_break" to player at volume 10
  9. reduce level progress of player by 1
  10. shoot a snowball at speed 2
  11. set {_num} to 0.5
  12. set {_Particle} to location of the block {_num} meter in front of player's head
  13. loop 30 times:
  14. show 10 water splash particles at {_Particle} offset by 0, 0, 0
  15. set {_num} to {_num} + 0.5
  16. set {_Particle} to location of the block {_num} meter infront of player's head
  17. if the block {_num} meter infront of player's head is not air:
  18. stop loop
  19. set {IceShot.%player%.lastused} to now
  20. else:
  21. play "entity_ghast_shoot" to player at volume 10
  22. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  23. message "<pink>このスキルには1Lv以上のXPが必要です!"
  24. wait 20 tick
  25. stop effect "Failed"
  26.  
  27. on damage:
  28. projectile is snowball
  29. attacker's tool is golden hoe
  30. damage victim by 2 hearts
  31. apply slow 5 to the victim for 1 seconds
  32. create a circle effect at victim with id "Prison" with particles drip water with radius 1
  33. wait 30 tick
  34. stop effect "Prison"
  35.  
  36. #ライフタクト
  37. on rightclick holding golden hoe:
  38. cancel the event
  39. player's tool is enchanted with unbreaking 1
  40. if level of player is more than 5:
  41. set {_cooldown} to difference between {Heal.%player%.lastused} and now
  42. if {_cooldown} is less than 10 seconds:
  43. play "entity_ghast_shoot" to player at volume 10
  44. create a circle effect at player with id "HealFailed" with particles SMOKE NORMAL with radius 1
  45. message "<pink>%difference between 10 seconds and {_cooldown}% <white>後に使用可能"
  46. wait 20 tick
  47. stop effect "HealFailed"
  48. stop
  49. loop players in radius 5 around the player:
  50. play "entity_player_levelup" to loop-player at volume 10
  51. add 6 to loop-player's health
  52. reduce level progress of player by 6
  53. create a circle effect for loop-player with id "HEAL" with particles HEART with radius 1
  54. set {Heal.%player%.lastused} to now
  55. wait 60 tick
  56. stop effect "HEAL"
  57. else:
  58. play "entity_ghast_shoot" to player at volume 10
  59. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  60. message "<pink>このスキルには6Lv以上のXPが必要です!"
  61. wait 20 tick
  62. stop effect "Failed"
Advertisement
Add Comment
Please, Sign In to add comment