CREAMPAN0408

Untitled

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