Advertisement
CREAMPAN0408

Untitled

Feb 4th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. on rightclick holding golden hoe:
  2. cancel the event
  3. player's tool is enchanted with unbreaking 214
  4. if level of player is more than 30:
  5. set {_cooldown} to difference between {Heal.%player%.lastused} and now
  6. if {_cooldown} is less than 50 seconds:
  7. play "entity_ghast_shoot" to player at volume 10
  8. create a circle effect at player with id "HealFailed" with particles SMOKE NORMAL with radius 1
  9. message "<pink>%difference between 10 seconds and {_cooldown}% <white>後に使用可能"
  10. wait 20 tick
  11. stop effect "HealFailed"
  12. stop
  13. loop players in radius 5 around the player:
  14. play "entity_player_levelup" to loop-player at volume 10
  15. add 20 to loop-player's health
  16. reduce level progress of player by 30
  17. create a circle effect for loop-player with id "HEAL" with particles HEART with radius 1
  18. set {Heal.%player%.lastused} to now
  19. wait 60 tick
  20. stop effect "HEAL"
  21. else:
  22. play "entity_ghast_shoot" to player at volume 10
  23. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  24. message "<pink>このスキルには60Lv以上のXPが必要です!"
  25. wait 20 tick
  26. stop effect "Failed"
  27.  
  28. on leftclick holding golden hoe:
  29. cancel the event
  30. player's tool is enchanted with unbreaking 214
  31. if level of player is more than 30:
  32. set {_cooldown} to difference between {Heal.%player%.lastused} and now
  33. if {_cooldown} is less than 50 seconds:
  34. play "entity_ghast_shoot" to player at volume 10
  35. create a circle effect at player with id "HealFailed" with particles SMOKE NORMAL with radius 1
  36. message "<pink>%difference between 10 seconds and {_cooldown}% <white>後に使用可能"
  37. wait 20 tick
  38. stop effect "HealFailed"
  39. stop
  40. loop players in radius 5 around the player:
  41. play "entity_player_levelup" to loop-player at volume 10
  42. add 20 to loop-player's food level
  43. reduce level progress of player by 30
  44. create a circle effect for loop-player with id "HEAL" with particles HEART with radius 1
  45. set {Heal.%player%.lastused} to now
  46. wait 60 tick
  47. stop effect "HEAL"
  48. else:
  49. play "entity_ghast_shoot" to player at volume 10
  50. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  51. message "<pink>このスキルには60Lv以上のXPが必要です!"
  52. wait 20 tick
  53. stop effect "Failed"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement